在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++

 

相关文章:

  • 2021-09-16
  • 2021-10-12
  • 2021-07-16
  • 2021-09-19
  • 2022-01-01
  • 2021-06-29
  • 2021-11-03
猜你喜欢
  • 2021-07-20
  • 2022-12-23
  • 2022-01-04
  • 2021-08-11
  • 2022-02-17
  • 2021-10-01
  • 2021-07-26
相关资源
相似解决方案