From 04a8997459ec2945ad98188e8acffbd8d546a0f8 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Fri, 28 Jun 2024 17:16:38 +0200 Subject: [PATCH] Fix linter issues --- eessi/testsuite/hooks.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eessi/testsuite/hooks.py b/eessi/testsuite/hooks.py index 14b61774..d71fd7ba 100644 --- a/eessi/testsuite/hooks.py +++ b/eessi/testsuite/hooks.py @@ -66,7 +66,8 @@ def assign_tasks_per_compute_unit(test: rfm.RegressionTest, compute_unit: str, n Total task count is determined based on the number of nodes to be used in the test. Behaviour of this function is (usually) sensible for MPI tests. - WARNING: when using COMPUTE_UNIT[HWTHREAD] and invoking a hook for process binding, please verify that process binding happens correctly + WARNING: when using COMPUTE_UNIT[HWTHREAD] and invoking a hook for process binding, please verify that process + binding happens correctly. Arguments: - test: the ReFrame test to which this hook should apply @@ -230,7 +231,9 @@ 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 = int(test.default_num_cpus_per_node / test.current_partition.processor.num_cpus_per_core) + test.num_tasks_per_node = int( + test.default_num_cpus_per_node / test.current_partition.processor.num_cpus_per_core + ) test.num_cpus_per_task = int(test.default_num_cpus_per_node / test.num_tasks_per_node) # num_tasks_per_node is not set, but num_cpus_per_task is