0

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

saudmx3
  • 13
  • 2

3 Answers3

2

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

Gennady.F
  • 571
  • 2
  • 7
  • i tried what you suggested but i still get the same errors but there was only one slight change when i tried to run my python code again `ERROR: ld.so: object 'mklroot/lib/intel64/libmkl_rt.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.` – saudmx3 Apr 21 '20 at 19:15
  • mklroot - the path where mkl is installed on your system. you need to change this path accordingly your systems. by the default, it looks like as follow: /opt/intel/compilers_and_libraries/linux/mkl...... – Gennady.F Apr 23 '20 at 05:15
1

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

saudmx3
  • 13
  • 2
0

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
Martin Bucher
  • 165
  • 3
  • 11