Thank you for your suggestion Thomas,

I have just tested it but no luck.
There is a shift in the node list to be used but only one of them is
accessed.

For example, with an allocation of three nodes ((torus6001, torus6002 and
torus6003), this code will confine the 30 tasks in torus6002 instead of
using the two last ones:

for i in {1..30};do
         touch data.$i
         srun -N1 -n1 -r1 --mem=15 --input=data.$i ./get_cpu &
done
wait

Setting -r2 will confine al the tasks in torus6003, as expected.

Regards,
Nigella







2016-12-08 15:27 GMT+01:00 Thomas M. Payerle <paye...@umd.edu>:

>
> 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