diff --git a/cscs-checks/microbenchmarks/alloc_speed/alloc_speed.py b/cscs-checks/microbenchmarks/alloc_speed/alloc_speed.py new file mode 100644 index 0000000000..768aabf46a --- /dev/null +++ b/cscs-checks/microbenchmarks/alloc_speed/alloc_speed.py @@ -0,0 +1,65 @@ +import reframe as rfm +import reframe.utility.sanity as sn + + +@rfm.parameterized_test(['no'], ['2M']) +class AllocSpeedTest(rfm.RegressionTest): + def __init__(self, hugepages): + super().__init__() + + self.descr = 'Time to allocate 4096 MB using %s hugepages' % hugepages + self.sourcepath = 'alloc_speed.cpp' + self.build_system = 'SingleSource' + self.build_system.cxxflags = ['-O3', '-std=c++11'] + self.valid_systems = ['daint:gpu', 'daint:mc', 'dom:gpu', 'dom:mc'] + self.valid_prog_environs = ['PrgEnv-gnu'] + if hugepages == 'no': + self.valid_systems += ['kesch:cn', 'kesch:pn'] + else: + self.modules = ['craype-hugepages%s' % hugepages] + + self.sanity_patterns = sn.assert_found('4096 MB', self.stdout) + self.perf_patterns = { + 'time': sn.extractsingle(r'4096 MB, allocation time (?P