I have Visual Studio 2015 and latest CUDA version 8.0.60.
When I create a CUDA template in VS, in default example when calling a device function getting error about "<<< >>>" and say's "expected an expression" and another error is MSB3721 that say's:
Severity Code Description Project File Line Suppression State Error MSB3721 The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc.exe" -gencode=arch=compute_20,code=\"sm_21,compute_20\" --use-local-env --cl-version 2015 -ccbin "D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj "D:\c++ project\xhfy\xhfy\kernel.cu"" exited with code 1. xhfy C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations\CUDA 8.0.targets 689
What can I do to fix this error?
Thanks.
nvcc fatal : Compiler 'cl.exe' in PATH different than the one specified with -ccbin
– hassan sadegheincl.exe
is specified for the ccbin option tonvcc
, and this apparently matched your PATH variable. – Robert Crovella