How to use MPICH version 1 with PGI

Mvapich version 0.9.9 (based upon mpich version 1) is available for the pgi compilers and uses the OpenFabrics stack to access the infiniband network. To setup an environment for mpich version 1, execute one of following based on your shell:

for c-shell users
source /usr/local/profile.d/mpichv1-pgi.csh
for bourne shell users
source /usr/local/profile.d/mpichv1-pgi.sh 

Don't forget to also source the pgi script.

Once setup, users should find in their path mpicc, mpiCC, mpif90 and mpif77. MOAB job submissions should include the line above so that the environment is setup for mpich on the compute nodes. Users should also source the scripts for the pgi compilers. See the moab documentation for example job scripts.