mpi example

Slurm MPI examples

Slurm MPI examples

This example shows a job with 48 task and 24 tasks per node. This is on Abisko.

#!/bin/bash
# Example with 48 MPI tasks and 24 tasks per node.
#
# Project/Account (use your own)
#SBATCH -A hpc2n-1234-56
#
# Number of MPI tasks
#SBATCH -n 48
#
# Number of tasks per node
#SBATCH --tasks-per-node=24
#
# Runtime of this jobs is less then 12 hours.
#SBATCH --time=12:00:00

module load openmpi/gcc

srun ./mpi_program

# End of submit file

This will create a job with two nodes with 24 tasks per node.

Updated: 2017-12-15, 10:08