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:***@gmail.com]
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 <***@unimelb.edu.au<mailto:***@unimelb.edu.au>> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Hartley GreenwaldI 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: ***@unimelb.edu.au<mailto:***@unimelb.edu.au> Phone: +61 (0)3 903 55545<tel:%2B61%20%280%293%20903%2055545>
http://www.vlsci.org.au/ http://twitter.com/vlsci