From 6b04d5308928fcd152efe3402ca480c1b20919ea Mon Sep 17 00:00:00 2001 From: crivella Date: Thu, 10 Oct 2024 16:40:09 +0200 Subject: [PATCH] Added increased time limit for low-core runs --- eessi/testsuite/tests/apps/MetalWalls.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eessi/testsuite/tests/apps/MetalWalls.py b/eessi/testsuite/tests/apps/MetalWalls.py index 3c29546f..20c053eb 100644 --- a/eessi/testsuite/tests/apps/MetalWalls.py +++ b/eessi/testsuite/tests/apps/MetalWalls.py @@ -80,6 +80,14 @@ def set_tag_ci(self): self.tags.add(TAGS['CI']) log(f'tags set to {self.tags}') + @run_after('init') + def set_increased_walltime(self): + """Increase the amount of time for the largest benchmark, when running with few cores.""" + # List of benchmarks that require more time to run + large_benchmarks = ['hackathonGPU/benchmark2'] + if self.num_tasks <= 4 and self.benchmark_info[0] in large_benchmarks: + self.time_limit = '120m' + @run_after('setup') def run_after_setup(self): """Hooks to run after the setup phase"""