Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Spawning processes through MPI::Intracomm::Spawn_multiple
From: vipin kumar (vipinkumar41_at_[hidden])
Date: 2009-07-02 02:45:39


Hi all,

I got the solution but its not flexible. I have to provide two host files
"chfile" and "dhfile". Contents of host files are as follows

$ cat chfile
#This file contains all slaves as well as master node
localhost
200.40.70.193

$cat dhfile
#This file contains all slave nodes
200.40.70.193

and the command line I am using is

$ mpirun -np 1 -hostfile chfile launcher -hostfile dhfile

but this is not what I want.
   I don't know in advance which and how many remote nodes can be there.
Dynamically nodes may be added and requested to serve the master. So I am
assuming that I have only local machine where I will invoke launcher
program. When one remote node gets added launcher program will launch one
"slave" in local machine and one "rslave" in remote machine.

Is there any other way to do this.

Thanks.

Regards,

On Mon, Jun 29, 2009 at 10:49 AM, vipin kumar <vipinkumar41_at_[hidden]>wrote:

> Hi all,
>
> I am trying to spawn dynamically processes in remote as well as local
> machine using MPI::Intracomm::Spawn_multiple. I am using MPI::Info object to
> tell where to launch processes using "host" key and "<ip_address>" as its
> value but but I am getting the error
>
> --------------------------------------------------------------------------
> There are no allocated resources for the application
> slaveprocess
> that match the requested mapping:
>
>
> Verify that you have mapped the allocated resources properly using the
> --host or --hostfile specification.
> --------------------------------------------------------------------------
>
> I tried with "<hostname>" too.
> but its not working.
>
> It works fine if I give the value "localhost" to "host:" key. It launches
> successfully processes in local machine.
>
> any help will be greatly appreciated.
>
> Regards,
> --
> Vipin K.
> Research Engineer,
> C-Dot, Bangalore, India
>

-- 
Vipin K.
Research Engineer,
C-DOTB, India