Hi All, When we use --export=NONE with sbatch, so that we get a clean environment to work with, some SLURM environment variables don't get set. At least the following:
SLURM_JOB_NAME SLURM_NTASKS_PER_NODE SLURM_PRIO_PROCESS SLURM_CPUS_PER_TASK SLURM_SUBMIT_DIR SLURM_SUBMIT_HOST Script is: --- #!/bin/bash #SBATCH --job-name=myjob # do we need this #SBATCH --ntasks=2 #SBATCH --ntasks-per-node=2 #SBATCH --cpus-per-task=8 #SBATCH --time=00:05:00 #SBATCH --export=NONE env --- We are running 2.6.6-2, though I've also checked this on 2.5.4 on Cray clusters. Do others see the same behaviour? If there is no reason for not setting it, I could provide a patch at some stage. Cheers, Paul
