开发者社区> 问答> 正文

caffe编译报错

Severity Code Description Project File Line Suppression State
Error MSB3721 The command ""C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0binnvcc.exe" -gencode=arch=compute_52,code="sm_52,compute_52" -gencode=arch=compute_60,code="sm_60,compute_60" --use-local-env --cl-version 2015 -ccbin "D:Program Files (x86)Microsoft Visual Studio 14.0VCbinx86_amd64" -I"E:caffecaffe-windowswindowslibcaffe\....src\" -I"E:caffecaffe-windowswindowslibcaffe\....3rdparty\" -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0include" -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0include" --keep-dir E:caffecaffe-windowswindows..BuildIntlibcaffex64Release -maxrregcount=0 --machine 64 --compile -cudart static -Xcompiler "/wd 4819" -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= -DNDEBUG -D_SCL_SECURE_NO_WARNINGS -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DWITH_PYTHON_LAYER -DBOOST_PYTHON_STATIC_LIB -DUSE_NCCL -DUSE_CUDNN -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W1 /nologo /Ox /FS /Zi /MD " -o E:caffecaffe-windowswindows..BuildIntlibcaffex64Releasetriplet_loss_layer.cu.obj "E:caffecaffe-windowssrccaffelayerstriplet_loss_layer.cu"" exited with code 2. libcaffe C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140BuildCustomizationsCUDA 8.0.targets 689

QQ_20190102141355

展开
收起
强心剂 2019-01-02 14:14:41 2620 0
1 条回答
写回答
取消 提交回答
  • 确认安装了 CUDA 且 CUDA 路径包含在了环境变量中且显卡驱动的版本和 CUDA 版本是兼容的,根据 nvidia 的文档 CUDA 8.0 驱动版本需要大于等于 367.48。

    2019-07-17 23:24:23
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载