/
blas
blas
Introduction
Usage
module load library/blas/3.8.0
Installation
module purge cd /sw/library/blas/3.8.0/src get http://www.netlib.org/blas/blas.tgz tar -zxvf blas.tgz cd BLAS cd /sw/library/blas/3.8.0/src/BLAS-3.8.0 # compile all of the .f files to produce .o files gfortran -O3 -std=legacy -m64 -fno-second-underscore -fPIC -c *.f ##ifort -FI -w90 -w95 -cm -O3 -unroll -c *.f # combine the .o files into a library ar r libfblas.a *.o #ranlib generates an index to the contents of an archive and stores it in the archive ranlib libfblas.a # rm -rf *.o mkdir /sw/library/blas/3.8.0/lib64 cp libfblas.a /sw/library/blas/3.8.0/lib64 # export BLAS=/sw/library/blas/3.8.0/lib64/libfblas.a cd /sw/library/blas/3.8.0/lib64 ln -s libfblas.a libblas.a module display library/blas/3.8.0 ------------------------------------------------------------------- /sw/com/modulefiles/library/blas/3.8.0: setenv BLAS /sw/library/blas/3.8.0/lib64/libfblas.a prepend-path LIBRARY_PATH /sw/library/blas/3.8.0/lib64 prepend-path LD_LIBRARY_PATH /sw/library/blas/3.8.0/lib64 prepend-path LDFLAGS -L/sw/library/blas/3.8.0/lib64 -------------------------------------------------------------------
Reference
https://linuxcluster.wordpress.com/2012/04/08/building-blas-library-using-intel-and-gnu-compiler/
2. http://ab-initio.mit.edu/wiki/index.php/Template:Installing_BLAS_and_LAPACK
, multiple selections available,