Skip to content

Instantly share code, notes, and snippets.

@WesleyCh3n
Created September 9, 2021 03:11
Show Gist options
  • Save WesleyCh3n/9200abbef7b680a13acf2cd627000a8c to your computer and use it in GitHub Desktop.
Save WesleyCh3n/9200abbef7b680a13acf2cd627000a8c to your computer and use it in GitHub Desktop.
CUDA env variable in bashrc
export PATH=/usr/local/cuda-11.2/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda/targets/x86_64-linux/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment