I have been trying to compile PyTorch from source on Windows 10. I am following the steps as suggested on https://github.com/pytorch/pytorch#from-source.
I have followed these steps to compile it with Ninja after having problems trying to compile it with the default steps mentioned.
These are the steps I have followed after cloning pytorch.
5.for /f “usebackq tokens=*” %i in (
"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -version [15^,16^) -products * -latest -property installationPath) do call “D:\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat” x64 -vcvars_ver=%CMAKE_GENERATOR_TOOLSET_VERSION%
6.set CUDAHOSTCXX=D:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\cl.exe
7.python setup.py install
and after taking hours to compile I received this traceback from the anaconda console.
I have uploaded the Image from the traceback and I would really get some help on how to solve this as I am trying to go through the fastai course using my own gpu but it says that old gpus are not supported. I have a GTX 960M GPU and was asked to compile it from source to make it work.