1

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

目前,我正在尝试安装 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 大约一周了。

4

1 回答 1

0

Well, according to the official troubleshooting section of Caffe2,

Until NVIDIA updates CUDA to support VS 17, you’re going to have to install VS 15 and try again.

So, you need to install Visual Studio 15 to install Caffe2 on Windows 10. The troubleshooting section can be found at Install Caffe2 on Windows

于 2019-02-06T18:08:00.350 回答