Bash: cuda index envvar

This commit is contained in:
Akemi Izuko 2025-02-26 15:14:18 -07:00
parent 1d67fba8d0
commit 134ee2d9d2
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC

View file

@ -68,6 +68,10 @@ if [[ -d "/Users/${USER}/Library/Android/sdk" ]]; then
export JAVA_HOME='/Applications/Android Studio.app/Contents/jbr/Contents/Home'
fi
# Cuda ==============================================================
# Makes device index match nvidia-smi output. Default is best first
export CUDA_DEVICE_ORDER=PCI_BUS_ID
# Swayland ==========================================================
if [[ "$(uname -s)" == "Linux" ]] && pidof sway &>/dev/null; then
export WAYLAND_DISPLAY=wayland-1