Unable to compile and run program cuda 11.2 , vs2019

|Error|MSB3721|The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin\nvcc.exe” -gencode=arch=compute_30,code=“sm_30,compute_30” --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include" -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -cudart static -g -DWIN32 -D_DEBUG -D_CONSOLE -D_UNICODE -DUNICODE -Xcompiler “/EHsc /W3 /nologo /Od /FdDebug\vc142.pdb /FS /Zi /RTC1 /MDd " -o Debug\File.cu.obj “E:\My_practice\my_practice\My_practice\File.cu”” exited with code 1.|E:\My_practice\my_practice\My_practice\My_practice.vcxproj|C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.targets|785||

Above is the error i am facing . I have spent at least 5 days and cant even compile Hello cuda using cuda

1 Like

the same error with me!!!

Cuda 11.2 does not support compute < 3.5.