Multiple CUDA versions on machine nvcc -V confusion

前端 未结 2 1227
长情又很酷
长情又很酷 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"
    

提交回复
热议问题