Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 843 Bytes

install_blas_cblas_lapack.md

File metadata and controls

28 lines (25 loc) · 843 Bytes

BLAS

static

  • gfortran -c -O3 *.f; ar rv libblas.a *.o; sudo cp libblas.a /opt/somewhere

dynamic

  • gfortran -shared -fPIC -O3 *.f -o libblas.so

CBLAS

Edit Makefile.in # blas library is required

  • make

lapack

  • cp make.inc.example make.inc; vi make.inc

Edit BLAS and CBLAS location

  • make

or use cmake

  • mkdir build ; cd build ; ccmake .. # enable shared library
  • make -j 32; make install

scalapack

  • Requires blas/lapack. use netlib as shown above
  • mkdir build; cd build; ccmake ..
  • Enable shared library (static will not be made)
  • Or enable static library then *.so is not made
  • make -j 20