Okay, I tried that last night, but unfortunately it didn’t work. I tried this on 1.0 and a more current commit:
set “VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build”
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64
set DISTUTILS_USE_SDK=1
set REL_WITH_DEB_INFO=1
rem set DEBUG=1
set NO_TEST=1
set “CUDAHOSTCXX=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\cl.exe”
rem set “CUDAHOSTCXX=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe”
call “%VS150COMNTOOLS%\vcvarsall.bat” x64
python setup.py build > buildoutput.txt
And I tried to use both the older toolset in VS2017 and VS2015 (with the patch linked in the readme).
Everytime I get this error:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\yvals_core.h(298): fatal error C1189: #error:  STL1001: Unexpected compiler version, expected MSVC 19.15 or newer. [C:\libs\pytorch\build\caffe2\caffe2_gpu.vcxproj]
CMake Error at caffe2_gpu_generated_THCReduceApplyUtils.cu.obj.RelWithDebInfo.cmake:219 (message):
Error generating
C:/libs/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/RelWithDebInfo/caffe2_gpu_generated_THCReduceApplyUtils.cu.obj
(if you want to I can upload the entire output, about 3MB)
The problem seems to be that CUDAHOSTCXX is used to compile files which use the standard library, and the std files from the newer compiler are used.
Do you know how this might be fixed?
best regards