I used to have cuda-7.0 installed on my machine and later un-installed cuda-7.0 and installed cuda-8.0. When I go to my /usr/local folder I see the following folders:
I faced a similar issue after upgrading from cuda-8.0 to cuda-9.2.
Solution is to change the following in .bashrc file:
export CUDA_HOME="/usr/local/cuda-9.2"
export LD_LIBRARY_PATH="/usr/local/cuda-9.2/lib64":$LD_LIBRARY_PATH
export PATH="/usr/local/cuda-9.2/bin:$PATH"
Solution as suggested in the comments:
export PATH=/usr/local/cuda-8.0/bin:$PATH
The problem was the ordering of $PATH
, that my previous command had the =$PATH:/usr/local...
instead of =/usr/local....:$PATH