Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ab1
Beginner
289 Views

MKL library

Sir I have to install a code. it requiyes linking of lapack n blas file. the code was written in 2009 using mkl 8 version. according to it for linking paths are LROOT = /opt/intel/mkl/lib/intel64/ LAPACK = -lmkl_lapack -lmkl BLAS = -L$(LROOT) -lmkl_intel64 -lguide -lpthread LFLAGS = $(LIBSCE) $(BLAS) $(LAPACK) now i am having 2016 version of mkl. it does not have guide, mkl, pthread etc. i know -lmkl_lapack is replaced by lmkl_lapack95_ilp64 how to modify the commands as per 2016 version to link n compile thanks ab
0 Kudos
2 Replies
mecej4
Black Belt
289 Views

Please use the MKL Link Line Advisor tool at https://software.intel.com/sites/products/mkl/mkl_link_line_advisor.htm to determine the command line to use for linking your program with MKL. Note that the flags that you thought that you should use may not be appropriate. In particular, unless you are passing 8-byte integer arguments to MKL routines, you should be using LP64 libraries rather than ILP64 libraries. 

Ying_H_Intel
Employee
289 Views

Hi Ab,

Yes, MKL reconstruct  the library structure.  The old library like mkl_lapack, guide etc is not existing.

 Please refer to   https://software.intel.com/sites/products/mkl/mkl_link_line_advisor.htm

In general, both BLAS and LAPACK use the same libraries,

LAPACK = -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl
BLAS = -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl

lmkl_lapack95_ilp64 is for Fortran 95 interface.

Best Regards,

Ying

Reply