mpirun / mpiexec can launch applications on any node, regardless of the
"schedule" attribute. So you can do something like:
mpiexec n0 master : -np 4 slave
Which will run "master" on n0 (regardless of its schedule attribute)
and then use default scheduling for the slaves (i.e., not use n0).
See the mpirun(1) man page for more details.
On May 24, 2005, at 7:11 AM, alind_sap wrote:
> Thanks for the suggestion Jeff.I have tried ur suggestion . now at the
> time of scheduling in round robin fashion it is not going to master
> node. But another problem is there( as per u hve mentioned). the task
> with task_id=0 is also going to n1. how can I explicitly run task_id=0
> on n0 i.e. master node.my program is MIMD written in SIMD style using
> if statements like
>
> MPI::INIT()
> taskid=get_rank()
> if (task_id==0)
> then:
> (perform this)...
> if (task_id>0)
> then:
> (perform this)....
> MPI::FINALIZE();
> Get Your Private, Free E-mail from Indiatimes at
> http://email.indiatimes.com
>
> Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com
>
> Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to
> http://airsahara.indiatimes.com and Bid Now!
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|