intel mkl fatal error when running kaldi gst live demo

Question:

the output errori tried running GST_PLUGIN_PATH=../../src/gst-plugin ./run-live.py and get intel mkl fatal error Intel MKL FATAL ERROR: cannot load libmkl_vml_avx2.so or libmkl_vml_def.so.

i tried export LD_PRELOAD=/opt/intel/mkl/lib/intel64/libmkl_core.so:/opt/intel/mkl/lib/intel64/libmkl_sequential.so
but it did not fix it

i then tried sudo pip3 install mkl
after that i installed some other things sudo pip3 install numpy scipy scikit-learn numexpr

and the error is still present

Asked By: saudmx3

||

Answers:

could you try export LD_PRELOAD=mklroot/lib/intel64/libmkl_rt.so

Answered By: Gennady.F

I tried this export and it seemed to remove the errors

export LD_PRELOAD=/opt/intel/mkl/lib/intel64/libmkl_def.so:/opt/intel/mkl/lib/intel64/libmkl_avx2.so:/opt/intel/mkl/lib/intel64/libmkl_core.so:/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so:/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so:/opt/intel/lib/intel64_lin/libiomp5.so

the python script I’m using didn’t work ass intended I’m not sure if the problem is with my solution or with the script it self but i thought i might help someone else if they get the same problem

Answered By: saudmx3

I had a similar issue when running my code inside Google Colab and could solve it with:

export LD_PRELOAD=/usr/local/lib/libmkl_rt.so
Answered By: Martin Bucher
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.