- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Can you send me test7.py so I can try to reproduce the original problem:
python test7.py
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
You are probably right. The conda cvxopt depends on mkl and there is probably a conflict. I will try to make a simpler reproducer.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I am struggling with the same issues with python calling C code that calls MKL.Was this resolved?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
My understanding is that Python sets a default for the loading of dynamic modules that results in this error.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite