Ubuntu18.04安装CUDA9.0时,Error: unsupported compiler: 7.3.0的解决方案

在Ubuntu18.04中安装CUDA 9.0时,会遇到Error: unsupported compiler: 7.3.0的错误。其原因是Ubuntu18.04的编译器版本过高,因此只需要安装较低版本的gcc、g++即可。

具体解决方法是:

sudo apt install gcc-6 g++-6
sudo ln -s /usr/bin/gcc-6 /usr/local/bin/gcc
sudo ln -s /usr/bin/g++-6 /usr/local/bin/g++

 

posted @ 2020-03-30 16:18  Wind·Chaser  阅读(1853)  评论(0编辑  收藏  举报