[slurm-users] Discussion about the --cpus-per-task flag

3 views
Skip to first unread message

Michele Esposito Marzino via slurm-users

unread,
Sep 4, 2025, 10:08:18 AM (10 days ago) Sep 4
to slurm...@lists.schedmd.com
Hi everyone,

I would like to ask about the rationale behind the --cpus-per-task flag.
While I do understand the meaning and its intended goal, I was wondering how it is managed in practice.
I tried inferring this from the source code, but it is quite intricate, and not really straightforward by simply searching for the string match.

Does it affect the CPUSET of each task?
Who is responsible for setting this? The slurmcltd or slurmd? And how?
Or at least, point me where in the code it is handled, so that I can reconstruct the whole process myself.

Thanks
Reply all
Reply to author
Forward
0 new messages