Newsgroups: comp.parallel.mpi
From: peter@usfca.edu (Peter Pacheco)
Subject: Re: Getting Hostnames
Organization: University of San Francisco
Date: 4 Oct 1995 16:03:03 GMT
Message-ID: <44ub7n$4e@noc.usfca.edu>

You might try

    int length;
    char name[MPI_MAX_PROCESSOR_NAME];

    MPI_Get_processor_name(name, &length);

Best wishes,
Peter Pacheco

Ramesh Chandrashekar (rcs@parcom.ernet.in) wrote:
: I have a written a lib. for hi-speed communication between nodes on our
: propietery network. In order to generalise this lib. (uses sockets and
: solaris threads), and to integrate it with MPI, I need to know if there
: is any way in MPI to determine, either the node-names, or the IP addresses
: of all the participating nodes. Reading from the .pg file is one way, but
: I am looking for something more elegant. Right now, the RANK to node-name
: mapping is hard-coded!

: Ramesh Chandrasekhar

