LAPACK is a library of Fortran subroutines for solving the most commonly occurring problems in numerical linear algebra.
It is important to note that the BLAS functions included in LAPACK (libblas.so and liblapack.so) are distinct to those within OpenBLAS. Do not try to swap out OpenBLAS with LAPACK, or vice versa.
libblas.so
liblapack.so
Some applications or libraries may need a specific version of LAPACK. The guide below shows how to configure and compile a specific version of LAPACK into your own directory:
#!/bin/bash LAPACK_DIR=$HOME/lapack echo "Download Lapack ..." echo "===================" wget -q https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.12.0.tar.gz -O 3.2.0.tgz echo "" echo "Untar ..." echo "=========" tar -zxf 3.2.0.tgz echo "" echo "Load modules ..." echo "================" module purge module load GCC/13.3.0 echo "" echo "Configure ..." echo "=============" cd lapack-3.12.0 rm -rf build mkdir build cd build CFLAGS="-O2 -pipe -march=znver5" cmake .. -DCMAKE_INSTALL_PREFIX=$LAPACK_DIR echo "" echo "Compile ..." echo "===========" make -j2 echo "" echo "Install ..." make install
To compile code using this specific version of LAPACK you will need to point to the files at $HOME/lapack/lib64. Most users will not need to install LAPACK from source, but this quick guide is for those that do.
$HOME/lapack/lib64
Back to Software list
Table of Contents
Main Content Sections
Documentation Tools