Install and use Intel MKL Scalapack library

Intel MKL has Scalapack, which is installed when you select “Cluster Support” for C and/or Fortran from the Intel Compiler / Intel MKL installer. MKL Scalapack library & include files are under the MKLROOT environment variable for Linux and Windows, like $MKLROOT/{include,lib/intel64}

mkl_scalapack.h
libmkl_scalapack_lp64.*
mkl_blacs_lp64.*
mkl_blacs_intelmpi_lp64.*

Several more link flags (including for MPI) are needed to make Intel MKL Scalapack work. The exact link flags and compile flags for a particular system are obtained from Intel Link Line Advisor.

Examples

MKL

The Intel MKL Scalapack examples are compiled by:

cd $MKLROOT/examples/

tar xf examples_cluster_f.tgz

cd scalapackf

make sointel64 mpi=openmpi compiler=gnu mpidir=/usr/

The resulting “exe” files are under scalapackf/_results/.

For Windows, corresponding .zip examples are available including in %MKLROOT%/examples/examples_cluster_c.zip

Netlib

Netlib Scalapack examples are at https://www.netlib.org/scalapack/examples/

non-MKL

non-MKL Netlib Scalapack is available using Meson from https://github.com/scivision/scalapack