caffe的编译出现问题

错误    64    error MSB3721: 命令“"D:\cuda\bin\nvcc.exe" -gencode=arch=compute_21,code=\"sm_21,compute_21\" --use-local-env --cl-version 2013 -ccbin "F:\yanyikejian\2018vs2013\VC\bin\x86_amd64"  -IF:\NugetPackages\boost.1.59.0.0\build\native\..\..\lib\native\include\ -IF:\NugetPackages\OpenCV.2.4.11\build\native\../../build/native/include/ -I"F:\NugetPackages\lmdb-v120-clean.0.9.14.0\build\native\..\..\lib\native\include" -I"F:\NugetPackages\LevelDB-vc120.1.2.0.0\build\native\../..//build/native/include/" -I"F:\NugetPackages\protobuf-v120.2.6.1\build\native\../..//build/native/include/" -IF:\NugetPackages\glog.0.3.3.0\build\native\../..//build/native/include/ -IF:\NugetPackages\gflags.2.1.2.1\build\native\../..///build/native/include/ -I"F:\NugetPackages\hdf5-v120-complete.1.8.15.2\build\native\..\..\lib\native\include" -IF:\NugetPackages\OpenBLAS.0.2.14.1\build\native\..\..\lib\native\include -I"F:\caffe-master\windows\libcaffe\\..\..\src\\" -ID:\cuda\include -ID:\cuda\include     --keep-dir F:\caffe-master\windows\..\Build\Int\libcaffe\x64\Release -maxrregcount=0  --machine 64 --compile -cudart static -Xcudafe "--diag_suppress=exception_spec_override_incompat --diag_suppress=useless_using_declaration --diag_suppress=field_without_dll_interface" -D_SCL_SECURE_NO_WARNINGS -DGFLAGS_DLL_DECL=    -DHAS_OPENCV -DHAS_LMDB -DHAS_HDF5 -DHAS_OPENBLAS -DNDEBUG -D_SCL_SECURE_NO_WARNINGS -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DMATLAB_MEX_FILE -DWITH_PYTHON_LAYER -DBOOST_PYTHON_STATIC_LIB -DUSE_CUDNN -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W1 /nologo /Ox /FS /Zi  /MD " -o F:\caffe-master\windows\..\Build\Int\libcaffe\x64\Release\absval_layer.cu.obj "F:\caffe-master\src\caffe\layers\absval_layer.cu"”已退出,返回代码为 1。    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 8.0.targets    689    9    libcaffe
本人的电脑显卡是610M,计算能力21,安装的cuda8.0,编译一直有问题,求指教
已邀请:

Alvin_Lee

赞同来自:

我有一个类似的错误也是 MSB3721,如下:

 error MSB3721: The command ""D:\Program Files\CUDA\bin\nvcc.exe" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --use-local-env -ccbin "D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -x cu  -I"D:\caffe-ssd-microsoft\NugetPackages\lmdb-v120-clean.0.9.14.0\build\native\..\..\lib\native\include" -I"D:\caffe-ssd-microsoft\NugetPackages\LevelDB-vc120.1.2.0.0\build\native\../..//build/native/include/" -I"D:\caffe-ssd-microsoft\NugetPackages\protobuf-v120.2.6.1\build\native\../..//build/native/include/" -I"D:\caffe-ssd-microsoft\NugetPackages\glog.0.3.3.0\build\native\../..//build/native/include/" -I"D:\caffe-ssd-microsoft\NugetPackages\gflags.2.1.2.1\build\native\../..///build/native/include/" -I"D:\caffe-ssd-microsoft\NugetPackages\boost.1.59.0.0\build\native\..\..\lib\native\include\\" -I"D:\caffe-ssd-microsoft\NugetPackages\hdf5-v120-complete.1.8.15.2\build\native\..\..\lib\native\include" -I"D:\caffe-ssd-microsoft\NugetPackages\OpenBLAS.0.2.14.1\build\native\..\..\lib\native\include" -I"D:\caffe-ssd-microsoft\NugetPackages\OpenCV.2.4.10\build\native\../../build/native/include/" -I"D:\caffe-ssd-microsoft\caffe-ssd-microsoft\windows\libcaffe\\..\..\src\\" -I"D:\Program Files\CUDA\include" -I"D:\Program Files\CUDA\include"     --keep-dir D:\caffe-ssd-microsoft\caffe-ssd-microsoft\windows\..\Build\Int\libcaffe\x64\Release -maxrregcount=0  --machine 64 --compile -cudart static -Xcudafe "--diag_suppress=exception_spec_override_incompat --diag_suppress=useless_using_declaration --diag_suppress=field_without_dll_interface" -D_SCL_SECURE_NO_WARNINGS -DGFLAGS_DLL_DECL=    -DHAS_LMDB -DHAS_HDF5 -DHAS_OPENBLAS -DHAS_OPENCV -DNDEBUG -D_SCL_SECURE_NO_WARNINGS -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DUSE_CUDNN -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W1 /nologo /Ox /FdD:\caffe-ssd-microsoft\caffe-ssd-microsoft\windows\..\Build\Int\libcaffe\x64\Release\vc120.pdb /FS /Zi  /MD " -o D:\caffe-ssd-microsoft\caffe-ssd-microsoft\windows\..\Build\Int\libcaffe\x64\Release\detection_output_layer.cu.obj "D:\caffe-ssd-microsoft\caffe-ssd-microsoft\src\caffe\layers\detection_output_layer.cu"" exited with code 2. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 10.0.targets 712 9 libcaffe

请问楼主解决了吗?能否告知方法。

要回复问题请先登录注册