Hi all. This is my third day struggling with compiling a simple HelloCuda CUDA project in visual studio 2019 (Enterprise). I installed the latest Nvidia CUDA 10.1 Toolkit without errors. Please see the ‘Error List’. I cannot work out what this error means except that it appears the target (versions) between MSVC & CUDA Toolkit 10.1 might be mismatching and I really do not know what how to resolve that. These are the only errors I get.
Severity Code Description Project File Line Suppression State
Error MSB3721 The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio019\Enterprise\VC\Tools\MSVC4.22.27905\bin\HostX86\x64" -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -G --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 /Fdx64\Debug\vc142.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj "C:\Working\NVIDIA\HelloCuda\kernel.cu"" exited with code 1. HelloCuda C:\Program Files (x86)\Microsoft Visual Studio019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 10.1.targets 764
Thank you in advance for the your help.