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
None of the above answers worked for me. In my case, @Nehal J Wani
's comment below the OP's question led to the solution: As stated in the linked Intel support document, a single dynamic library can be used to link to the MKL.
After editing my project's Makefile to replace the following libraries
-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core
with
-lmkl_rt
and re-building, the error disappeared.