BLAS
Linear Algebra Library
As described in their website, the BLAS (Basic Linear Algebra Subprograms) are "routines that provide standard building blocks for performing basic vector and matrix operations. The Level 1 BLAS perform scalar, vector and vector-vector operations, the Level 2 BLAS perform matrix-vector operations, and the Level 3 BLAS perform matrix-matrix operations. Because the BLAS are efficient, portable, and widely available, they are commonly used in the development of high quality linear algebra software, LAPACK for example."
Using BLAS on HPC cluster#
BLAS library can be linked to fortran code. Using an example from BLAS docmuntation we can compile and link a BLAS library located in:
To run a Simple example (found here), download the BLAS test file from the documentation and compile with the following command (We have found that the compilation sometimes produces warnings but it will not affect the final output):
The syntax above compiles and links the entire BLAS library, which will give the following output upon execution: