报错: #error – unsupported GNU version! gcc versions later than 4.9 are not supported!
装一个 4.9 的
sudo apt-get install gcc-4.9 g++-4.9
ls /usr/bin/gcc-4.9
sudo ln -s /usr/bin/gcc-4.9 /usr/local/cuda/bin/gcc
sudo ln -s /usr/bin/g++-4.9 /usr/local/cuda/bin/g++