[SciPy-User] mkl_lapack32 ?
Steve Schmerler
elcortogm at googlemail.com
Tue Jul 24 12:27:01 EDT 2012
On Jul 17 14:16 +0200, Nicolas Greneche wrote:
> [mkl]
> library_dirs = /opt/intel/composerxe-2011.0.084/mkl/lib/intel64
> include_dirs = /opt/intel/composerxe-2011.0.084/mkl/include
> mkl_libs = mkl_intel_lp64,mkl_intel_thread,mkl_core
>
> cc_exe = 'icc -O2 -g -openmp -avx'
[...]
> error: Command "icc -m64 -fPIC -shared
> build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/build/src.linux-x86_64-2.6/scipy/lib/lapack/flapackmodule.o
> build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/fortranobject.o
> -L/opt/intel/composerxe-2011.0.084/mkl/lib/intel64 -L/usr/lib64
> -Lbuild/temp.linux-x86_64-2.6 -lmkl_lapack32 -lmkl_lapack64
> -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lpthread -lpython2.6 -o
> build/lib.linux-x86_64-2.6/scipy/lib/lapack/flapack.so" failed with exit
> status 1
[...]
Linking MKL is always fun. See [1]. Note that I used lapack_libs and
mkl_libs in site.cfg, in contrast to what is mentioned in [2,3].
I did a serial build, but you just need to replace mkl_sequential
-> mkl_intel_thread.
Your icc doesn't seem to use "-O2 -g -openmp -avx", but the
distutils default "-m64 -fPIC -shared".
[1] http://thread.gmane.org/gmane.comp.python.scientific.user/32036/focus=32037
[2] http://software.intel.com/en-us/articles/numpy-scipy-with-mkl/
[3] http://www.scipy.org/Installing_SciPy/Linux#head-0b5ce001569a20ddbbdb2187578000372a09acb1
best,
Steve
More information about the SciPy-User
mailing list