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
tar -zxvf scalapack-2.0.2.tgz
cd scalapack-2.0.2

Edit the scalapack 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

mv scalapack-2.0.2 /usr/local/

Update and export your LD_LIBRARY_PATH