Pittsburgh Supercomputing Center 

Advancing the state-of-the-art in high-performance computing,
communications and data analytics.

MKL

 

The Intel Math Kernel Library (MKL) contains highly optimized and extensively threaded routines for engineering and scientific applications.

It includes linear algebra routines (BLAS, LAPACK, ScaLAPACK, and sparse solvers), FFTs, a vector math library, vector random number generators, and LINPACK benchmark routines.

Choosing which libraries to link to

For help in determining which libraries to link, to see the MKL Library Link Advisor provided by Intel.

Threaded MKL routines

Note that threaded MKL routines are based on OpenMP. Treat these routines as OpenMP parallel regions. Be sure that your thread count does not exceed the number of cores allocated to your job.

Usage

 

  • Bridges

  • Greenfield

 

The MKL libraries are available by default.

Include a compilation command in your job script which calls the MKL libraries you need. If you need help to determine which libraries to link to, see the MKL Library Link Advisor.

To use the Intel compilers with MKL, the compilation command should be similiar to:

ifort source.f -o executable -mkl=[parallel | sequential]

To use the GNU compilers with MKL, you must explicitly list each library.

g++ source.cc -o executable -L${MKLROOT} -llibrary1 -llibrary2        
 

 

The MKL libraries are available by default.

Include a compilation command in your job script which calls the MKL libraries you need. If you need help to determine which libraries to link to, see the MKL Library Link Advisor.

To use the Intel compilers with MKL, the compilation command should be similiar to:

ifort source.f -o executable -mkl=[parallel | sequential]

To use the GNU compilers with MKL, you must explicitly list each library.

g++ source.cc -o executable -L${MKL_PATH} -llibrary1 -llibrary2