I followed the advice given by the Intel MKL link adviser (http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/) 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 /opt/Personalization/lib/python2.5/site-packages/numpy 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: mkl_dft_commit_descriptor_s_c2c_md_omp *** 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? Thanks, Ashwin 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) with MKL. This is my site.cfg: [mkl] # library_dirs = /opt/intel/mkl/10.0.1.014/lib/32/ library_dirs = /opt/intel/mkl/10.2.2.025/lib/em64t include_dirs = /opt/intel/mkl/10.2.2.025/include 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). cheers, David