LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Harshan Nishantha (hn44447_at_[hidden])
Date: 2009-07-30 04:35:50


Davide, thank you very much for your valuable comment.

On Thu, Jul 30, 2009 at 12:52 PM, Davide Cesari <dcesari_at_[hidden]> wrote:

> Harshan Nishantha ha scritto:
>
> hi,
>>
>> In mpi we can get host name by using, MPI_Get_processor_name();
>> Is there a way to get the IP address ?
>>
>> thanks
>>
>
> Well, MPI is a parallel computing infrastructure that makes no assumption
> on the underlying network connection, which must not necessarily use IP
> protocol, so it does not provide any IP-related function (and the result of
> MPI_Get_processor_name is not guaranteed, AFAIK, to be a valid IP hostname),
> so if you really need that, you should use the standard libc functions, for
> this purpose.
> Best wishes, Davide
>
> --
> ============================= Davide Cesari ============================
> Servizio IdroMeteorologico ARPA Emilia Romagna
> Area Modellistica Numerica e Radarmeteorologia
> Phone/Fax: +39 051525926/+39 0516497501
> E-mail: dcesari_at_[hidden]
> Home page: http://www.webalice.it/o.drofa/davide/
> Address: ARPA-SIM, Viale Silvani 6, 40122 Bologna, Italy
> ========================================================================
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>