wonders:
sudo gedit / etc / profile # sudo permissions required
Add at the end (note no spaces):
Export the PATH = / usr / local / cuda- 8.0 / bin: $ the PATH Export LD_LIBRARY_PATH = / usr / local / cuda- 8.0 / lib64: $ LD_LIBRARY_PATH
[Optional] established cuda directory corresponds to the soft link cuda-8.0:
sudo ln -s /usr/local/cuda-8.0 /usr/local/cuda
CUDNN:
Edit .bashrc file:
gedit ~/.bashrc
Add: Version changed their own
export PATH=/usr/local/cuda-8.0/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
Updating the environment :( need to restart the terminal)
source ~/.bashrc