forked from jswhit/replay_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeia_preamble
46 lines (44 loc) · 1.42 KB
/
theia_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
#PBS -l nodes=20:ppn=24
##PBS -l walltime=4:00:00
#PBS -l walltime=0:30:00
#PBS -A gsienkf
##PBS -A da-cpu
#PBS -q debug
#PBS -N C384_replay_control
#PBS -S /bin/bash
#PBS -o C384_replay_control.stdout
#PBS -e C384_replay_control.stderr
export NODES=20
export corespernode=24
export machine='theia'
# for control forecast
if [ $NODES -eq 20 ]; then
# 20 nodes, 2 threads
#export control_threads=2 # control forecast threads
#export control_proc=444 # total number of processors for control forecast
export control_threads=1
export control_proc=480
export write_groups=8 # write groups for control forecast.
export layout="12,6" # layout_x,layout_y (total # mpi tasks = $layout_x*$layout_y*6=($fg_proc/$fg_threads) - $write_tasks*$write_groups)
#export control_threads=2
#export control_proc=480
#export write_groups=4 # write groups for control forecast.
#export layout="6,6" # 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, 2 threads
export control_threads=4
export control_proc=888
export write_groups=1
export layout="6, 6"
elif [ $NODES -eq 80 ]; then
# 80 nodes, 2 threads
export control_threads=8
export control_proc=1776
export write_groups=1
export layout="12, 12"
else
echo "processor layout for $NODES nodes not set"
exit 1
fi
export gsi_control_threads=3
export write_tasks=6