Bash: cuda index envvar
This commit is contained in:
parent
1d67fba8d0
commit
134ee2d9d2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue