Slurm MPI examples
Slurm MPI examples
This example shows a job with 28 task and 14 tasks per node. This matches the normal nodes on Kebnekaise.
#!/bin/bash # Example with 28 MPI tasks and 14 tasks per node. # # Project/Account (use your own) #SBATCH -A hpc2n-1234-56 # # Number of MPI tasks #SBATCH -n 28 # # Number of tasks per node #SBATCH --tasks-per-node=14 # # Runtime of this jobs is less then 12 hours. #SBATCH --time=12:00:00 # Clear the environment from any previously loaded modules module purge > /dev/null 2>&1 # Load the module environment suitable for the job