Compiling ScaLAPACK-2.0.2 on CentOS 7

Prerequisites for SCALAPACK:

  1. Building BLAS Library using Intel and GNU Compiler
  2. Building LAPACK 3.4 with Intel and GNU Compiler
  3. OpenMPI-3.1.4
  4. GNU-6.5

To compile the SCALAPACK

mkdir -p ~/src
wget http://www.netlib.org/scalapack/scalapack-2.0.2.tgz
tar -zxvf scalapack-2.0.2.tgz
cd scalapack-2.0.2
cp SLmake.inc.example SLmake.inc

Edit the scalapack SLmake.inc file. At line 58 and line 59

BLASLIB       = -lblas -L/usr/local/blas
LAPACKLIB     = -llapack -L/usr/local/lapack/lib

At the Linux Console again

make
mv scalapack-2.0.2 /usr/local/

Update and export your LD_LIBRARY_PATH