From 134ee2d9d250bc90dbda9b9a42a765a86c83e43b Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Wed, 26 Feb 2025 15:14:18 -0700 Subject: [PATCH] Bash: cuda index envvar --- bash/.bash_env | 4 ++++ 1 file changed, 4 insertions(+) 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