We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48a9ed3 commit d2b0cb4Copy full SHA for d2b0cb4
eessi/testsuite/hooks.py
@@ -162,7 +162,7 @@ def assign_tasks_per_compute_unit(test: rfm.RegressionTest):
162
test.used_cpus_per_task = test.num_cpus_per_task
163
164
if test.current_partition.launcher_type().registered_name == 'srun':
165
- # Add (again) --cpus-per-task to srun, which wins because it is set last:
+ # Add --cpus-per-task to srun launcher
166
test.job.launcher.options += ['--cpus-per-task', str(test.used_cpus_per_task)]
167
# Make sure srun inherits --cpus-per-task from the job environment for Slurm versions >= 22.05 < 23.11,
168
# ensuring the same task binding across all Slurm versions.
0 commit comments