Multiple CUDA versions on machine nvcc -V confusion
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