What is BLAS / LAPACK?
BLAS (Basic Linera Algebra Subprograms) are routines for performing common linear algebra operations such as vector addition, scalar multiplication, dot products and matrix operations.
LAPACK (Linear Algebra PACKage) extends BLAS to provide higher level numerical solvers for linear equations and linear least squares, eigenvalues problems and singular value decomposition. Routines for matrix factorizations such as LU, Cholesky, QR and SVD are also provided.
Using BLAS / LAPACK at HPC system
To compile C/C++ or Fortran program with BLAS & LAPACK library, add the flag ‘-lblas’ and ‘-llapack’ :
|PGI Compiler||Serial C|
|Intel Compiler||Serial C|
|GNU Compiler||Serial C|
Using BLAS and LAPACK library that comes from Intel Math Kernel Library(MKL) can refer to ITS user guide Intel MKL.