On Wed, 11 Jul 2018 14:10:51 +0200 Alexander Grund <alexander.gr...@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.