[slurm-users] SLURM_JOB_IB for heterogeneous jobs
bockelmann at dkrz.de
Thu Aug 15 13:52:20 UTC 2019
the docu for heterogeneous jobs  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
bash-4.1$ srun --pack-group=0 printenv SLURM_JOB_ID
bash-4.1$ srun --pack-group=1 printenv SLURM_JOB_ID
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5326 bytes
Desc: S/MIME Cryptographic Signature
More information about the slurm-users