Beispiel MPI

#!/bin/bash
#SBATCH -J <Job_Name>
#SBATCH --mail-type=END
# Please use the full path :
#SBATCH -e /home/<username>/<project_name>/job_name.err.%j
#SBATCH -o /home/<username>/<project_name>/job_name.out.%j
#
#SBATCH -n 128      # Number of cores
#SBATCH --mem-per-cpu=1600  # Main memory in MByte per MPI task
#SBATCH -t 01:30:00     # Hours, minutes and seconds, or '#SBATCH -t 10' = only minutes

# -------------------------------
# Afterwards you write your "payload" commands for the calculation, e.g. 
module purge
module load gcc openmpi
cd /home/<username>/<project_name>
srun  <MPI program>  <parameters>
...