Running MPI Jobs

The Message Passing Interface (MPI) is a library specification for message-passing. It is a standard API (Application Programming Interface) that can be used to create parallel applications. A MPI job can considered as a cross-node and multi-process job.

Sample Slurm MPI job skeleton:

#SBATCH --job-name=MyJob
#SBATCH --account=monash001
... ...
#SBATCH --ntasks=32
#SBATCH --ntasks-per-node=16
#SBATCH --cpus-per-tasks=1
... ...
module load openmpi-gcc
mpiexec <program>

This script tells Slurm this is a multi-processing job. It has 32 MPI processes. Launch 16 MPI processess on each node (implicitly request 2 nodes). For each MPI process, it needs 1 cpu core to handle.

On MASSIVE, the sample slurm submission scripts have been prepared and can be found here:



Copyright © 2016 MASSIVE. All Rights Reserved.