Closed iNomaD closed 6 years ago
Hello @iNomaD Thank you for trying neon, and especially neon with MKL! As you may know, we have only tested neon with MKL Linux versions. However, from the information you provided, I see at least we can try one more thing:
First apologies for the confusion regarding "MKL", in neon when we say "MKL" we mean the small library (Deep Neural Network part of MKL): https://github.com/01org/mkl-dnn/releases from this page you can see mklml_lnx_2018.0.20170908.tgz (since you are using msys64). Otherwise I would have suggested trying mklml_win_2018.0.20170908.tgz (again, sorry we never tried this windows MKLML version).
From the above "cannot find -lmklml_gnu" and "cannot find -liomp5" I know it is trying to find the libary (.so format) in the mklml_lnx_2018.0.20170908/lib directory.
So instead of putting INTEL (BIG) MKL distribution path in MKLROOT, can you please check if directory (under neon) mklml_lnx_2018.0.20170908 is available (and futher whether mklml_lnx_2018.0.20170908/lib) contains the following .so files?
libiomp5.so libmklml_gnu.so libmklml_intel.so
If you do not have "mklml_lnx_2018.0.20170908" directory AFTER typing "make" under neon. Then I would suggest checking whether mklml_lnx_2018.0.20170908.tgz was downloaded successfully:
66M Sep 13 13:41 mklml_lnx_2018.0.20170908.tgz
If not, I would suggest downloading directly from https://github.com/01org/mkl-dnn/releases where you can find the mklml_lnx_2018.0.20170908.tgz
Please keep us updated whether the above is of any help. Thank you again for trying neon with MKL (MKLML) on IA!
Thank you, @wei-v-wang I made it work with zip release and sent my solution as a pull request https://github.com/NervanaSystems/neon/pull/407
Thanks @iNomaD ! We will work on merging your PR.
I've successfully installed neon on Win7 with msys64 and Anaconda. Unfortunately, MKL doesn't work out of the box. When I run
python examples/mnist_mlp.py -b mkl
, I get the following:Inside sources these lines cause
get_mkl_lib()
to produce AssertionError:Now I am trying to build neon/backends/mklEngine. I put the path to my Intel MKL distribution for Windows as
SET MKLROOT=E:\Programs\IntelSWTools\compilers_and_libraries_2018.0.124\windows\mkl
and I also madeconda install mkl
. Now typingmake
I get links errors because I don't have mklml_gnu lib inside my MKL distribution:Could you help me to build it?
P.S. I hope, the official support of Windows would be a great contribution for the community.