lundi 23 février 2015

nvcc 6.5: c++11 flag is not supported with the configured host compiler

I have searched for hours without a solution. I'm using OS X 10.10.2. My CUDA nvcc version is 6.5, clang++ 6.0 and g++ 4.8.


When I try to compile a simple hello-world file by C++11 standard:



nvcc -std=c++11 hello.cu


I get this error message:



nvcc warning : The -c++11 flag is not supported with the configured host compiler. Flag will be ignored.


The host compiler should be the default clang++ 6.0, which clearly supports c++11, as the following command succeeds:



clang++ -std=c++11 hello.cu


I appreciate any help! Please!


Aucun commentaire:

Enregistrer un commentaire