[slurm-users] SLURM_JOB_GPU not set in salloc

Chris Samuel chris at csamuel.org
Sat Jan 19 07:22:23 UTC 2019


On 18/1/19 3:18 am, Henkel wrote:

> we just found that SLURM_JOB_GPU (and all the other gres/gpu variables)
> are not set after salloc has allocated nodes. Only if srun or sbatch is
> used the environment variables are set. I'm wondering if that's only
> happening to us or if this is always the case or could be configured to
> behave differently.

By default salloc leaves you in a shell on the login node, but your 
actual job allocation is on a compute node elsewhere so it doesn't make 
sense for it to set those values prior to the job step that will do the 
work starting.

Does that help?

All the best,
Chris
-- 
  Chris Samuel  :  http://www.csamuel.org/  :  Berkeley, CA, USA



More information about the slurm-users mailing list