1. 程式人生 > >NvvmSupportError: libNVVM cannot be found. Do conda install cudatoolkit: library nvvm not found

NvvmSupportError: libNVVM cannot be found. Do conda install cudatoolkit: library nvvm not found

linux 執行時出現“NvvmSupportError: libNVVM cannot be found. Do conda install cudatoolkit: library nvvm not found”有關的環境變數配置的問題

解決方法:新增環境變數(本人可行)

    1、進入.bashrc

     命令:$ vi .bashrc

                     

    2、進入.bashrc介面後顯示如下,鍵盤按下‘Insert’按鈕在最後一行輸入 (我的CUDA 版本為8.0)   

      export NUMBAPRO_NVVM=/usr/local/cuda-8.0/nvvm/lib64/libnvvm.so       export NUMBAPRO_LIBDEVICE=/usr/local/cuda-8.0/nvvm/libdevice/

 

    3、按‘Esc’,然後輸入‘:wq’ 退出.bashrc介面

 

    4、最後輸入$source ~/.bashrc

                       

     

      5、完成!