Closed
Description
I compiled passing --config=mkl to bazel, it compiles fine and i get the .whl file, i install it with pip correctly, but when i launch a python session and type : import tensorflow as tf i get:
ImportError: libmklml_intel.so: cannot open shared object file: No such file or directory
Any ideas?
Activity
gunan commentedon Oct 15, 2017
I apologize but I am having a hard time understanding what the problem is, where the problem is, and what version it affects. Please resubmit and pay attention to the issue template (https://github.com/tensorflow/tensorflow/issues/new) . Please provide all the information it asks. Thank you.
RenfengLiu commentedon Oct 27, 2017
I had the same problem, compiled successfully with --config=mkl on Ubuntu 16.04, and installed the whl with pip. But in python code, when you run
import tensorflow as tf
, I got following error messagerylz commentedon Nov 1, 2017
I had the same problem and after many attempts to install the base intel-mkl distribution and finding that it did not include a library called libmklml_intel.so, I found the following Intel repo that builds this library: https://github.com/01org/mkl-dnn
I followed their installation instructions and tensorflow started working. Note that it installs to /usr/local/lib by default, so you may need to add that to your
LD_LIBRARY_PATH
depending on your current configuration.Include _solib_local for MKL-DNN libs
yingted commentedon Nov 20, 2017
I have the same problem. It looks like this error is caused by
libmklml_intel.so
not being includedI've created a PR: #14709
It'll take me at least a day to review the CLA.
Related commit: fbbe5cd
Related issue: #12975
Include _solib_local for MKL-DNN libs (#14709)
Immexxx commentedon Dec 27, 2017
Verified Solution: If others hit this page, change the code as per @yingted git commit (instead of trying to install the base Intel-MKL), rebuild using bazel (which finished very quickly) and you should see that the new .whl is about 30M more that the previous one
Using the new .whl to install (with the -I option if required) and the import should work correctly
0xDaksh commentedon Jan 2, 2018
Fix for this is:
If you're using zsh instead of bash, omit the last line with:
syedmohsinbukhari commentedon Jan 21, 2018
@DakshMiglani Thanks. Do I have to compile tensorflow again?
YerongLi commentedon Apr 10, 2018
Following MKL instruction here does not gives necessary libmklml_intel.so file in the library.
https://github.com/mind/wheels#mkl.
Anyone knows how to follow MKL README https://github.com/intel/mkl-dnn in order to generate libmklml_intel.so?
4 remaining items