2013-07-16 133 views
1

我正在使用Visual Studio 2010進行CUDA工作。我安裝了CUDA工具包和SDK,但其中一個SDK示例未成功構建。在Visual Studio 2010下構建CUDA SDK示例時生成失敗,錯誤爲MSB3721

輸出控制檯顯示:

1>_CUDA_Build_Rule: 
1> Compiling with CUDA Build Rule... 
1> The system cannot find the path specified. 
1>E:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\Cuda.targets(45,5): error MSB3721: The command "echo "$(CUDA_BIN_PATH)\nvcc.exe" -arch sm_10 -ccbin "E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MTd " -I"E:\CUDA\include;../../common/inc" -maxrregcount=32 --compile -o "$(IntDir)\$(InputName).cu.obj" "E:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\src\bandwidthTest\bandwidthTest.cu" 
1>E:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\Cuda.targets(45,5): error MSB3721: "$(CUDA_BIN_PATH)\nvcc.exe" -arch sm_10 -ccbin "E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MTd " -I"E:\CUDA\include;../../common/inc" -maxrregcount=32 --compile -o "$(IntDir)\$(InputName).cu.obj" "E:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\src\bandwidthTest\bandwidthTest.cu"" exited with code 1. 
1> 
1>Build FAILED. 

有一些問題與nvcc.exe

當我在命令提示執行nvcc.exe,它示出了:

nvcc fatal: No input file specified

回答

2

我很害怕你是一個非編程問題。

無論如何,如果您從命令行運行nvcc,您顯然會收到錯誤消息,因爲您沒有指定要編譯哪個文件。

下面,我指出一些其他線程與你詳細的相同問題。我希望他們能對你有用:

Visual Studio 2010 - how to fix Error MSB3721 - exiting with code 1

CUDA Visual Studio 2010 Express build error

Fixing Visual Studio Express error when cleaning 64-bit projects using CUDA 4.1 nvcc compiler

相關問題