Skip to content

Instantly share code, notes, and snippets.

@laurencedawson
Created February 8, 2012 04:35
Show Gist options
  • Save laurencedawson/1765472 to your computer and use it in GitHub Desktop.
Save laurencedawson/1765472 to your computer and use it in GitHub Desktop.
Update PATH Cuda
# 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