Using MPI

$ /usr/lib64/openmpi/bin/

$ /usr/lib64/openmpi/bin/mpiexec -n 1 printenv

Setup PATH and LD_LIBRARY_PATH in your shell startup scrip to include locations for the Open MPI executables and libraries.

export PATH= $PATH:/usr/lib64/openmpi/bin/
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/

When you use PBS Pro the entire local environment is copied to all the remote nodes.

Use either the absolute path to mpirun or --prefix=/usr/lib64/openmpi/ e.g.

mpirun --prefix=/usr/lib64/openmpi/ -np 4 hello

/usr/lib64/openmpi/bin/mpif90 -showme