[Numpy-discussion] MKL with 64bit crashes

Kashyap Ashwin Ashwin.Kashyap@thomson....
Thu Oct 15 10:00:40 CDT 2009

I followed the advice given by the Intel MKL link adviser

This is my new site.cfg:
mkl_libs = mkl_intel_ilp64, mkl_gnu_thread, mkl_core

I also exported CFLAGS="-fopenmp" and built with the --fcompiler=gnu95.
Now I get these errors on import:
Running unit tests for numpy
NumPy version 1.3.0
NumPy is installed in
Python version 2.5.2 (r252:60911, Jul 22 2009, 15:33:10) [GCC 4.2.4
(Ubuntu 4.2.4-1ubuntu3)]
nose version 0.11.0

*** libmkl_mc.so *** failed with error : libmkl_mc.so: undefined symbol:
*** libmkl_def.so *** failed with error : libmkl_def.so: undefined
symbol: mkl_dft_commit_descriptor_s_c2c_md_omp
MKL FATAL ERROR: Cannot load neither libmkl_mc.so nor libmkl_def.so

Any hints?


Your message:

On Thu, Oct 15, 2009 at 8:04 AM, Kashyap Ashwin
<Ashwin.Kashyap@thomson.net> wrote:
> Hello,
> I compiled numpy-1.3.0 from sources on Ubuntu-hardy, x86-64 (Intel)
> MKL.
> This is my site.cfg:
> [mkl]
> # library_dirs = /opt/intel/mkl/
> library_dirs = /opt/intel/mkl/
> include_dirs = /opt/intel/mkl/
> lapack_libs = mkl_lapack
> #mkl_libs = mkl_core, guide, mkl_gf_ilp64, mkl_def, mkl_gnu_thread,
> iomp5, mkl_vml_mc3
> mkl_libs = guide, mkl_core, mkl_gnu_thread, iomp5, mkl_gf_ilp64,
> mkl_mc3, mkl_def

The order does not look right - I don't know the exact order (each
version of the MKL changes the libraries), but you should respect the
order as given in the MKL manual.

> MKL ERROR: Parameter 4 was incorrect on entry to DGESV

This suggests an error when passing argument to MKL - I believe your
version of MKL uses the gfortran ABI by default, and hardy uses g77 as
the default fortran compiler. You should either recompile everything
with gfortran, or regenerate the MKL interface libraries with g77 (as
indicated in the manual).



More information about the NumPy-Discussion mailing list