LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2005-02-09 08:13:14


On Feb 9, 2005, at 5:01 AM, Elie Choueiri wrote:

> I'll try MPI_Get_processor_name () when I get back, just to know how
> it works.

Note that this is the recommended portable way to get your hostname.
It may be different on every MPI implementation, but it's generally
something that is obviously representing each node. In LAM's case, for
example, it's usually a wrapper around hostname() (BProc is a little
different, but you generally get the host number back of the node that
you're on; -1 if you're on the head node, IIRC).

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/