NVIDIA / cuda-samples

Samples for CUDA Developers which demonstrates features in CUDA Toolkit
Other
6.47k stars 1.83k forks source link

error MSB3721 #216

Closed iralhx closed 1 year ago

iralhx commented 1 year ago

How did the following problem occur and how should I resolve it?

Thanks.

asyncAPI , Only modify ExtensionSettings and ExtensionTargets, CUDA 12.2 -> CUDA 12.0. 1>I:\Visual Studio\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA 12.0.targets(794,9): error MSB3721: 命令“"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin\nvcc.exe" -gencode=arch=compute_75,code=\"sm_75,compute_75\" --use-local-env -ccbin "I:\Visual Studio\Community\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64" -x cu -I./ -I../../../Common -I./ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\/include" -I../../../Common -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -Xcompiler "/wd 4819" --threads 0 -g -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Fdx64/Debug/vc143.pdb /FS /Zi /RTC1 /MTd " -o I:\github\cuda-samples\Samples\0_Introduction\asyncAPI\x64\Debug\asyncAPI.cu.obj "I:\github\cuda-samples\Samples\0_Introduction\asyncAPI\asyncAPI.cu"”

Environment NVIDIA GPU: RTX 2070

CUDA Version: 12.0.0

iralhx commented 1 year ago

Code generation only has compute_75,sm_75 remaining.