วันจันทร์ที่ 14 กันยายน พ.ศ. 2552

Set up CUDA Project #2 : Try to Build Example Project

I should say it before you read that I install Cuda winapp add-in before do this operation.

when you first build cuda project that you got from SDK
you will get this error (fatal error LNK1181:cannot open input file '.\Debug\bandwidthTest.cu.obj')


even you try search clue in log file. it help you not much



Compiling with CUDA Build Rule...
"C:\CUDA\bin\nvcc.exe" -arch sm_10 -ccbin "C:\Program Files\Microsoft Visual Studio 8\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MTd " -I""C:\CUDA\include;C:\ProgramFilesSummer4\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc;"" -I"../../common/inc" -maxrregcount=32 --compile -o "Debug\bandwidthTest.cu.obj" bandwidthTest.cu
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
Linking...
LINK : fatal error LNK1181: cannot open input file '.\Debug\bandwidthTest.cu.obj'

the right answer for me is come from this url.
http://www.cs.ucf.edu/~janaka/gpu/issues.htm

follow his advice Remove quotations from the nvcc include directories list

from this picture it changed to $(CUDA_INC_PATH);../../common/inc

ไม่มีความคิดเห็น: