mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: aaronmarkham this solves your Windows build issue. Basically: (1) VS 2017 does not have CUDA support yet, and we will be waiting on NVidia to do so. (2) VS 2015 and 2017 need different cmake generator strings. This PR shows how to determine those and also updates appveyor to do contbuild guard for the following 3 settings: - VS2015 without cuda - VS2017 without cuda - VS2015 with cuda Closes https://github.com/caffe2/caffe2/pull/210 Differential Revision: D4745007 Pulled By: Yangqing fbshipit-source-id: 50952552843abd0eb6f4145d9f132daeee3a6794
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
version: '{build}'
|
|
clone_folder: c:\projects\caffe2
|
|
environment:
|
|
matrix:
|
|
- USE_CUDA: OFF
|
|
CMAKE_BUILD_TYPE: Release
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
# Building CUDA with Visual Studio 2017 is yet to be supported by
|
|
# NVidia, so we canot enable it right now.
|
|
#- USE_CUDA: ON
|
|
# CMAKE_BUILD_TYPE: Release
|
|
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
- USE_CUDA: ON
|
|
CMAKE_BUILD_TYPE: Release
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
- USE_CUDA: OFF
|
|
CMAKE_BUILD_TYPE: Release
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
# Debug build is not a top priority for us right now, so in the
|
|
# interest of contbuild time, we disable it.
|
|
#- USE_CUDA: OFF
|
|
# CMAKE_BUILD_TYPE: Debug
|
|
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
# Currently, CUDA + Debug does not work due to a error of using
|
|
# std::_Debug_lt in device code. Not sure where this comes from yet,
|
|
# but it is probably safe to assume that very few are going to build
|
|
# debug mode with CUDA and Windows.
|
|
#- USE_CUDA: ON
|
|
# CMAKE_BUILD_TYPE: Debug
|
|
|
|
install:
|
|
- cmd: c:\projects\caffe2\scripts\appveyor\install.bat
|
|
|
|
build_script:
|
|
- cmd: >-
|
|
cd c:\projects\caffe2
|
|
|
|
git submodule update --init
|
|
|
|
call scripts\build_windows.bat
|