Skip to content

MKL

The Intel Math Kernel Library (Intel MKL) contains highly optimized, extensively threaded math routines for science, engineering, and financial applications. Core math functions include BLAS, LAPACK, ScaLAPACK, Sparse Solvers, Fast Fourier Transforms, Vector Math, and more.

Usage

Intel compilers

When using the Intel compilers, MKL can be conveniently used by adding the -mkl flag to the compiler line.

nersc$ ftn -mkl test.f90
nersc$ cc -mkl test.c

If you need the sequential MKL routines only then use

nersc$ ftn -mkl="sequential" test.f90
nersc$ cc -mkl="sequential" test.c

If ScaLapack routines are needed then

nersc$ ftn -mkl="cluster" test.f90
nersc$ cc -mkl="cluster" test.c

other compilers

Use the Intel MKL Link Line Advisor to determine the appropriate link lines.