Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Network connection check
From: Prentice Bisbal (prentice_at_[hidden])
Date: 2009-07-23 08:50:30


Jeff Squyres wrote:
> On Jul 22, 2009, at 10:05 AM, vipin kumar wrote:
>
>> Actually requirement is how a C/C++ program running in "master" node
>> should find out whether "slave" node is reachable (as we check this
>> using "ping" command) or not ? Because IP address may change at any
>> time, that's why I am trying to achieve this using "host name" of the
>> "slave" node. How this can be done?
>
>
> Are you asking to find out this information before issuing "mpirun"?
> Open MPI does assume that the nodes you are trying to use are reachable.
>

How about you start your MPI program from a shell script that does the
following:

1. Reads a text file containing the names of all the possible candidates
 for MPI nodes

2. Loops through the list of names from (1) and pings each machine to
see if it's alive. If the host is pingable, then write it's name to a
different text file which will be host as the machine file for the
mpirun command

3. Call mpirun using the machine file generated in (2).

--
Prentice