生动的蜻蜓在服务器上新建一个用户后,输入nvcc -V提示The program 'nvcc' is currently not installed. You can install it by typing: apt-get install nvidia-cuda-toolkit,通过ls /usr/local/cuda*可知,服务器上已经安装好cuda-8.0和cuda-9.0,怎么解决?
在你登录账户的根路径中,找到.profile,编辑加入以下两行命令:
export PATH=/usr/local/cuda-9.0/能干的大炮:$PATHexport LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH保存,重新登录,输入nvcc -V即可看到已经显示cuda-9。