/usr/local/cuda/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
#error -- unsupported GNU version! gcc versions later than 6 are not supported!
^~~~~
compilation terminated due to -Wfatal-errors.
Makefile:92: recipe for target 'obj/convolutional_kernels.o' failed
首先,修改makefile文件
NVCC路径为cuda安装路径
NVCC=/usr/local/cuda-9.0/bin/nvcc
其次,
修改gcc版本
降级为gcc 6以下的
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50