From 486ec6c6ac8541c7df892274b0e86a02fb77cdea Mon Sep 17 00:00:00 2001 From: Julieta Date: Wed, 30 Aug 2017 21:31:33 -0700 Subject: [PATCH] Add LD_PRELOAD update to MKL compile instructions (#197) It took me quite some time to get around this error -- it might save others time. --- example_makefiles/makefile.inc.Linux | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/example_makefiles/makefile.inc.Linux b/example_makefiles/makefile.inc.Linux index 569f3ba9c..d7916f0c0 100644 --- a/example_makefiles/makefile.inc.Linux +++ b/example_makefiles/makefile.inc.Linux @@ -49,8 +49,12 @@ FAISSSHAREDFLAGS=-shared # # BLASCFLAGS=-DFINTEGER=long # -# you may have to set the LD_LIBRARY_PATH=$MKLROOT/lib/intel64 at runtime -# +# you may have to set the LD_LIBRARY_PATH=$MKLROOT/lib/intel64 at runtime. +# If at runtime you get the error: +# Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so. +# You may add set +# LD_PRELOAD=$MKLROOT/lib/intel64/libmkl_core.so:$MKLROOT/lib/intel64/libmkl_sequential.so +# at runtime as well. # # 2. Openblas