Multiple CUDA versions on machine nvcc -V confusion

前端 未结 2 1226
长情又很酷
长情又很酷 2021-02-02 11:00

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:

         


        
相关标签:
2条回答
  • 2021-02-02 11:35

    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"
    
    0 讨论(0)
  • 2021-02-02 11:49

    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

    0 讨论(0)
提交回复
热议问题