- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any clues how I can debug this?
python test7.py
Intel MKL FATAL ERROR: Cannot load libmkl_avx.so or libmkl_def.so.
I do have these libraries. I also tried setting LD_LIBRARY_PATH to where these libraries reside, in
../ext/lib
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
LD_DEBUG="files libs" LD_DEBUG_OUTPUT=ld.log python test7.py
And then looking in ld.log.* might give a hint since it will show libraries being loaded and search paths. Let me know if that doesn't help and I can ask MKL team. MKL might be using dlopen to load this library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you send me test7.py so I can try to reproduce the original problem:
python test7.py
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
test7.py has lots of dependencies on my own wrapped c++ code
I think if you can build an intel version of cvxopt maybe that will fix it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are probably right. The conda cvxopt depends on mkl and there is probably a conflict. I will try to make a simpler reproducer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think the problems are caused by cvxopt. I have cvxopt from conda install (not intel, which lacks it).
I had tried to pip install cvxopt, but the build failed, couldn't find lapack and blas. Strange, because mkl supplies lapack and blas, and because I tried installing openblas, which should also supply them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys, we are running into the exact undefined symbols.
My use case is caffe build with mkl and python bindings. we're using 2018.0.128 .
Caffe command line works fine but the issue came when we import caffe in python.
"pip install cvxopt" doesn't work.
similar thread on this issue: https://github.com/BVLC/caffe/issues/3884
Pls share if we have a solution.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vui Seng,
Thanks for reporting. Are you attempting to build your own Intel Caffe with Intel Python, or are you seeing this issue when using the Caffe that comes bundled with Intel Python?
Thanks,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am struggling with the same issues with python calling C code that calls MKL.Was this resolved?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My understanding is that Python sets a default for the loading of dynamic modules that results in this error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved the issue. Needed to make sure that the Makefile that builds the Python module has -lmkl_rt and -lmkl_def on the link line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you require cvxopt to utilize blas and lapack routines from Intel MKL (i.e. shipped with IDP), you can build cvxopt from its sources. The instructions are as follows:
<IDP_installation>/bin/conda create -n cvxopt_install python=3.6 setuptools mkl . <IDP_installation>/bin/activate cvxopt_install #Fetch sources for cvxopt git clone https://github.com/cvxopt/cvxopt.git cd cvxopt git checkout `git describe --abbrev=0 --tags` #Fetch SuiteSparse (a runtime requirement) wget http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.5.4.tar.gz tar -xf SuiteSparse-4.5.4.tar.gz #Export variables required for building cvxopt with MKL export PREFIX_LIB=`which python`/../lib export CVXOPT_LAPACK_LIB=mkl_rt export CVXOPT_BLAS_LIB=mkl_rt export CVXOPT_SUITESPARSE_SRC_DIR=`pwd`/SuiteSparse export CVXOPT_BLAS_LIB_DIR=${PREFIX_LIB} export CVXOPT_BLAS_EXTRA_LINK_ARGS="-L${PREFIX_LIB};-Wl,-rpath,${PREFIX_LIB};-lmkl_rt" python setup.py install #post-build clean-up: for i in `env | grep -E "CVXOPT|PREFIX_LIB" | cut -d '=' -f 1`; do unset $i; done #cd ..; rm -rf cvxopt
Thanks,
Rohit

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page