This repository was archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtutorial_4.cobalt
More file actions
executable file
·60 lines (51 loc) · 1.61 KB
/
tutorial_4.cobalt
File metadata and controls
executable file
·60 lines (51 loc) · 1.61 KB
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
#!/bin/bash
#COBALT -t 30
#COBALT -n 2
#COBALT -O geopm_tutorial_4.$jobid
#COBALT -q debug-cache-quad
#COBALT --jobname geopm_tutorial_4
#COBALT --env JOBID=$jobid
module unload darshan
module load intel
module load geopm
# Run on 2 nodes
# with 8 MPI ranks
# launch geopm controller as an MPI process
# create a report file
# create trace files
if [ ! $IMBALANCER_CONFIG ]; then
export IMBALANCER_CONFIG=tutorial_4_imbalance.conf
fi
# Create configuration file for Imbalancer if it doesn't exist.
if [ ! -e $IMBALANCER_CONFIG ]; then
one_host=$(aprun -n 1 -N 1 hostname | head -n1)
echo $one_host 0.1 > $IMBALANCER_CONFIG
fi
# create policy files
geopmagent --agent=power_governor \
--policy=150 > tutorial_governed_policy.json
geopmagent --agent=power_balancer \
--policy=150,0,0,0 > tutorial_balanced_policy.json
export OMP_NUM_THREADS=15
# Use GEOPM launcher wrapper script with ALPS's aprun
geopmlaunch aprun \
-N 4 \
-n 8 \
-r 3 \
--geopm-ctl=process \
--geopm-report=tutorial_4_governed_report \
--geopm-trace=tutorial_4_governed_trace \
--geopm-agent=power_governor \
--geopm-policy=tutorial_governed_policy.json \
-- ./tutorial_4 \
&& \
geopmlaunch aprun \
-N 4 \
-n 8 \
-r 3 \
--geopm-ctl=process \
--geopm-report=tutorial_4_balanced_report \
--geopm-trace=tutorial_4_balanced_trace \
--geopm-agent=power_balancer \
--geopm-policy=tutorial_balanced_policy.json \
-- ./tutorial_4