Thank you Chris. This is what I assumed since setting those Variables for complicated Allocations may be just useless. Yet I wasn’t sure if it was possible at all.
Best, Andreas > Am 19.01.2019 um 08:39 schrieb Chris Samuel <ch...@csamuel.org>: > >> 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 >