Skip to content

Commit

Permalink
Simplify mkl build dependencies (#1305)
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
malfet committed Feb 11, 2023
1 parent b7c47c5 commit cb27008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda/pytorch-nightly/meta.yaml
Expand Up @@ -21,8 +21,8 @@ requirements:
- pyyaml
{% if cross_compile_arm64 == 0 %}
- mkl-include # [x86_64]
- mkl=2020.2 # [x86_64 and ((not win and py < 311) or py <= 39)]
- mkl=2021.4 # [x86_64 and ((win and py >= 310) or py >= 311)]
- mkl=2020.2 # [x86_64 and not win]
- mkl=2021.4 # [x86_64 and win]
{% endif %}
- typing_extensions
- ninja
Expand Down

0 comments on commit cb27008

Please sign in to comment.