[slurm-users] SLURM_NTASKS not defined after salloc

Peter Kjellström cap at nsc.liu.se
Wed Jul 11 07:12:17 MDT 2018


On Wed, 11 Jul 2018 14:10:51 +0200
Alexander Grund <alexander.grund at tu-dresden.de> wrote:

> Hi all,
> 
> is it expected/intended that the env variable SLURM_NTASKS is not 
> defined after salloc? It only gets defined after the an srun command.
> The number of tasks appear in `scontrol -d show job <jobid>` though.
> So is it a bug in our installation or expected?

my salloc sets SLURM_NTASKS (if you pass -n, otherwise not). This is
similar to how sbatch works.

Tested on 17.11.7

/Peter

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20180711/3139d743/attachment-0001.html>


More information about the slurm-users mailing list