-
Notifications
You must be signed in to change notification settings - Fork 0
/
orion_preamble
executable file
·73 lines (69 loc) · 2.03 KB
/
orion_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
69
70
71
72
73
#!/bin/sh
##SBATCH -q urgent
#SBATCH -t 03:30:00
#SBATCH -A gsienkf
#SBATCH -N 10
#SBATCH --ntasks-per-node=40
#SBATCH -p orion
#SBATCH -J da_jedi_C96_lgetkf_sondesonly
#SBATCH -e da_jedi_C96_lgetkf_sondesonly.err
#SBATCH -o da_jedi_C96_lgetkf_sondesonly.out
export NODES=$SLURM_NNODES
export corespernode=$SLURM_CPUS_ON_NODE
export machine='orion'
# for control forecast
if [ $NODES -eq 10 ]; then
# 10 nodes, 2 threads
export control_threads=2
export control_proc=400
export write_groups_ctl=4 # write groups for control forecast.
export write_tasks_ctl=4
export layout_ctl="4,8" # layout_x,layout_y (total # mpi tasks = $layout_x*$layout_y*6=($fg_proc/$fg_threads) - $write_tasks*$write_groups)
elif [ $NODES -eq 20 ]; then
# 20 nodes, 2 threads
export control_threads=2
export control_proc=800
export write_groups_ctl=4 # write groups for control forecast.
export write_tasks_ctl=4
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
# for C192
export fg_proc=$corespernode
export fg_threads=1
export enkf_threads=10
export gsi_control_threads=4
export write_groups=4
export write_tasks=1
export layout="3, 2"
# for C384
#export fg_proc=`expr 4 \* $corespernode`
#export fg_threads=1
#export enkf_threads=40
#export gsi_control_threads=20
#export write_groups=4
#export write_tasks=4
#export layout="6, 4"