Branch: refs/heads/master
Revision: 16dacd6
Author: ronawho
Log Message:
Merge pull request #17830 from ronawho/respect-cpus-per-task-slurm
Respect salloc/sbatch --cpus-per-task when launching with slurm-srun
[reviewed by @gbtitus]
Respect salloc/sbatch --cpus-per-task when launching with slurm-srun
When we compute the value for --cpus-per-task
check to see if we're
within an existing salloc/sbatch allocation that has already set the
value and use that instead of trying to compute our own and likely try
to use use too many cores.
This value can still be lowered with CHPL_LAUNCHER_CORES_PER_LOCALE
if
a user wants to use only part of their allocation for a chapel program
keeping the rest for something else.
Modified Files:
M runtime/src/launch/slurm-srun/launch-slurm-srun.c
Compare: https://github.com/chapel-lang/chapel/compare/9f7ca8b335ba...16dacd6bf9f7