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
========================================================================
|