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
链接已复制
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.
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.
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.
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
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
