Skip to content

Commit e7749c2

Browse files
author
Vasileios Karakasis
committed
Enhance the GPU burn test
1 parent d8c2066 commit e7749c2

File tree

1 file changed

+17
-26
lines changed

1 file changed

+17
-26
lines changed

cscs-checks/microbenchmarks/gpu/gpu_burn/gpu_burn_test.py

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -33,41 +33,35 @@ def __init__(self):
3333
r'(?P<temp>\S*) Celsius')
3434
self.perf_patterns = {
3535
'perf': sn.min(sn.extractall(patt, self.stdout, 'perf', float)),
36+
'temp': sn.max(sn.extractall(patt, self.stdout, 'temp', float)),
3637
}
3738

3839
self.reference = {
3940
'dom:gpu': {
40-
# 'perf': (4115, -0.10, None, 'Gflop/s'),
41-
'max_temp': (0, None, None, 'Celsius')
41+
'perf': (4115, -0.10, None, 'Gflop/s'),
4242
},
4343
'daint:gpu': {
44-
# 'perf': (4115, -0.10, None, 'Gflop/s'),
45-
'max_temp': (0, None, None, 'Celsius')
44+
'perf': (4115, -0.10, None, 'Gflop/s'),
4645
},
4746
'arolla:cn': {
48-
# 'perf': (5861, -0.10, None, 'Gflop/s'),
49-
'max_temp': (0, None, None, 'Celsius')
47+
'perf': (5861, -0.10, None, 'Gflop/s'),
5048
},
5149
'tsa:cn': {
52-
# 'perf': (5861, -0.10, None, 'Gflop/s'),
53-
'max_temp': (0, None, None, 'Celsius')
50+
'perf': (5861, -0.10, None, 'Gflop/s'),
5451
},
5552
'ault:amda100': {
56-
# 'perf': (15000, -0.10, None, 'Gflop/s'),
57-
'max_temp': (0, None, None, 'Celsius')
53+
'perf': (15000, -0.10, None, 'Gflop/s'),
5854
},
5955
'ault:amdv100': {
60-
# 'perf': (5500, -0.10, None, 'Gflop/s'),
61-
'max_temp': (0, None, None, 'Celsius')
56+
'perf': (5500, -0.10, None, 'Gflop/s'),
6257
},
6358
'ault:intelv100': {
64-
# 'perf': (5500, -0.10, None, 'Gflop/s'),
65-
'max_temp': (0, None, None, 'Celsius')
59+
'perf': (5500, -0.10, None, 'Gflop/s'),
6660
},
6761
'ault:amdvega': {
68-
# 'perf': (3450, -0.10, None, 'Gflop/s'),
69-
'max_temp': (0, None, None, 'Celsius')
62+
'perf': (3450, -0.10, None, 'Gflop/s'),
7063
},
64+
'*': {'temp': (0, None, None, 'degC')}
7165
}
7266

7367
self.maintainers = ['AJ', 'TM']
@@ -142,14 +136,11 @@ def report_nid_with_smallest_flops(self):
142136
rptf = os.path.join(self.stagedir, sn.evaluate(self.stdout))
143137
self.nids = sn.extractall(regex, rptf, 1)
144138
self.flops = sn.extractall(regex, rptf, 2, float)
145-
# find index of smallest flops:
139+
140+
# Find index of smallest flops and update reference dictionary to
141+
# include our patched units
146142
index = self.flops.evaluate().index(min(self.flops))
147-
self.unit = f'GF/s ({self.nids[index]})'
148-
self.reference['dom:gpu:perf'] = (4115, -0.10, None, self.unit)
149-
self.reference['daint:gpu:perf'] = (4115, -0.10, None, self.unit)
150-
self.reference['arolla:cn:perf'] = (5861, -0.10, None, self.unit)
151-
self.reference['tsa:cn:perf'] = (5861, -0.10, None, self.unit)
152-
self.reference['ault:amda100:perf'] = (15000, -0.10, None, self.unit)
153-
self.reference['ault:amdv100:perf'] = (5500, -0.10, None, self.unit)
154-
self.reference['ault:intelv100:perf'] = (5500, -0.10, None, self.unit)
155-
self.reference['ault:amdvega:perf'] = (3450, -0.10, None, self.unit)
143+
unit = f'GF/s ({self.nids[index]})'
144+
for key, ref in self.reference.items():
145+
if not key.endswith(':temp'):
146+
self.reference[key] = (*ref[:3], unit)

0 commit comments

Comments
 (0)