I've not used it, but when looking at srun man page (for something else)
notices a -r / --relative option which sounds like it might be what you
are looking for.

On Thu, 8 Dec 2016, Nigella Sanders wrote:

Hi Michael,

Actually, that was my first try but it didn't work. ?
srun finds it inconsistent with "-N -n1" and ends up using only the first node 
provided in the -w list.

$ srun: Warning: can't run 1 processes on 2 nodes, setting nnodes to 1


Regards,
Nigella



2016-12-08 13:04 GMT+00:00 Michael Di Domenico <mdidomeni...@gmail.com>:

      On Thu, Dec 8, 2016 at 5:48 AM, Nigella Sanders
      <nigella.sand...@gmail.com> wrote:
      >
      > All 30 tasks run always in the first two allocated nodes (torus6001 and
      > torus6002).
      >
      > However, I would like to get these tasks using only the second and then
      > third nodes (torus6002 and torus6003).
      > Does anyone an idea about how to do this?

      I've not tested this, but i believe you can add the -w option to the
      srun inside your sbatch script





Tom Payerle
IT-ETI-EUS                              paye...@umd.edu
4254 Stadium Dr                         (301) 405-6135
University of Maryland
College Park, MD 20742-4111

Reply via email to