Download and unpack the library source.
wget -O scalapack-2.0.2.tgz http://www.netlib.org/scalapack/scalapack-2.0.2.tgz tar -zxvf scalapack-2.0.2.tgz cd scalapack-2.0.2
Make a copy of
SLmake.inc.example, and rename it as
Note: ScaLAPACK requires a
SLmake.incfile which is tuned for the target machine, and is based on the example
SLmake.inc.examplethat is included in the distribution.
SLmake.incfile for the Arm HPC compiler and Arm Performance Libraries as follows:
Set trailing underscores for calling Fortran subroutines from C:
CDEFS = -DAdd_
Set the C and Fortran flags:
FCFLAGS = ‑O3‑mcpu=native
CCFLAGS = ‑O3‑mcpu=native ‑fsimdmath
Link to the ArmPL libraries for
LAPACKcalls by removing the definitions of
LAPACKLIB, and setting
LIBS = $(ARMPL_DIR)/lib/libarmpl_lp64_mp.so
ARMPL_DIRis the location of the ArmPL installation. For example:
Build the ScaLAPACK library:
libscalapack.astatic library, created by the
make libcommand, to your preferred installation directory.