-
Notifications
You must be signed in to change notification settings - Fork 0
/
hera_preamble
68 lines (63 loc) · 1.78 KB
/
hera_preamble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/sh
#SBATCH -q debug
#SBATCH -t 00:30:00
#SBATCH -A gsienkf
#SBATCH -N 20
#SBATCH -J C96_lgetkf_sondesonly
#SBATCH -e C96_lgetkf_sondesonly.err
#SBATCH -o C96_lgetkf_sondesonly.out
export NODES=$SLURM_NNODES
export corespernode=$SLURM_CPUS_ON_NODE
export machine='hera'
# for control forecast
if [ $NODES -eq 20 ]; then
# 20 nodes, 2 threads
export control_threads=2
export control_proc=800
export write_groups_ctl=2 # write groups for control forecast.
export write_tasks_ctl=8
export layout_ctl="8,8" # layout_x,layout_y (total # mpi tasks = $layout_x*$layout_y*6=($fg_proc/$fg_threads) - $write_tasks*$write_groups)
elif [ $NODES -eq 40 ]; then
# 40 nodes, 4 threads
export control_threads=4
export control_proc=1600
export write_groups_ctl=4
export write_tasks_ctl=4
export layout_ctl="8, 8"
# 32 nodes, 4 threads
#export control_threads=4
#export control_proc=1280
#export write_groups_ctl=4
#export write_tasks_ctl=8
#export layout_ctl="8, 6"
elif [ $NODES -eq 80 ]; then
# 80 nodes, 8 threads
export control_threads=8
export control_proc=3200
export write_groups_ctl=4
export write_tasks_ctl=4
export layout_ctl="8, 8"
else
echo "processor layout for $NODES nodes not set"
exit 1
fi
# for ensemble forecast and GSI
# C192 ensemble, C384 control
export fg_proc=$corespernode
export fg_threads=1
#export fg_proc=`expr 2 \* $corespernode`
#export fg_threads=2
export enkf_threads=10
export gsi_control_threads=4
export write_groups=4
# 40 cores per node
export write_tasks=1
export layout="3, 2"
# C384 ensemble, C768 control (run with 80 nodes)
#export fg_proc=`expr 4 \* $corespernode` # C384
#export fg_threads=1
#export enkf_threads=40
#export gsi_control_threads=40
# 40 cores per node
#export write_tasks=4
#export layout="6, 4"