#!/bin/bash -l #SBATCH --job-name=test_openmp #SBATCH --ntasks=1 #SBATCH --cpus-per-task=8 #SBATCH --mem-per-cpu=2G #SBATCH --time=00:30: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_openmp-job_%j.out #SBATCH --error test_openmp-job_%j.err # Change to my work dir cd $SLURM_SUBMIT_DIR # Bind your OpenMP threads export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK # Intel compiler specific environment variables export KMP_AFFINITY=verbose,granularity=core,compact,1 export KMP_STACKSIZE=64m ## Load modules module load my_module # Start my application srun ./my_openmp_app