On Wed, 11 Jul 2018 14:10:51 +0200<br>
Alexander Grund <alexander.grund@tu-dresden.de> wrote:<br>
<br>
> Hi all,<br>
> <br>
> is it expected/intended that the env variable SLURM_NTASKS is not <br>
> defined after salloc? It only gets defined after the an srun command.<br>
> The number of tasks appear in `scontrol -d show job <jobid>` though.<br>
> So is it a bug in our installation or expected?<br>
<br>
my salloc sets SLURM_NTASKS (if you pass -n, otherwise not). This is<br>
similar to how sbatch works.<br>
<br>
Tested on 17.11.7<br>
<br>
/Peter<br>
<br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.