Table of Contents

Software – MPI

MPI is available on most systems (not on Desktops/Laptops) via environment modules.

View available MPI implementations

module avail mpi

Load MPI

module load mpi/blah

for example

module load mpi/openmpi3-x86_64

Check MPI is Loaded

module list | grep mpi

or

which mpicc

Both examples will provide a usable error code if you wish to test for MPI presence in a script (none 0 exit for failure).

Quick MPI Test

mpirun -n 5 hostname

The result should output the system hostname 5 times.