Discussion about the --cpus-per-task flag
4 Sep
2025
4 Sep
'25
3:04 p.m.
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
232
Age (days ago)
232
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michele Esposito Marzino