forked from jswhit/replay_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeia_preamble_slurm
56 lines (54 loc) · 1.65 KB
/
theia_preamble_slurm
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
#!/bin/sh
##SBATCH -q debug
#SBATCH -t 01:15:00
#SBATCH -A gsienkf
#SBATCH -N 20
#SBATCH -J C384_ifs_replay
#SBATCH -e C384_ifs_replay.err
#SBATCH -o C384_ifs_replay.out
export NODES=$SLURM_NNODES
export corespernode=$SLURM_CPUS_ON_NODE
##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_ifs_replay
##PBS -S /bin/bash
##PBS -o C384_ifs_replay.stdout
##PBS -e C384_ifs_replay.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=6
export write_tasks=6