Beispiel Hybrid

#!/bin/bash
#SBATCH -J <job_name>
#SBATCH --mail-type=ALL
# Please use the complete path details:
#SBATCH -e /home/<username>/<project_name>/job_name.err.%j
#SBATCH -o /home/<username>/<project_name>/job_name.out.%j
#
#SBATCH -n 8      # Number of MPI processes
#SBATCH -c 16      # Number of CPU cores (OpenMP-Threads) per MPI process
#SBATCH --mem-per-cpu=1750   # Main memory per CPU core in MByte
#SBATCH -t 01:30:00     # Hours, minutes and seconds, or '#SBATCH -t 10' - only minutes

# -------------------------------
# Afterwards you write your own commands, e.g.
module load gcc openmpi/gcc
cd /home/<username>/<project_name>
# Specification from OMP_NUM_THREADS can be omitted
srun  <program>  <parameter>
...