The error message is as follows:
严重性 | 代码 | 说明 | 项目 | 文件 | 行 | 禁止显示状态 |
---|---|---|---|---|---|---|
错误 | MSB3721 | 命令“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin\nvcc.exe -gencode=arch=compute_52,code=\sm_52,compute_52\ –use-local-env -ccbin C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64 -x cu -IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\include -IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\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 D:\fdu_crypt\goodluck\goodluck\x64\Debug\kernel.cu.obj D:\fdu_crypt\goodluck\goodluck\kernel.cu”已退出,返回代码为 1。 | goodluck | C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 12.0.targets | 794 |
I have tried lots of methods to repair this problem,like change the cuda toolkit custom dir,and even redo the process under the guidence of the official.But still can not solve this problem.In CSDN,there are some people who had the same experience like me one year ago,but the problem is still unsolved and nobody can give any solution.So I try to seek help here.