LAM does not write information to /tmp about where processes have been
launched.
There is a clunky way to do it -- the "mpitask -gps" command can be
used to find out where currently-running MPI processes are running.
The first token of the output lines is "nX", where X is the LAM
universe node number where the process is running. You can translate
that into an IP address via the "lamnodes -i" command.
Hackish, but it would work.
On Mar 23, 2005, at 8:01 AM, Terry Frankcombe wrote:
>
> Progammatically, the java code that calls mpirun knows what it spawns
> where.
> If you can modify that code you can do anything you want with that
> list (write
> it to a file or some other IPC method). Or you can get the spawned
> tasks to
> write some ID info somewhere.
>
> If you can't dig into the codes, doesn't mpirun write some stuff to
> /tmp
> regarding what has been spawned where?
>
>
>> let me describe task in detail.
>>
>> After logging in to a system, say comp1, I fire a command to launch
>> the
>> java application
>> on k number of hosts, out of m number of hosts running the lamd (m >=
>> k). The java wrapper
>> for running the mpi program calls mpirun of LAM to start programs on
>> those machines with
>> some environment variables for running java binary there.
>>
>> Now, there is another java program running on comp1 which requires to
>> talk with the
>> virtual machines of first java program instances for collecting
>> information. For this
>> purpose, It needs to know IP address of the machines which are
>> actually
>> running the
>> distributed java program.
>>
>> The question is how to access the list of IP addresses of hosts
>> assigned
>> for
>> running first java program from second java program.
>>
>>
>> Terry Frankcombe wrote:
>>
>>> I don't understand the question. Which process needs to know the
>>> IPs? One
> of
>>> the MPI processes, or an external (non-MPI) process that wants to
>>> know
>>> something about where the other app is running?
>>>
>>>
>>>
>>>
>>>> In a homogeneous network of LAM + Solaris machines, A java tool
>>>> needs IP addresses of all the nodes running a perticular Java +
>>>> mpJava
>>>> program (mpJava is a java wrapper for LAM). The actual program is
>>>> not
>>>> know till run-time and hence it is not possible to alter it to get
>>>> the
>>>> nodes. Is there a way to obtain list of nodes running that program?
>>>> It
>>>> is to be done programatically, but any other known method should
>>>> help.
>>>>
>>>> TIA,
>>>> Pratik Y. Mehta
>>>> _______________________________________________
>>>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>>>
>>>
>>
>> _______________________________________________
>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|