[Numpy-discussion] f2py build with mkl lapack

Bradley M. Froehle brad.froehle at gmail.com
Mon Jul 8 14:37:22 EDT 2013


On Mon, Jul 8, 2013 at 10:15 AM, David Cournapeau <cournape at gmail.com> wrote:
>
>
> On Mon, Jul 8, 2013 at 5:05 PM, sunghyun Kim <kimsunghyun at kaist.ac.kr>
> wrote:
>>
>> Hi
>>
>> I'm trying to use fortran wrapper f2py with intel's mkl
>>
>> following is my command
>>
>> LIB='-L/opt/intel/Compiler/11.1/064/mkl/lib/em64t/ -lguide -lpthread
>> -lmkl_core -lmkl_intel_lp64 -lmkl_sequential'
>
>
> Linking order matters: if A needs B, A should appear before B, so
> -lpthread/-lguide should be at the end, mkl_intel_lp64 before mkl_core, and
> mkl_sequential in front of that.
>
> See the MKL manual for more details,

You may also want to consult the MKL Link Line Advsior [1], which in
your case recommends an ordering like:

    -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm

[1]: http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor

-Brad



More information about the NumPy-Discussion mailing list