Skip to content

Commit cec5eee

Browse files
author
Vasileios Karakasis
authored
Merge pull request #2496 from vkarak/test/fix-references
[test] Fix metric name in references for CPMD and VASP checks
2 parents 75e07b4 + 93b8f80 commit cec5eee

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

cscs-checks/apps/cpmd/cpmd_check.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ class CPMDCheck(rfm.RunOnlyRegressionTest):
2323
maintainers = ['AJ', 'LM']
2424

2525
num_nodes = parameter([6, 16], loggable=True)
26-
references = {
26+
allref = {
2727
6: {
2828
'sm_60': {
29-
'dom:gpu': {'time': (120, None, 0.15, 's')},
30-
'daint:gpu': {'time': (120, None, 0.15, 's')},
29+
'dom:gpu': {'elapsed_time': (120.0, None, 0.15, 's')},
30+
'daint:gpu': {'elapsed_time': (120.0, None, 0.15, 's')},
3131
},
3232
'broadwell': {
33-
'dom:mc': {'time': (150.0, None, 0.15, 's')},
34-
'daint:mc': {'time': (150.0, None, 0.15, 's')},
33+
'dom:mc': {'elapsed_time': (150.0, None, 0.15, 's')},
34+
'daint:mc': {'elapsed_time': (150.0, None, 0.15, 's')},
3535
},
3636
},
3737
16: {
3838
'sm_60': {
39-
'daint:gpu': {'time': (120, None, 0.15, 's')}
39+
'daint:gpu': {'elapsed_time': (120.0, None, 0.15, 's')}
4040
},
4141
'broadwell': {
42-
'daint:mc': {'time': (150.0, None, 0.15, 's')},
42+
'daint:mc': {'elapsed_time': (150.0, None, 0.15, 's')},
4343
},
4444
}
4545
}
@@ -93,16 +93,17 @@ def setup_run(self):
9393
# common setup for every architecture
9494
self.job.launcher.options = ['--cpu-bind=cores']
9595
self.job.options = ['--distribution=block:block']
96+
9697
# FIXME: the current test case does not scale beyond 72 MPI tasks
9798
# and needs to be updated (see the warning about XC_DRIVER IN &DFT)
9899
self.num_tasks_per_node = 72 // self.num_nodes
99100
self.num_tasks = self.num_nodes * self.num_tasks_per_node
100101

101102
try:
102-
found = self.references[self.num_nodes][arch]
103+
found = self.allref[self.num_nodes][arch]
103104
except KeyError:
104105
self.skip(f'Configuration with {self.num_nodes} node(s) '
105106
f'is not supported on {arch!r}')
106107

107108
# setup performance references
108-
self.reference = self.references[self.num_nodes][arch]
109+
self.reference = self.allref[self.num_nodes][arch]

cscs-checks/apps/vasp/vasp_check.py

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,31 @@ class VASPCheck(rfm.RunOnlyRegressionTest):
2323
maintainers = ['LM']
2424

2525
num_nodes = parameter([6, 16], loggable=True)
26-
references = {
26+
allref = {
2727
6: {
2828
'sm_60': {
29-
'dom:gpu': {'time': (56.0, None, 0.10, 's')},
30-
'daint:gpu': {'time': (65.0, None, 0.15, 's')},
29+
'dom:gpu': {'elapsed_time': (56.0, None, 0.10, 's')},
30+
'daint:gpu': {'elapsed_time': (65.0, None, 0.15, 's')},
3131
},
3232
'broadwell': {
33-
'dom:mc': {'time': (58.0, None, 0.10, 's')},
34-
'daint:mc': {'time': (65.0, None, 0.15, 's')},
33+
'dom:mc': {'elapsed_time': (58.0, None, 0.10, 's')},
34+
'daint:mc': {'elapsed_time': (65.0, None, 0.15, 's')},
3535
},
3636
'zen2': {
37-
'eiger:mc': {'time': (100.0, None, 0.10, 's')},
38-
'pilatus:mc': {'time': (100.0, None, 0.10, 's')},
37+
'eiger:mc': {'elapsed_time': (100.0, None, 0.10, 's')},
38+
'pilatus:mc': {'elapsed_time': (100.0, None, 0.10, 's')},
3939
},
4040
},
4141
16: {
4242
'sm_60': {
43-
'daint:gpu': {'time': (55.0, None, 0.15, 's')},
43+
'daint:gpu': {'elapsed_time': (55.0, None, 0.15, 's')},
4444
},
4545
'broadwell': {
46-
'daint:mc': {'time': (55.0, None, 0.15, 's')},
46+
'daint:mc': {'elapsed_time': (55.0, None, 0.15, 's')},
4747
},
4848
'zen2': {
49-
'eiger:mc': {'time': (100.0, None, 0.10, 's')},
50-
'pilatus:mc': {'time': (100.0, None, 0.10, 's')}
49+
'eiger:mc': {'elapsed_time': (100.0, None, 0.10, 's')},
50+
'pilatus:mc': {'elapsed_time': (100.0, None, 0.10, 's')}
5151
}
5252
}
5353
}
@@ -85,7 +85,6 @@ def setup_system_filtering(self):
8585
else:
8686
self.valid_prog_environs = ['builtin']
8787

88-
8988
@run_before('run')
9089
def setup_run(self):
9190
# set auto-detected architecture
@@ -98,7 +97,7 @@ def setup_run(self):
9897
arch = 'sm_60'
9998

10099
try:
101-
found = self.references[self.num_nodes][arch]
100+
found = self.allref[self.num_nodes][arch]
102101
except KeyError:
103102
self.skip(f'Configuration with {self.num_nodes} node(s) '
104103
f'is not supported on {arch!r}')
@@ -122,4 +121,4 @@ def setup_run(self):
122121
})
123122

124123
# setup performance references
125-
self.reference = self.references[self.num_nodes][arch]
124+
self.reference = self.allref[self.num_nodes][arch]

0 commit comments

Comments
 (0)