Windows 10上的Caffe 2安装失败

时间:2018-06-14 04:30:18

标签: visual-studio eigen pytorch caffe2

这是一个相当危险的旅程,有很多错误信息。我正在从源代码将Caffe 2安装到带有Nvidia GPU的Windows 10机器上。我已经安装了VS2017 Community Edition(CE),CUDA 9.2和cuDNN。我能够将CUDA样本.sln文件构建到.exe中并成功运行.exe

目前,我正在尝试安装Caffe 2.当然,这一步也有错误。像我以前的问题一样,我试过谷歌搜索这个错误。不幸的是,我无法找到具有相同问题的其他人,因此无法找到解决方案的提示。

根据Caffe 2安装说明:https://caffe2.ai/docs/getting-started.html?platform=windows&configuration=compile

1. git clone --recursive https://github.com/pytorch/pytorch.git
2. build_windows.bat from the Developer Command Prompt for VS 2017

在第2步,我收到以下错误:

       "C:\Users\andcy\pytorch\build\ALL_BUILD.vcxproj" (default target) (1) ->
       "C:\Users\andcy\pytorch\build\caffe2\caffe2.vcxproj" (default target) (13) ->
       (ClCompile target) ->
         c:\users\andcy\pytorch\third_party\eigen\eigen\src\core\products\generalblockpanelkernel.h(1902): fatal error C1001: An internal error has occurred in the compiler. [C:\Users\andcy\pytorch\build\caffe2\caffe2.vcxproj]
         cl : Command line error D8040: error creating or communicating with child process [C:\Users\andcy\pytorch\build\caffe2\caffe2.vcxproj]

    3282 Warning(s)
    2 Error(s)

Time Elapsed 00:05:11.58
"Caffe2 building failed"

C:\Users\andcy\pytorch\scripts>

有人对如何解决此问题有任何建议吗?我一直试图在我的本地机器上安装Caffe 2大约一个星期。

1 个答案:

答案 0 :(得分:0)

好吧,根据Caffe2的官方故障排除部分,

  

在NVIDIA更新CUDA以支持VS 17之前,您将必须安装VS 15并重试。

因此,您需要安装Visual Studio 15才能在Windows 10上安装Caffe2。故障排除部分位于Install Caffe2 on Windows

相关问题