On 6/30/23 08:41, Tommi Tervo wrote:
This was an annoying change:
22.05.x RELEASE_NOTES:
-- srun will no longer read in SLURM_CPUS_PER_TASK. This means you will
implicitly have to specify --cpus-per-task on your srun calls, or set the
new SRUN_CPUS_PER_TASK env var to accomplish the same thing.
Here one can find relevant discussion:
https://bugs.schedmd.com/show_bug.cgi?id=15632
I'll attach our cli-filter pre_submit function which works for us.
The discussion in bug 15632 concludes that this bug will only be fixed in
23.11. Your workaround looks nice, however, I have not been able to find
any documentation of slurmctld calling any Lua functions named
slurm_cli_pre_submit or slurm_cli_post_submit.
Some very similar functions are documented in
https://slurm.schedmd.com/cli_filter_plugins.html for functions
cli_filter_p_setup_defaults, cli_filter_p_pre_submit, and
cli_filter_p_post_submit.
Can anyone she light on the relationship between Tommi's
slurm_cli_pre_submit function and the ones defined in the
cli_filter_plugins page?
Thanks,
Ole