Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

LAPACK's Auxiliary Routines

khosrow06
Beginner
283 Views
Hi all,

I have been trying to find a way to link to LAPACK's auxiliary routines that are included in MKL, but neither my google search nor a search in the MKL documentation has shown me the way. I would appreciate it if anyone who has successfully linked to the included auxiliary routines tell me what are the linking flags and the respective USE commands (in fortran) than I should use to link to such library.

Regards,
Khosrow
0 Kudos
2 Replies
Chao_Y_Intel
Moderator
282 Views

LAPACK's auxiliary routines are included in libmkl_lapack32.a (static) or libmkl_lapack32.so/libmkl_lapack64.so(dynamic). An example to linkis:

ifort myprog.f -l $MKLPATH -lmkl_lapack -lmkl_ia32 -libguide.lib -pthread

0 Kudos
Dishaw__Jim
Beginner
282 Views
Did you create the Fortran 95 interfaces in interfaces/lapack95?

On Windows open a command line window (e.g. the Intel Visual Fortran Build Environment command window) and navigate to the interfaceslapack95 subdirectory in the MKL hierarchy. Type nmake PLAT=win32 lib. You may need to build the BLAS95 interface first.

The next step is to include the interface directory in the include search path for the compiler and the linker. You can then say "USE mkl_lapack" in your Fortran code. Make sure you include the libraries in your linker (e.g. mkl_lapack95.lib mkl_c.lib libguide.lib)
0 Kudos
Reply