Computational Cluster Programs

How to Use the ScaLAPACK Library on ATS-Hosted Clusters

Installed location:

  • ScaLAPACK is installed in: /u/local/apps/scalapack/current/ib.

How to run ScaLAPack from a Fortran 90 program

To compile and link enter:

mpif90 pgm.f90 -L$SCALAPACK_HOME -lscalapack -lblacsF77init -lblacs -lblacsF77init \
-L$BLAS_HOME -lblas -L$LAPACK_HOME -llapack -o pgm

Replace pgm.f90 with the name of the file containing your source code and pgm with the name of the executable to be created.

Set SCALAPACK_HOME to: /u/local/apps/scalapack/current/ib, BLAS_HOME to: /u/local/apps/blas/current and LAPACK_HOME to: /u/local/apps/lapack/current. You can either set these as environment variables or replace the strings in the command shown above.

How to run ScaLAPack from a Fortran 77 program

To compile and link enter:

mpif77 pgm.f -L$SCALAPACK_HOME -lscalapack -lblacsF77init -lblacs -lblacsF77init \
-L$BLAS_HOME -lblas -L$LAPACK_HOME -llapack -o pgm

Replace pgm.f with the name of the file containing your source code and pgm with the name of the executable to be created.

Set SCALAPACK_HOME to: /u/local/apps/scalapack/current, BLAS_HOME to: /u/local/apps/blas/current and LAPACK_HOME to: /u/local/apps/lapack/current. You can either set these as environment variables or replace the strings in the command shown above.