Issue 1:
Hello. I have been trying to build pytorch on Windows 10 Pro for about a week. I am really hitting a wall, and not sure how to proceed. I would appreciate so much any pointers that someone could give me. Here is my set of commands and output....

INPUT

set "VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build"

set CMAKE_GENERATOR=Visual Studio 15 2017 Win64

set DISTUTILS_USE_SDK=1

REM The following two lines are needed for Python 2.7, but the support for it is very experimental.

set MSSdk=1

set FORCE_PY27_BUILD=1

REM As for CUDA 8, VS2015 Update 3 is also required to build PyTorch. Use the following two lines.

set "PREBUILD_COMMAND=%VS140COMNTOOLS%....\VC\vcvarsall.bat"

set PREBUILD_COMMAND_ARGS=x64

call "%VS150COMNTOOLS%\vcvarsall.bat" x64 -vcvars_ver=14.15

python setup.py install

OUTPUT

...

C:/Development/workspaces/repos/pytorch/aten/src/ATen/native/cuda/SpectralOps.cu(288): warning : dllexport/dllimpo

rt conflict with "at::native::_fft_cufft" [C:\Development\workspaces\repos\pytorch\build\caffe2\caffe2_gpu.vcxproj]

"c:\Development\workspaces\repos\pytorch\build\INSTALL.vcxproj" (default target) (1) ->

"C:\Development\workspaces\repos\pytorch\build\ALL_BUILD.vcxproj" (default target) (3) ->

"C:\Development\workspaces\repos\pytorch\build\caffe2\apply_test.vcxproj" (default target) (4) ->

"C:\Development\workspaces\repos\pytorch\build\caffe2\caffe2_gpu.vcxproj" (default target) (18) ->

(CustomBuild target) ->

C:/Development/workspaces/repos/pytorch/aten/src\ATen/core/ArrayRef.h(152): error : cannot use an entity undefined

in device code [C:\Development\workspaces\repos\pytorch\build\caffe2\caffe2_gpu.vcxproj]

C:/Development/workspaces/repos/pytorch/aten/src\ATen/core/ArrayRef.h(152): error : identifier "Typeinfo for ::at

::Error" is undefined in device code [C:\Development\workspaces\repos\pytorch\build\caffe2\caffe2_gpu.vcxproj]

Error : Internal Compiler error (codegen): "there was an error in verifying the lgenfe output!" [C:\Development\wo

rkspaces\repos\pytorch\build\caffe2\caffe2_gpu.vcxproj]

11950 Warning(s)

3 Error(s)

Time Elapsed 01:56:37.06

(py36) c:\Development\workspaces\repos\pytorch\build>IF ERRORLEVEL 1 exit 1

Failed to run 'tools\build_pytorch_libs.bat --use-cuda --use-nnpack caffe2 libshm_windows'

Issue 2:
Bug

Internal compiler error on Windows with CUDA build.

Error: Internal Compiler Error (codegen): "there was an error in verifying the lgenfe output!"

cross_entropy_op.cu
CMake Error at caffe2_gpu_generated_cross_entropy_op.cu.obj.RelWithDebInfo.cmake:279 (message):
Error generating file
C:/Users/tolia/AppData/Local/Temp/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/operators/./caffe2_gpu_generated_cross_entropy_op.cu.obj

Environment

PyTorch Version (e.g., 1.0): master

OS (e.g., Linux): Win10

How you installed PyTorch (conda, pip, source): source

Build command you used (if compiling from source): cmake + VS2017 (15.9.4) + Ninja

Python version: 3.7

CUDA/cuDNN version: 10.0/7

GPU models and configuration: Kepler + Pascal (build for Kepler+Maxwell+Pascal+Volta)

Additional context

Noticed several similar reports: #12117 #14872 #13808 #11203