LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Brian Barrett (brbarret_at_[hidden])
Date: 2004-08-24 10:28:03


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

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have a LAM/MPI day: http://www.lam-mpi.org/