diff --git a/bash/.bash_env b/bash/.bash_env index b3628b3..31fa5e9 100644 --- a/bash/.bash_env +++ b/bash/.bash_env @@ -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