[slurm-users] heterogeneous jobs using packjob
Jing Gong
gongjing at kth.se
Tue Nov 13 05:06:36 MST 2018
Hi,
I can submit heterogeneous jobs using packjob likes
....
#SBATCH -p high_mem
#SBATCH -N 1
#SBATCH --exclusive
#SBATCH packjob
#SBATCH -p log_mem
#SBATCH -N 2
#SBATCH --exclusive
....
i.e. specify 1 fat node and two thin nodes for one jobs.
If I use "squeue/scontrol" to check the job, it indeed distribute 3 nodes, However, if set SLURM environment variables in the job script, I always get the information of the first partition "high_mem".
echo $SLURM_NNODES # 1
echo $SLURM_JOB_NODELIST # p01k30
How can I obtain the information of the two type nodes in a job script to run different applications on different nodes?
Thanks a lot. /Jing
More information about the slurm-users
mailing list