Compiling and submiting programs containing ScaLAPACK routines


• Compilation of Fortran 77 program being submited to mpich parallel envorinment:

g77 -O2 -o <outputfile> <fortran 77 input file> /usr/local/lib/libscalapack.a /usr/local/lib/blacsF77init_MPI-LINUX-0.a /usr/local/lib/blacs_MPI-LINUX-0.a /usr/local/lib/blacsF77init_MPI-LINUX-0.a /usr/local/lib/blas_LINUX.a /usr/local/mpich/lib/libmpich.a


• Sample script to submit job to the mpich parallel envorinment:

#!/bin/bash
#$ -S /bin/sh
#$ -N JOB_NAME
#$ -q default
#$ -pe mpich NUMBER_OF_PROCESSES
#$ -cwd
/usr/local/mpich/bin/mpirun -machinefile $TMPDIR/machines -np $NSLOTS < name_of_executable >