[Numpy-discussion] MKL libraries can't be found

Jonathan Tu jhtu at princeton.edu
Wed Jan 19 17:24:41 EST 2011


Hi,

I am trying to install numpy with the MKL libraries available on my cluster.  Most of the libraries are available in one directory, but the iomp5 library is in another.    

/opt/intel/Compiler/11.1/072/mkl/lib/em64t ---> mkl_intel_lp64, mkl_intel_thread, mkl_core, mkl_def, mkl_mc
/opt/intel/Compiler/11.1/072/lib/intel64 ---> iomp5

Using an older MKL library that was available, I found that when all libraries are in one directory, the install went through fine.  But in this case it says the libraries cannot be found, even if I list both under the library_dirs in site.cfg

[mkl]
library_dirs = /opt/intel/Compiler/11.1/072/mkl/lib/em64t:/opt/intel/Compiler/11.1/072/lib/intel64
include_dirs = /opt/intel/Compiler/11.1/072/mkl/include
lapack_libs = mkl_lapack
mkl_libs = mkl_intel_lp64, mkl_intel_thread, mkl_core, mkl_def, mkl_mc, iomp5

If I try to install without iomp5, then when I import numpy I get the following error

/opt/intel/Compiler/11.1/072/mkl/lib/em64t/libmkl_intel_thread.so: undefined symbol: omp_in_parallel

Any ideas?  I tried to put symbolic links to both library directories in one place, but that didn't work either.  I'm trying to avoid creating a directory of symbolic links to every necessary library.




Jonathan Tu


More information about the NumPy-Discussion mailing list