mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

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

Open wuzhijiexia opened this issue 9 years ago • 4 comments

I run into the problem when I run cifar-10 on Intel KNL. The description is as following: image 5 I have excuted it "source xx/xx/mklvars.sh intel64".

wuzhijiexia avatar Nov 30 '17 01:11 wuzhijiexia

We also observed similar issue and found a bug in prepare_mkl.sh that would wrongly set flag USE_MKLML to 0 when building mxnet with mklml so libmxnet.so will link with incorrect library, would you try to patch below diff and retry?

diff --git a/prepare_mkl.sh b/prepare_mkl.sh index 97a1e49..e048f59 100755 --- a/prepare_mkl.sh +++ b/prepare_mkl.sh @@ -115,7 +115,7 @@ if [ -z $MKLROOT ]; then fi

# Check what MKL lib we have in MKLROOT -if [ -z find $MKLROOT -name libmklml_gnu.so -o -name libmklml.dylib -print -quit ]; then +if [ -z find $MKLROOT \( -name libmklml_gnu.so -o -name libmklml.dylib \) -print -quit ]; then USE_MKLML=0 elif [ -z find $MKLROOT -name libmkl_core.so -print -quit ]; then USE_MKLML=1

We plan to fix this issue and may submit pull request later.

jinhuang415 avatar Dec 05 '17 06:12 jinhuang415

Proposed Labels : "Bug", "MKL", "Data Loading"

harshitajain1994 avatar Mar 10 '18 00:03 harshitajain1994

Resolved by #9112 and the mklml has been replaced by MKL-DNN. This should be closed. @sandeep-krishnamurthy

@wuzhijiexia could you try the new code?

pengzhao-intel avatar Mar 13 '18 06:03 pengzhao-intel

This issue has been fixed in #9112. @marcoabreu could you help close this one?

pengzhao-intel avatar Mar 22 '18 07:03 pengzhao-intel