sudo rm -rf /usr/local/cuda
sudo ln -s /usr/local/cuda-10.1/ /usr/local/cuda
解决:CMake:不支持的GNU版本–不支持高于8的gcc版本 error – unsupported GNU version! gcc versions later than 8 are not supported!
sudo apt-get install gcc-7
sudo rm -rf /usr/bin/gcc
sudo rm -rf /usr/bin/g++
sudo rm -rf /usr/bin/cc
sudo rm -rf /usr/bin/c++
sudo ln -s /usr/bin/gcc-7 /usr/bin/gcc
sudo ln -s /usr/bin/g++-7 /usr/bin/g++
sudo ln -s /usr/bin/gcc-7 /usr/bin/cc
sudo ln -s /usr/bin/g++-7 /usr/bin/c++