Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so

前端 未结 12 1606
时光取名叫无心
时光取名叫无心 2021-01-30 00:27

I am running a python script and I get this error:

Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so.

Both files are present

12条回答
  •  [愿得一人]
    2021-01-30 00:31

    Wanted to add on Valilutzik and Zaikun Xu's thread. I can't add comments since I don't have enough points yet.
    conda install nomkl numpy scipy scikit-learn numexpr worked for me without having to remove mkl and mkl-service.

    Adding an answer to Lee's question if nomkl will be slower: mkl is a Intel math kernel library and is hand-optimized for intel cpus. nomkl uses OpenBlas according to this: https://docs.continuum.io/mkl-optimizations/ It seems that mkl is quite faster on many matrix operations for intel cpus (see https://software.intel.com/en-us/articles/performance-comparison-of-openblas-and-intel-math-kernel-library-in-r)
    I've seen someone saying nomkl is faster for AMD cpus (maybe because mkl doesn't work correctly in AMD?)

提交回复
热议问题