-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Can't install mxnet with mkldnn,Error: undefined symbol: mkldnn_primitive_desc_query_memory_d #15419
Comments
Hey, this is the MXNet Label Bot. |
Looks like that MXNet links to a old version of MKL-DNN in your system. |
The MKL-DNN is from the 3rdparty of MXNet, By the way, can you tell me how to try a new version of MKL-DNN,can I just replace the folder in the 3rdparty or I should change the makefile. Thanks a lot. |
There is no need to update MKL-DNN manually. |
I'm so sorry that I can't find the validation script.cc from your given information, could you tell me where it is? Thanks so much! |
I mean:
|
Ohh,Ok,sorry I'm so stupid, I've done this, but get the same error , But still thanks a lot |
MXNet should link to the mkldnn.so under the incubator-mxnet/lib folder. But from the ldd info, it links to the one under /usr/local/lib/. It's strange to me. |
Thanks !!! it works !! and here is another question: When I run the validation script. cc and set the MKLDNN_VERBOSE=1, I can see the debugging logs.But when I try to run the code in examples, such as train_mnist.py, there is no debugging logs anymore, Do you know about this? Sorry to bother you, I am still a beginner, Thanks again !!! |
Great to hear it works now! In order to see MKL-DNN verbose log, you need:
I can see MKL-DNN verbose log on my side:
|
Resolved and closing. |
Description
(Brief description of the problem in no more than 2 sentences.)
I've done the instruction from https://github.com/xinyu-intel/incubator-mxnet/blob/master/docs/tutorials/mkldnn/MKLDNN_README.md ,
because I don't have the full MKL library installation ,so I run the command as follw
make -j $(nproc) USE_OPENCV=1 USE_MKLDNN=1 USE_BLAS=openblas USE_INTEL_PATH=/opt/intel
and when I first run the command in order to verify mxnet as the document says
the results are good ,However , When I try to verify whether MKL-DNN works,I run the code as follows:
I got this error:
and at this time, when I run the code *python -c "import mxnet as mx;print((mx.nd.ones((2, 3))2).asnumpy());" ,I got same error.
After this, I install the full MKL , and my steps are follows:
When I do this , I go back to run the command
make -j $(nproc) USE_OPENCV=1 USE_MKLDNN=1 USE_BLAS=mkl USE_INTEL_PATH=/opt/intel
and got same error , Anyone can help?
Environment info (Required)
What have you tried to solve it?
1.ldd /usr/local/lib/python2.7/dist-packages/mxnet-1.5.0-py2.7.egg/mxnet/libmxnet.so
ldd /usr/local/lib/libmkldnn.so
*/home/henan/incubator-mxnet$ find . -name mklml_intel.so
./3rdparty/mkldnn/build/install/lib/libmklml_intel.so
./3rdparty/mkldnn/external/mklml_lnx_2019.0.5.20190502/lib/libmklml_intel.so
./lib/libmklml_intel.so
Is there are some faults in my install steps? Hope someone can help!
The text was updated successfully, but these errors were encountered: