-
Notifications
You must be signed in to change notification settings - Fork 2
/
system.py
130 lines (117 loc) · 3.36 KB
/
system.py
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# configuration for CSD3
# modified from https://github.com/ukri-excalibur/excalibur-tests/blob/main/benchmarks/reframe_config.py
ICELAKE_PROC = {
"num_cpus": 76,
"num_cpus_per_core": 1,
"num_sockets": 2,
"num_cpus_per_socket": 38,
}
SAPPHIRE_RAPID_PROC = {
"num_cpus": 112,
"num_cpus_per_core": 1,
"num_sockets": 2,
"num_cpus_per_socket": 56,
}
CASCADE_LAKE_PROC = {
"num_cpus": 56,
"num_cpus_per_core": 1,
"num_sockets": 2,
"num_cpus_per_socket": 28,
}
def _make_access(account, reservation, nodelist):
return [
"--reservation=" + reservation,
"--account=" + account,
"--nodelist=" + nodelist,
]
def power_scaling_access(reservation, nodelist):
return _make_access("SUPPORT-CPU", reservation, nodelist)
def geopm_access(reservation, nodelist):
return _make_access("ZETTASCALE-ENERGY-SL2-CPU", reservation, nodelist)
def make_partition(name, descr, proc, access, env_vars=[]):
return {
"name": name,
"descr": descr,
"scheduler": "slurm",
"launcher": "mpirun",
"env_vars": env_vars,
"access": [
"--partition=" + name,
"--exclusive",
*access,
],
"sched_options": {
"job_submit_timeout": 120,
"use_nodes_options": True,
},
"environs": ["gcc", "intel"],
"max_jobs": 64,
"processor": proc,
}
site_configuration = {
"systems": [
{
"name": "csd3-power-scaling",
"descr": "",
"hostnames": ["login-q-1"],
"modules_system": "tmod4",
"partitions": [
make_partition(
"icelake",
"",
ICELAKE_PROC,
power_scaling_access("downclock-perf-testing-1", "cpu-q-[3,4]"),
),
make_partition(
"sapphire",
"",
SAPPHIRE_RAPID_PROC,
power_scaling_access("downclock-perf-testing-2", "cpu-r-[3,4]"),
),
make_partition(
"cclake",
"",
CASCADE_LAKE_PROC,
power_scaling_access("downclock-perf-testing-3", "cpu-p-[471,472]"),
env_vars=[["I_MPI_HYDRA_BOOTSTRAP", "ssh"]],
),
],
},
{
"name": "csd3-geopm",
"descr": "",
"hostnames": ["login-q-1"],
"modules_system": "tmod4",
"partitions": [
make_partition(
"icelake",
"",
ICELAKE_PROC,
geopm_access("geopm_i_ZL-451", "cpu-q-607"),
),
make_partition(
"sapphire",
"",
SAPPHIRE_RAPID_PROC,
geopm_access("geopm_s_ZL-451", "cpu-r-110"),
),
],
},
],
"environments": [
{
"name": "intel",
"cc": "mpiicc",
"cxx": "mpiicpc",
"ftn": "mpiifort",
"modules": [],
},
{
"name": "gcc",
"cc": "mpicc",
"cxx": "mpicxx",
"ftn": "mpif90",
"modules": [],
},
],
}