I don't think Slurm will let you allocate more nodes than tasks. You need to 
request at least as many tasks as nodes. If you want to run exactly one copy of 
your command on each node in your allocation, just request the same number of 
tasks and nodes. Example:

[bones] (slurm) slurm> srun -N5 -n5 hostname
trek3
trek0
trek6
trek5
trek7



From: Hartley Greenwald [mailto:[email protected]]
Sent: Wednesday, July 02, 2014 12:31 PM
To: slurm-dev
Subject: [slurm-dev] Re: pbsdsh -u equivalent

I may be wrong about this, but doesn't this not necessarily solve the problem?
Let's say we have one task and two nodes allocated.  In PBS using pbsdsh -u, 
both of the nodes will get a copy of the task.  However, according to the 
documentation  --ntasks-per-node=1 only means that each node can get a maximum 
of one task.  This does not seem to entail that multiple copies of the tasks 
will be produced and given to all the nodes only that a maximum of one task is 
performed by each node.
Hartley

On Mon, Jun 30, 2014 at 6:04 PM, Christopher Samuel 
<[email protected]<mailto:[email protected]>> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/07/14 09:18, Hartley Greenwald wrote:

> I may be wrong about this because I'm pretty new to all this stuff,
> but I think that I want to give a copy to every node allocated for
> the job.
To emulate pbsdsh you are quite correct.

According to the manual page the --ntasks-per-node=1 option for srun
should do what you want.

cheers,
Chris
- --
 Christopher Samuel        Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: [email protected]<mailto:[email protected]> Phone: +61 (0)3 903 
55545<tel:%2B61%20%280%293%20903%2055545>
 http://www.vlsci.org.au/      http://twitter.com/vlsci

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlOx+JUACgkQO2KABBYQAh/+uQCdHWQEQ/H+aJMJ8ppeMD+C/r88
jb0An2qJT4FZxloNNOqP2owAC2N3W7eZ
=7BJX
-----END PGP SIGNATURE-----


Reply via email to