CUDA (versions 7.5 and 8.0) on Linux does not seem to be able to compile c++11 code when using the Intel icc compiler. In particular, if nvcc is run with the flags ‘-ccbin /opt/intel/compilers_and_libraries_2016.3.210/linux/bin/intel64/icc’ and ‘–std c++11’, then the following error message results:
nvcc warning : The -std=c++11 flag is not supported with the configured host compiler. Flag will be ignored.
This is peculiar, because:
(1) This works fine with g++ (4.8.5)
(2) icc does actually support the -std=c++11 flag (versions 15 and 16).