Springe direkt zu Inhalt

MPI-parallel Program

An MPI parallel program can run on cores which are distributed across various compute nodes.

#!/bin/bash

#SBATCH --job-name=my_mpi_job                   # replace name
#SBATCH --mail-user=nobody@zedat.fu-berlin.de   # replace email address
#SBATCH --mail-type=end
#SBATCH --ntasks=16                             # replace with value for your job
#SBATCH --mem-per-cpu=4096                      # replace with value for your job
#SBATCH --time=08:00:00                         # replace with value for your job
#SBATCH --qos=standard                          # replace with value for your job

module add ExampleProg/1.2.3-foss-2018b         # replace with value for your job

cd /scratch/${USER}                             # replace with your directory
srun -n ${SLURM_NTASKS} exampleprog_mpi         # replace with your program

A program can only support MPI parallelism if the code was written and compiled accordingly. If you are unsure whether this is the case for the program you wish to use, please contact us.