#!/bin/bash -l #SBATCH --job-name=test_mpi #SBATCH --partition=lena #SBATCH --nodes=12 #SBATCH --ntasks-per-node=16 #SBATCH --mem-per-cpu=2G #SBATCH --time=00:02:00 #SBATCH --constraint=[CPU_ARCH:avx512|CPU_ARCH:avx2] #SBATCH --mail-user=user@uni-hannover.de #SBATCH --mail-type=BEGIN,END,FAIL #SBATCH --output test_mpi-job_%j.out #SBATCH --error test_mpi-job_%j.err # Change to my work dir cd $SLURM_SUBMIT_DIR # Load modules module load foss/2018b # Start my MPI application srun --cpu_bind=cores --distribution=block:cyclic -N 4 --ntasks-per-node=16 --exclusive ./my_mpi_app_1 & srun --cpu_bind=cores --distribution=block:cyclic -N 4 --ntasks-per-node=16 --exclusive ./my_mpi_app_1 & srun --cpu_bind=cores --distribution=block:cyclic -N 4 --ntasks-per-node=16 --exclusive ./my_mpi_app_2 & wait