写了一个工程,编译生成的时候报错error MSB3721,求教大家如何解决。
CUDA7.5+VS2010
错误信息信息如下:
1>CudaBuild:
1> Compiling CUDA source file FDKPrep_kernel.cu...
1>
1> E:\Project\DIM\HXM\Algorithm\CT\FDKRecon\FDKRecon_golden5_with_genCal_and_Prep_and_GPUFDK_V024\FDKRecon>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin\nvcc.exe" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --use-local-env --cl-version 2010 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -g -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd " -o Debug\FDKPrep_kernel.cu.obj "E:\Project\DIM\HXM\Algorithm\CT\FDKRecon\FDKRecon_golden5_with_genCal_and_Prep_and_GPUFDK_V024\FDKRecon\FDKPrep_kernel.cu"
1> FDKPrep_kernel.cu
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 7.5.targets(604,9): error MSB3721:
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin\nvcc.exe" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --use-local-env --cl-version 2010 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -g -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd " -o Debug\FDKPrep_kernel.cu.obj "E:\Project\DIM\HXM\Algorithm\CT\FDKRecon\FDKRecon_golden5_with_genCal_and_Prep_and_GPUFDK_V024\FDKRecon\FDKPrep_kernel.cu"”