LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Terry Frankcombe (T.Frankcombe_at_[hidden])
Date: 2005-03-23 08:01:58


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/