Created
February 8, 2012 04:35
-
-
Save laurencedawson/1765472 to your computer and use it in GitHub Desktop.
Update PATH Cuda
This file contains 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
# Open the environment settings in the nano editor | |
sudo nano /etc/environment | |
# Edit the existing environment | |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" | |
# To the new environment | |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/cuda/bin" | |
# Create a new file cuda.conf in the nano editor | |
sudo nano /etc/ld.so.conf.d/cuda.conf | |
# And add the following two lines | |
/usr/local/cuda/lib64 | |
/usr/local/cuda/lib | |
# Reload the variables globally | |
source /etc/environment | |
sudo ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment