Skip to content

Commit

Permalink
Min was supposed to be Max
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Jun 28, 2024
1 parent 00c4795 commit eba036e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eessi/testsuite/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit eba036e

Please sign in to comment.