On Ter, 2004-08-24 at 10:28 -0500, Brian Barrett wrote:
> On Aug 24, 2004, at 7:35 AM, Mauricio Lima Pilla wrote:
>
> > Sorry if it's been asked before (I couldn't find an answer in the
> > archives, maybe because I'm not 100% clear of what I'm looking for):
> >
> > Is there a way for getting a hash or something alike for a host id? I
> > know there's MPI_Get_processor_name, however it returns the host name
> > from the local context and it may be duplicated if we cross boundaries
> > and the returned host name does not have also its domain name (like
> > dynamic applications running in a grid, where we have c1.something.com
> > and c1.univ.edu).
> >
> > Another drawback of MPI_Get_processor_name is that it returns a string.
> > An unique, numeric hash would be better to handle for my application.
>
> Outside of MPI_Get_processor_name, there really isn't a great way to
> get a globally unique identifier using MPI - this is outside of the
> scope of MPI. Also don't forget that in LAM/MPI,
> MPI_Get_processor_name returns the hostname, but in other MPI
> implementations, it may return something completely different.
>
> Brian
>
Hi Brian,
Right now, I am only interested in LAM/MPI, thus some non-portable way
of doing it would be OK too.
Thanks
Pilla
--
Mauricio Lima Pilla pilla_at_[hidden]
PhD -- CS Institute/UFRGS, Brazil
http://gppd.inf.ufrgs.br/~pilla
"I'm just very selective about the reality I choose to accept."
-- Calvin
|