c++ - nvcc failed to compile in debug mode : Single file required -
i have problem trying compile program nvcc cuda. use visual studio 2012 , cuda 5.0.
when launch build in release mode, goes fine.
in debug mode following error message @ compile time first .cu file:
nvcc : fatal error : single input file required non-link phase when outputfile specified
my command lines are, release mode:
c:\users\ernest\documents\matlab\icem\icem_cpp\cudaicem>"c:\program files\nvidia gpu computing toolkit\cuda\v5.0\bin\nvcc.exe" -gencode=arch=compute_13,code=\"sm_13,compute_13\" --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\v5.0\include" -i"c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include" --keep-dir "x64\release" -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -d_windll -d_mbcs -xcompiler "/ehsc /w3 /nologo /o2 /zi /md " -o "x64\release\icem.cu.obj" "c:\users\ernest\documents\matlab\icem\icem_cpp\cudaicem\icem.cu"
and debug mode:
c:\users\ernest\documents\matlab\icem\icem_cpp\cudaicem>"c:\program files\nvidia gpu computing toolkit\cuda\v5.0\bin\nvcc.exe" -gencode=arch=compute_13,code=\"sm_13,compute_13\" --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\v5.0\include" -i"c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include" -g --keep-dir "x64\debug" -maxrregcount=0 --machine 64 --compile -g -d_cudacc_ 1 -d_windll -d_mbcs -xcompiler "/ehsc /w3 /nologo /od /zi /rtc1 /mdd " -o "x64\debug\icem.cu.obj" "c:\users\ernest\documents\matlab\icem\icem_cpp\cudaicem\icem.cu"
do see wrong second one? dont see multiple input files! idea test ?
the answer in preprocessor options. -d_cudacc_ 1
problem.
Comments
Post a Comment