Ubuntu16.04多版本cuda使用介绍

参考文章:
https://blog.csdn.net/maple2014/article/details/78574275

https://blog.csdn.net/QLULIBIN/article/details/78714596
https://blog.csdn.net/tunhuzhuang1836/article/details/79545625
所以这里更改原来已经安装的cuda路径打开文件夹命令是
终端中输入 $ sudo gedit /etc/profile

将原来的:
export PATH=/usr/local/cuda-9.2/binKaTeX parse error: Expected '}', got 'EOF' at end of input: {PATH:+:{PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64
KaTeX parse error: Expected '}', got 'EOF' at end of input: …LIBRARY_PATH:+:{LD_LIBRARY_PATH}}
所有的cuda9.2改成cuda,然后按照上面博客中在终端输入:
sudo rm -rf /usr/local/cuda #删除之前创建的软链接
sudo ln -s /usr/local/cuda-9.0 /usr/local/cuda #创建新 cuda 的软链接
sudo rm -rf /usr/local/cuda
l547@l547:~$ sudo ln -s /usr/local/cuda-9.0/ /usr/local/cuda
l547@l547:~$ nvcc --version
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

具体参考链接博客~

你可能感兴趣的:(图像处理)