Skip to content

Commit cb27008

Browse files
authored
Simplify mkl build dependencies (#1305)
On Linux and Mac PyTorch must be built against `mkl=2020.x` in order to be compatible with both `mkl-2021` and `mkl-2022`, that added `.so.1` and `.so.2` files respectively, that would make binary linked against those versions incompatible with the newer/older toolchains. This is not an issue on Windows, as all mkl binaries there end with simple `.dll`
1 parent b7c47c5 commit cb27008

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conda/pytorch-nightly/meta.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ requirements:
2121
- pyyaml
2222
{% if cross_compile_arm64 == 0 %}
2323
- mkl-include # [x86_64]
24-
- mkl=2020.2 # [x86_64 and ((not win and py < 311) or py <= 39)]
25-
- mkl=2021.4 # [x86_64 and ((win and py >= 310) or py >= 311)]
24+
- mkl=2020.2 # [x86_64 and not win]
25+
- mkl=2021.4 # [x86_64 and win]
2626
{% endif %}
2727
- typing_extensions
2828
- ninja

0 commit comments

Comments
 (0)