OpenMPI Guide

From Storrs HPC Wiki
Jump to: navigation, search

Using OpenMPI with Slurm

For more details, please read the official webpage of Slurm at MPI and UPC Users Guide To run the OpenMPI jobs with srun:

srun -N1 -n2 --mpi=openmpi ./your_mpi_script # allocate 2 cpus(-n) in 1 node (-N) and specify the mpi interface as pmi2 (--mpi)

To run the OpenMPI jobs with sbatch, you need the following script:

#!/bin/bash
#SBATCH -N 1
#SBATCH -n 2

srun --mpi=openmpi ./your_mpi_script