Uppsala Multidisciplinary Center for Advanced Computational Science

How can I use ScaLAPACK/BLACS?

Scalapack/BLACS can be linked to your program. Which version to use depends on the compiler you intend to use.

For the PGI compiler you need to load the following modules:

module load pgi openmpi scalapack/1.8.0-openmpi-1.4.2-pgi-acml

Then compile and link your program like this (with appropriate optimization options added, of course!):

mpif90 -o prog.x prog.f90 $(SCALAPACKLIBS) -lacml

For the Intel compiler you need the following modules:

module load intel openmpi scalapack/1.8.0-openmpi-1.4.2-intel-mkl

Compile and link your program like this (with appropriate optimization options added, of course!):

mpif90 -o prog.x prog.f90 $(SCALAPACKLIBS) -lmkl_intel_lp64 -lmkl_sequential -lmkl_core