Building Caffe2 for Windows - t-kuha/caffe-win-dependency GitHub Wiki

Under construction...

0. Environment

  • Caffe2 source code
  • git
  • CMake (ver 3.10.2)
  • Visual Studio 2017
  • CUDA 9.1 / cuDNN 7.0.5
  • Python (Miniconda2; Python 2.7)

1. Get sources

> git clone --recursive https://github.com/pytorch/pytorch.git
:: Or ...
:: git clone --recursive https://github.com/t-kuha/pytorch.git
> git clone https://github.com/t-kuha/caffe-win-dependency.git

2. Build

> mkdir _build
> cd _build
> ..\build_caffe2.cmd ../caffe-win-dependency/_vs2017 ../pytorch