Hello,
I am having issues building pytorch 2.7.1 from source on windows. My stack is as follows:
- Visual Studio 2019
- OneAPI Intel
- Cuda 11.7 Update 1, with cudnn 8.9.7
- Python 3.11 (with requirements.txt installed) in Miniconda
When I try to naively run “python setup.py develop” inside of miniconda actiaved to 2019 visual studio command prompt it does not recognize MKL when building and for some reason fails to copy cupti64)2022.21.dll into torch\lib resulting in the following error:
OSError: [WinError 126] The specified module could not be found. Error loading “c:\users\admin\source\pytorch\torch\lib\aoti_custom_ops.dll” or one of its dependencies.
auoti_custom_ops.dll
→ torch_cpu.dll
→ cupti64_2022.2.1.dll (for some reason missing)
“Solution” copy file
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\extras\CUPTI\lib64\cupti64_2022.2.1.dll" → C:\Users\Admin\source\pytorch\torch\lib
There should be a much more controllable and elegant way to build it from source directly, ideally with MKL and arbitrary cuda arches, however I am unable to find a ready made script to do this.
Please help me solve this issue,
Ivan