Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intel MKL FATAL ERROR: This system does not meet the minimum requirements for use of the Intel(R) Math Kernel Library

I am running PyTorch in Python 3.8.5 on a M1 Macbook Pro, and I get these error messages:

Intel MKL FATAL ERROR: This system does not meet the minimum requirements for use of the Intel(R) Math Kernel Library.
The processor must support the Intel(R) Supplemental Streaming SIMD Extensions 3 (Intel(R) SSSE3) instructions.
The processor must support the Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) instructions.
The processor must support the Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.

What do they mean, and what can I do to resolve them?

like image 364
mathwizurd Avatar asked Dec 04 '25 05:12

mathwizurd


1 Answers

I ran into this error when trying to install an intel env via conda on an M1 mac. With a native env (osx-arm64) it worked, but I needed an intel env (osx-64) for some other reason.

I managed to resolve this error by downgrading mkl to version 2021 instead of version 2022 which was installed as a transitive dependency.

I simply added this to my environment.yml and re-installed it:

- mkl < 2022

Note that if your conda is M1 native (i.e. has a platform of osx-arm64), and you want to install an intel environment, you need to do it like so:

CONDA_SUBDIR=osx-64 conda env update -f environment.yml

The env also contains pytorch, and this approach allowed me to install everything via conda, instead of relying on a hybrid of conda/pip like the other solutions.

like image 136
avivr Avatar answered Dec 06 '25 18:12

avivr