From eba036ee17ec223a9701c7c669fde73c8deb6cff Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Fri, 28 Jun 2024 17:58:52 +0200 Subject: [PATCH] Min was supposed to be Max --- eessi/testsuite/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eessi/testsuite/hooks.py b/eessi/testsuite/hooks.py index 09f54c00..8688f2e7 100644 --- a/eessi/testsuite/hooks.py +++ b/eessi/testsuite/hooks.py @@ -241,7 +241,7 @@ def _assign_one_task_per_cpu(test: rfm.RegressionTest): # neither num_tasks_per_node nor num_cpus_per_task are set if not test.num_tasks_per_node and not test.num_cpus_per_task: check_proc_attribute_defined(test, 'num_cpus_per_core') - test.num_tasks_per_node = min( + test.num_tasks_per_node = max( int(test.default_num_cpus_per_node / test.current_partition.processor.num_cpus_per_core), 1 )