I have installed the cuda-samples-8-0
package on Ubuntu 17.04, and I will would like to build the samples with gcc-5
, which I have installed along gcc-6
on my machine. gcc-6` is not supported by CUDA 8 and gives numerous compilation errors.
How to get make
to use gcc-5
?
I have tried sudo make CXX=g++-5 CC=gcc-5
from the /usr/local/cuda-8.0/samples
directory which still leads to gcc-6
being used.
#error -- unsupported GNU version! gcc versions later than 5 are not supported!
^~~~~