large.sh 511 Bytes
Newer Older
jourdain's avatar
jourdain committed
1
2
3
4
5
6
7
#!/bin/bash
#SBATCH -J large_omp
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=224
#SBATCH --time=0:40:00
jourdain's avatar
jourdain committed
8
#SBATCH -C SKL224 
jourdain's avatar
jourdain committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#SBATCH --exclusive
#SBATCH --output large_omp.output.slurm

set -e

#Make sure that OMP_NUM_THREADS = cpus-per-task * KMP_HW_SUBSET
export KMP_HW_SUBSET=1T
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
export KMP_AFFINITY=verbose,compact,1,0,granularity=fine

module load intel 

ulimit -s unlimited

rm -f *.out

srun ../../../bin/hello_omp