Using BLACS

The Basic Linear Algebra Communication Subprograms (BLACS) is used primarily with ScaLAPACK on the cluster and is the communication layer between ScaLAPACK and BLAS.

The BLACS library was built with both a C and FORTRAN 77 interface.

To compile and link with BLACS, you'll need to load the openmpi and blas modules into your environment:

module load gcc openmpi blacs
-or-
module load gcc mvapich2 blacs

To link with the library and the C interface add the following to your linker command line:
-L$BRAZOS_BLACS_LIB -lblacs -lblacsCinit

To link with the library and the F77 interface add the following to your linker command line:
  -L$BRAZOS_BLACS_LIB -lblacs -lblacsF77init

You also need to link with a BLAS library.

In your batch script include the following:
module load gcc openmpi blacs
-or-
module load gcc mvapich2 blacs

To see the currently available BLACS libraries type:

module spider blacs

Documentation for BLACS is available from Netlib's BLACS site