NERSCPowering Scientific Discovery Since 1974

Using MKL

Overview

Intel's Math Kernel Library (MKL) is a library of highly optimized, extensively threaded math routines optimized for Intel processors.  Core math functions include BLAS, LAPACK, ScaLAPACK, Sparse Solvers, Fast Fourier Transforms, Vector Math, and more.  It is compatible with PGI, Intel, and GCC compilers.

Usage

carver% module load mkl

Basic usage:

carver% mpif90 example.f90 $MKL

To use ScaLAPACK:

carver% mpif90 my_code.f $MKL -L$MKL_LIBDIR -lmkl_scalapack_lp64 -lmkl_blacs_openmpi_lp64