Specifying nodes to use for slurm array jobs
I'm trying to run an array job on specific nodes using
--nodelist but I'm not sure it's possible.
E.g. I want to set:
#SBATCH --array=0-1 #SBATCH --nodelist=compute-[0,2]
and have the first subjob end up on compute-0 and the 2nd on compute-2. However the nodelist gets duplicated for each subjob in the array. Setting
ntasks-per-node doesn't help as they apply to each subjob too.