Created
April 1, 2020 12:52
-
-
Save juniorprincewang/4e0d47837b9a9749fa0bfe31af93a15e to your computer and use it in GitHub Desktop.
CUDA PATH and LD_LIBRARY_PATH setting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo 'export PATH=$PATH:/usr/local/cuda/bin' >> ~/.bashrc | |
| echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib:/usr/local/cuda/lib64' >> ~/.bashrc | |
| source ~/.bashrc | |
| sudo bash -c "echo /usr/local/cuda/lib64/ > /etc/ld.so.conf.d/cuda.conf" | |
| sudo ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment