2013-07-16 1 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

관련 문제