Re: [OMPI users] Guaranteed run rank 0 on a given machine?

2010-12-12 Thread jody
In a similar situation i wrote a simple shell script "rankcreate.sh" which creates a rank file assigning the various ranks to the correct processors/slots when given a number of processes. In addition, this script returns the name of this created rank file. I then use it like this: mpirun -np 5

Re: [OMPI users] Guaranteed run rank 0 on a given machine?

2010-12-10 Thread Eugene Loh
David Mathog wrote: Also, in my limited testing --host and -hostfile seem to be mutually exclusive. No. You can use both together. Indeed, the mpirun man page even has examples of this (though personally, I don't see having a use for this). I think the idea was you might use a hostfile to

Re: [OMPI users] Guaranteed run rank 0 on a given machine?

2010-12-10 Thread Ralph Castain
Terry is correct - not guaranteed, but that is the typical behavior. However, you -can- guarantee that rank=0 will be on a particular host. Just run your job: mpirun -n 1 -host my_app : -n (N-1) my_app This guarantees that rank=0 is on host . All other ranks will be distributed according to

Re: [OMPI users] Guaranteed run rank 0 on a given machine?

2010-12-10 Thread Terry Dontje
On 12/10/2010 01:46 PM, David Mathog wrote: The master is commonly very different from the workers, so I expected there would be something like --rank0-on but there doesn't seem to be a single switch on mpirun to do that. If "mastermachine" is the first entry in the hostfile, or the first

[OMPI users] Guaranteed run rank 0 on a given machine?

2010-12-10 Thread David Mathog
The master is commonly very different from the workers, so I expected there would be something like --rank0-on but there doesn't seem to be a single switch on mpirun to do that. If "mastermachine" is the first entry in the hostfile, or the first machine in a -hosts list, will rank 0 always