-
Notifications
You must be signed in to change notification settings - Fork 6.8k
mkldnn is not properly installed #15294
Comments
Hey, this is the MXNet Label Bot. |
Also, I have add
It seems that |
@NeoZhangJianyu please help to take a look the cmake build. Thanks! |
@mxnet-label-bot add [Build, MKLDNN] |
@hubutui The MKLML will be compiled when MKLDNN is enable, even if the
|
I use the PKGBUILD to build mxnet in a archroot environment days ago, so the build dir is deleted automatically. But here is the complete build log for these for package (mxnet, mxnet-mkl, mxnet-cuda, mxnet-cuda-mkl). Note that in the build log, I use gcc 8 instead of clang. To reproduce:
mxnet-1.5.0.rc1-5-x86_64-prepare.log is the log of mxnet-1.5.0.rc1-5-x86_64-package_mxnet.log |
hmm, it seems that mkl-dnn link to mklml libs provided in the mkl-dnn release page when buiding. DownloadMKLML.cmake downloads the mklml libs to build mkl-dnn. This behavior is affected by
|
This sounds like an issue. Can you elaborate more? We didn't get issue report about that before.
We definitely will update MKL-DNN to v1.0 in the future. But it's not as easy as change the commit id. v1.0 is not compatible with v0.x versions. So many things need be changed.
That will hurt performance. |
you could check the build log. Or reproduce as described above. If I do not manually install mklml as https://github.com/archlinuxcn/repo/blob/master/archlinuxcn/mxnet/PKGBUILD do, |
Hi butui
file(RPATH_CHANGE
I discussed this with tao.lv and as you sknow, there are some change about libmklml in later design. so I may suggested keep the current workaround as you did |
Currently, the workaround is install |
@hubutui does our document can resolve the issue? If not, what's part missed? |
@pengzhao-intel I'm not sure, I don't use the Makefile to build, I use cmake. |
@hubutui does this issue resolve now? |
@pengzhao-intel Yeah, after bump mkldnn to 1.0 version, I could succussfully build mxnet now. Any plan to install mkldnn so files to |
It's great that the problem is fixed in the latest code. Currently, the MKLDNN in the submodule directory. It's not doable to use the system's mkldnn since the API is not portable in different versions like from v0.x to v1.x. |
OK, I see. To avoid potential file conflicts with |
@hubutui Do you think it's still a problem if we statically link |
the static link is used in master so I think the problem is fixed, closing. |
Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues and bug reports. For non-technical issues and feature requests, feel free to present the information in what you believe is the best form.
For Q & A and discussion, please start a discussion thread at https://discuss.mxnet.io
Description
libmklml_intel.so
andlibmklml_gnu.so
are missing in the final installation, onlylibmkldnn.so
is installed. Butlibmkldnn.so
needslibmklml_intel.so
, not sure iflibmklml_gnu.so
is needed too.Environment info (Required)
Package used (Python/R/Scala/Julia):
python 3.7
Build info (Required if built from source)
Compiler (gcc/clang/mingw/visual studio):
clang 8.0.0
MXNet commit hash:
(Paste the output of
git rev-parse HEAD
here.)4d96671
Build config:
(Paste the content of config.mk, or the build command.)
Error Message:
Minimum reproducible example
(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
Steps to reproduce
(Paste the commands you ran that produced the error.)
ldd /usr/lib/libmkldnn.so
What have you tried to solve it?
The text was updated successfully, but these errors were encountered: