Page tree

Overview

 The Blas (Basic Linear Algebra Subroutines) and Lapack (Linear Algebra PACKage) are fundamental to many software packages.

We recommend using Intel MKL library that contain highly optimised Blas and Lapack libraries.

How to use 


For more details on using modules see our software applications guide.

Intel compiler

# Load modules, always specify version number.
$ module load intel-compiler/2021.2.0
$ module load intel-mkl/2021.2.0
 
$ ifort x.f90 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -liomp5 -lm

GNU compiler

# Load module, always specify version number.
$ module load intel-mkl/2021.2.0
 
$ gfortran x.f90 -lmkl_gf_lp64 -lmkl_core -lmkl_gnu_thread -lgomp -lm

Blas and Lapack are written in Fortran so an appropriate care needs to be taken when calling from C/C++.

Cblas (Blas library with native C interface) is also available in Intel MKL. The link line is the same as above. 

Authors: Andrey Bliznyuk, Mohsin Ali
  • No labels