Skip to content

Commit

Permalink
replicate workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonjchen committed Apr 5, 2024
1 parent 0c9cf5e commit d2d145a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions clip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,11 @@ popd
# Start processes
if [ "$NVIDIA_HARDWARE_RENDERING" = "on" ]; then
# Does not work on WSL2
GPU_BOARD=$(nvidia-xconfig --query-gpu-info | grep -i 'Name' | awk -F ': ' '{print $2}')
GPU_PCI=$(nvidia-xconfig --query-gpu-info | grep BusID | awk '{print $4}')
# GPU_BOARD=$(nvidia-xconfig --query-gpu-info | grep -i 'Name' | awk -F ': ' '{print $2}')
# HACK: Hardcoded for now to workaround nvidia-xconfig not working on Replicate
GPU_BOARD="Tesla T4"
# GPU_PCI=$(nvidia-xconfig --query-gpu-info | grep BusID | awk '{print $4}')
GPU_PCI="PCI:0:5:0"

mkdir -p /etc/X11
cat <<EOT > /etc/X11/xorg.conf
Expand Down

0 comments on commit d2d145a

Please sign in to comment.