Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
module load library/lapack/3.8.0
OR
module load library/lapackBlas/3.6.0

 

 

Installation

...

No Format
Static version
==============
module purge
module load library/cblas/cblas
cd /sw/library/lapack/3.8.0/src
wget http://www.netlib.org/lapack/lapack-3.8.0.tar.gz
tar -zxvf /tmp/lapack-3.8.0.tar.gz
cd /sw/library/lapack/3.8.0/src/lapack-3.8.0
cp make.inc.example make.inc

diff make.inc make.inc.example
81,82c81,82
< BLASLIB      = /sw/library/blas/3.8.0/lib64/libfblas.a
< CBLASLIB     = /sw/library/cblas/20180614/lib/cblas_LINUX.a
---
> BLASLIB      = ../../librefblas.a
> CBLASLIB     = ../../libcblas.a

make all 2>&1 | tee makeLog.txt

snip

            -->   LAPACK TESTING SUMMARY  <--
        Processing LAPACK Testing output found in the TESTING directory
SUMMARY                 nb test run     numerical error       other error
================       ===========    =================    ================
REAL                 1292645        0    (0.000%)    0    (0.000%)
DOUBLE PRECISION    1293457        0    (0.000%)    0    (0.000%)
COMPLEX              745040        1    (0.000%)    0    (0.000%)
COMPLEX16             752536        1    (0.000%)    1    (0.000%)

--> ALL PRECISIONS    4083678        2    (0.000%)    1    (0.000%)
snip 

ranlib liblapack.a
ranlib libtmglib.a
mkdir /sw/library/lapack/3.8.0/lib
cp liblapack.a libtmglib.a /sw/library/lapack/3.8.0/lib
 cp -rp TESTING /sw/library/lapack/3.8.0/
module display library/lapack/3.8.0
-------------------------------------------------------------------
/sw/com/modulefiles/library/lapack/3.8.0:

prepend-path     LIBRARY_PATH /sw/library/lapack/3.8.0/lib
prepend-path     LD_LIBRARY_PATH /sw/library/lapack/3.8.0/lib
prepend-path     LDFLAGS -L/sw/library/lapack/3.8.0/lib
-------------------------------------------------------------------

 

References