33#
44# SPDX-License-Identifier: BSD-3-Clause
55
6+ import contextlib
67import os
78
89import reframe .utility .sanity as sn
@@ -60,11 +61,6 @@ def __init__(self):
6061 self .perf_patterns = {}
6162 self .reference = {}
6263 self .__bwref = {
63- # FIXME: reference values for Arolla and Tsa need to be updated
64- # (sanity check fails if they are not defined)
65- 'arolla:cn:h2d' : (7583 , - 0.1 , None , 'MB/s' ),
66- 'arolla:cn:d2h' : (7584 , - 0.1 , None , 'MB/s' ),
67- 'arolla:cn:d2d' : (137408 , - 0.1 , None , 'MB/s' ),
6864 'daint:gpu:h2d' : (11881 , - 0.1 , None , 'MB/s' ),
6965 'daint:gpu:d2h' : (12571 , - 0.1 , None , 'MB/s' ),
7066 'daint:gpu:d2d' : (499000 , - 0.1 , None , 'MB/s' ),
@@ -74,12 +70,6 @@ def __init__(self):
7470 'kesch:cn:h2d' : (7583 , - 0.1 , None , 'MB/s' ),
7571 'kesch:cn:d2h' : (7584 , - 0.1 , None , 'MB/s' ),
7672 'kesch:cn:d2d' : (137408 , - 0.1 , None , 'MB/s' ),
77- 'tiger:gpu:h2d' : (0 , None , None , 'MB/s' ),
78- 'tiger:gpu:d2h' : (0 , None , None , 'MB/s' ),
79- 'tiger:gpu:d2d' : (0 , None , None , 'MB/s' ),
80- 'tsa:cn:h2d' : (7583 , - 0.1 , None , 'MB/s' ),
81- 'tsa:cn:d2h' : (7584 , - 0.1 , None , 'MB/s' ),
82- 'tsa:cn:d2d' : (137408 , - 0.1 , None , 'MB/s' ),
8373 }
8474 self .tags = {'diagnostic' , 'benchmark' , 'mch' ,
8575 'craype' , 'external-resources' }
@@ -136,6 +126,7 @@ def do_sanity_check(self):
136126 partname = self .current_partition .fullname
137127 refkey = '%s:%s' % (partname , perfvar )
138128 bwkey = '%s:%s' % (partname , xfer_kind )
139- self .reference [refkey ] = self .__bwref [bwkey ]
129+ with contextlib .suppress (KeyError ):
130+ self .reference [refkey ] = self .__bwref [bwkey ]
140131
141132 return True
0 commit comments