[slurm-users] SLURM_JOB_IB for heterogeneous jobs

Hendryk Bockelmann bockelmann at dkrz.de
Thu Aug 15 13:52:20 UTC 2019


Hello,

the docu for heterogeneous jobs [1] says that the envVar SLURM_JOB_ID 
should be different for each component. However, I cannot reproduce this 
on a fresh slurm-19.05.1 installation.

$ salloc -pcompute -N1 : -pcompute2 -N1
[...]
salloc: Granted job allocation 108453
[...]
bash-4.1$ squeue -h -j 108453 -o %i,%P
108453+0,compute
108453+1,compute2

bash-4.1$ srun --pack-group=0 printenv SLURM_JOB_ID
108453
bash-4.1$ srun --pack-group=1 printenv SLURM_JOB_ID
108453

As you can see, for both components the SLURM_JOB_ID is the same. Does 
someone know what might be wrong in my setup?

Moreover, I would like to know how to distinguish different components 
of a heterogeneous job in the epilog script. As far as I can see there 
is only a limited set of envVars available and none can be used to 
determine the component - again the SLURM_JOB_ID is the same in all epilog!

Thanks for your help,
Hendryk

[1] https://slurm.schedmd.com/heterogeneous_jobs.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5326 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20190815/4b8a5565/attachment.bin>


More information about the slurm-users mailing list