wget http://www.netlib.org/lapack/lapack-3.9.0.tgzhttps://thelinuxcluster.com/2012/04/09/building-lapack-3-4-with-intel-and-gnu-compiler/
II. BLAS & LAPACK
https://ahmadzareei.github.io/azareei/linux/2016/04/08/configuring-blas-lapack.html1. Dowloand LAPACK
tar -zxvf lapack-3.9.0.tgz
cd lapack-3.9.0
## Use gfortran 64-bits compiler## copy and create make.inc
module load compiler/gcc-10.2
cp INSTALL/make.inc.gfortran make.inc
Edit the make.inc
make -j 12
## copy lib to new placemkdir -p /uhome/p001cao/local/app/lapack-3.9 cp liblapack.a /uhome/p001cao/local/app/lapack-3.9/liblapack.a
export LAPACK=/uhome/p001cao/local/app/lapack-3.9/liblapack.a
2. Install BLAS
- should use BLAS source include in LAPACK source
cd lapack-3.9.0/BLAS
## Use gfortran 64-bits compiler
module load compiler/gcc-10.2gfortran -O3 -std=legacy -m64 -fno-second-underscore -fPIC -c *.f ar r libfblas.a *.o # creates libblas.a ranlib libfblas.a## copy lib to new place## Use:mkdir -p /uhome/p001cao/local/app/blas cp libfblas.a /uhome/p001cao/local/app/blas/libfblas.a
export BLAS=/uhome/p001cao/local/app/blas/libfblas.a
No comments:
Post a Comment