Open FeiWangDaGe opened 7 years ago
development environment:Windows7 x64 + Visual Studio 2013 update5 + CUDA8.0
Compile “cuda_djezo” DeBug Model is OK,Release Model error MSB3721(The following error message,Hope God can help solve):
1>------ 已启动全部重新生成: 项目: cuda_djezo, 配置: Release x64 ------ 1> 1> X:\nheqminer-0.5c\cuda_djezo>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc.exe" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -I..\3rdparty\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" --keep-dir x64\Release -maxrregcount=0 --ptxas-options=-v --machine 64 --compile –Xptxas –dlcm=ca -Xptxas -dscm=cs -DWIN32 -DWIN64 -DNDEBUG -D_CONSOLE -D_LIB -D_WINDLL -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /FS /Zi /MD " -o x64\Release\equi_miner.cu.obj "X:\nheqminer-0.5c\cuda_djezo\equi_miner.cu" -clean 1>CUDACOMPILE : nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). 1> nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 8.0.targets(863,9): error MSB3721: 命令“"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc.exe" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -I..\3rdparty\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" --keep-dir x64\Release -maxrregcount=0 --ptxas-options=-v --machine 64 --compile –Xptxas –dlcm=ca -Xptxas -dscm=cs -DWIN32 -DWIN64 -DNDEBUG -D_CONSOLE -D_LIB -D_WINDLL -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /FS /Zi /MD " -o x64\Release\equi_miner.cu.obj "X:\nheqminer-0.5c\cuda_djezo\equi_miner.cu" -clean”已退出,返回代码为 1。 ========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========
修改 cuda的编译选项,去掉其它选项
development environment:Windows7 x64 + Visual Studio 2013 update5 + CUDA8.0
Compile “cuda_djezo” DeBug Model is OK,Release Model error MSB3721(The following error message,Hope God can help solve):
1>------ 已启动全部重新生成: 项目: cuda_djezo, 配置: Release x64 ------ 1>
1> X:\nheqminer-0.5c\cuda_djezo>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc.exe" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -I..\3rdparty\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" --keep-dir x64\Release -maxrregcount=0 --ptxas-options=-v --machine 64 --compile –Xptxas –dlcm=ca -Xptxas -dscm=cs -DWIN32 -DWIN64 -DNDEBUG -D_CONSOLE -D_LIB -D_WINDLL -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /FS /Zi /MD " -o x64\Release\equi_miner.cu.obj "X:\nheqminer-0.5c\cuda_djezo\equi_miner.cu" -clean 1>CUDACOMPILE : nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). 1> nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 8.0.targets(863,9): error MSB3721: 命令“"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc.exe" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -I..\3rdparty\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" --keep-dir x64\Release -maxrregcount=0 --ptxas-options=-v --machine 64 --compile –Xptxas –dlcm=ca -Xptxas -dscm=cs -DWIN32 -DWIN64 -DNDEBUG -D_CONSOLE -D_LIB -D_WINDLL -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /FS /Zi /MD " -o x64\Release\equi_miner.cu.obj "X:\nheqminer-0.5c\cuda_djezo\equi_miner.cu" -clean”已退出,返回代码为 1。 ========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========