File tree 8 files changed +13
-15
lines changed 8 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ if "%desired_cuda%" == "12.1" (
34
34
35
35
set DISTUTILS_USE_SDK = 1
36
36
37
- curl https://s3.amazonaws.com/ossci-windows/mkl_2020.2.254.7z -k -O
38
- 7z x -aoa mkl_2020.2.254.7z -omkl
39
- set CMAKE_INCLUDE_PATH = %SRC_DIR% \mkl\include
40
- set LIB = %SRC_DIR% \mkl\lib;%LIB%
41
-
42
37
set libuv_ROOT = %PREFIX% \Library
43
38
echo libuv_ROOT=%libuv_ROOT%
44
39
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ requirements:
19
19
- python
20
20
- setuptools
21
21
- pyyaml
22
+ - mkl-devel=2021.4.0 # [win]
22
23
{% if cross_compile_arm64 == 0 %}
23
24
- mkl-include # [x86_64]
24
25
- mkl=2020.2 # [x86_64 and not win]
@@ -37,8 +38,9 @@ requirements:
37
38
38
39
run :
39
40
- python
41
+ - mkl==2021.4.0 # [win]
40
42
{% if cross_compile_arm64 == 0 %}
41
- - mkl >=2018 # [x86_64]
43
+ - mkl==2021.4 # [x86_64]
42
44
{% endif %}
43
45
- libuv # [win]
44
46
- intel-openmp # [win]
Original file line number Diff line number Diff line change 1
- blas_impl :
2
- - mkl # [x86_64]
3
1
c_compiler :
4
2
- vs2019 # [win]
5
3
cxx_compiler :
Original file line number Diff line number Diff line change 177
177
if [[ " $( uname -m) " == " arm64" ]]; then
178
178
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq cmake ninja
179
179
else
180
- retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq cmake ninja mkl-include==2022.2.1 mkl-static==2022.2.1 -c intel
180
+ retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq cmake ninja mkl-include==2022.2.1 mkl-static==2022.2.1 mkl==2021.4.0 -c intel
181
181
fi
182
182
retry pip install -qr " ${pytorch_rootdir} /requirements.txt" || true
183
183
Original file line number Diff line number Diff line change @@ -67,10 +67,6 @@ exit /B 1
67
67
:: Install MKL
68
68
rmdir /s /q mkl
69
69
del mkl_2020.2.254.7z
70
- curl https://s3.amazonaws.com/ossci-windows/mkl_2020.2.254.7z -k -O
71
- 7z x -aoa mkl_2020.2.254.7z -omkl
72
- set CMAKE_INCLUDE_PATH = %cd% \mkl\include
73
- set LIB = %cd% \mkl\lib;%LIB%
74
70
75
71
:: Download MAGMA Files on CUDA builds
76
72
set MAGMA_VERSION = 2.5.4
@@ -128,7 +124,7 @@ for %%v in (%DESIRED_PYTHON_PREFIX%) do (
128
124
) else (
129
125
set " PATH = %CONDA_HOME% \envs\%%v ;%CONDA_HOME% \envs\%%v \scripts;%CONDA_HOME% \envs\%%v \Library\bin;%ORIG_PATH% "
130
126
)
131
- pip install ninja
127
+ pip install ninja mkl-include == 2021.4.0 mkl-devel == 2021.4.0
132
128
@ setlocal
133
129
:: Set Flags
134
130
if not " %CUDA_VERSION% " == " cpu" (
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ copy "%CUDA_PATH%\extras\CUPTI\lib64\cupti64_*.dll*" pytorch\torch\lib
11
11
12
12
copy " C:\Program Files\NVIDIA Corporation\NvToolsExt\bin\x64\nvToolsExt64_1.dll*" pytorch\torch\lib
13
13
copy " %CONDA_LIB_PATH% \libiomp*5md.dll" pytorch\torch\lib
14
+ copy " %CONDA_LIB_PATH% \mkl_intel_thread.1.dll" pytorch\torch\lib
15
+ copy " %CONDA_LIB_PATH% \mkl_core.1.dll" pytorch\torch\lib
16
+
14
17
:: Should be set in build_pytorch.bat
15
18
copy " %libuv_ROOT% \bin\uv.dll" pytorch\torch\lib
16
19
Original file line number Diff line number Diff line change 1
1
copy " %CONDA_LIB_PATH% \libiomp*5md.dll" pytorch\torch\lib
2
+ copy " %CONDA_LIB_PATH% \mkl_intel_thread.1.dll" pytorch\torch\lib
3
+ copy " %CONDA_LIB_PATH% \mkl_core.1.dll" pytorch\torch\lib
2
4
:: Should be set in build_pytorch.bat
3
5
copy " %libuv_ROOT% \bin\uv.dll" pytorch\torch\lib
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ if errorlevel 1 exit /b 1
53
53
54
54
set " PATH = %CD% \Python%PYTHON_VERSION% \Scripts;%CD% \Python;%PATH% "
55
55
56
- pip install -q numpy protobuf " mkl>=2019 "
56
+ pip install -q numpy protobuf
57
57
if errorlevel 1 exit /b 1
58
58
59
59
for /F " delims=" %%i in ('where /R " %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % " *.whl') do pip install " %%i "
@@ -95,6 +95,8 @@ if errorlevel 1 exit /b 1
95
95
:: todo: Remove numpy install once the issue above is resolved
96
96
call conda install -yq numpy pytorch %CONDA_EXTRA_ARGS%
97
97
if ERRORLEVEL 1 exit /b 1
98
+ call conda install -yq mkl=2021.4.0
99
+ if ERRORLEVEL 1 exit /b 1
98
100
99
101
set /a CUDA_VER = %CUDA_VERSION%
100
102
set CUDA_VER_MAJOR = %CUDA_VERSION:~0 ,-1 %
You can’t perform that action at this time.
0 commit comments