How to Setup OpenMPI for PGI Compilers

OpenMPI version 1.2.2 is available for the pgi compilers and uses the OpenFabrics stack to access the infiniband network. To setup the intel compilers for openmpi, execute one of following based on your shell:

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

Don't forget to also source the pgi script.

Once setup, users should find in their path mpicc, mpic++, mpif90 and mpif77.  Users should first setup the pgi compilers before compiling or running OpenMPI pgi jobs.   For an exmple of how to use MOAB to submit  an OpenMPI job, see the MOAB example documentation.