flat.sh 572 Bytes
Newer Older
hautreux's avatar
hautreux committed
1
2
3
4
5
6
7
#!/bin/bash
#SBATCH -J hybrid
#SBATCH --nodes=7
#SBATCH --ntasks=28
#SBATCH --ntasks-per-node=4
#SBATCH --cpus-per-task=17
#SBATCH --time=0:40:00
hautreux's avatar
hautreux committed
8
#SBATCH -C quad,flat 
hautreux's avatar
hautreux committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#SBATCH --exclusive
#SBATCH --mem=50GB
#SBATCH --output hybrid.output.slurm 

set -e

export I_MPI_DOMAIN=auto
export I_MPI_PIN_RESPECT_CPUSET=0

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

module load intel intelmpi

ulimit -s unlimited

rm -f *.out

hautreux's avatar
hautreux committed
29
srun ../../../bin/hello_hybrid
hautreux's avatar
hautreux committed
30