Newsgroups: comp.parallel.mpi
From: atl@mathematik.uni-ulm.de (Andreas Leibl)
Subject: Re: Machine information in MPI
Organization: University of Ulm, SAI, Germany
Date: 1 Dec 1995 07:54:48 GMT
Message-ID: <49mcc8$m91@oracle.rz.uni-ulm.de>

Hallo Bill.

Bill Pearson (wrp@reed1.med.Virginia.EDU) wrote:

: 	I have recently converted a pvm program to MPI, but I have not
: found a parallel to the machine speed information that is available from
: PVM.  I run my application on networks of workstations, and I need
: to decompose the problem to fit the relative performance of different
: machines.  Is there an MPI call, or MPI extension, that will allow me
: to (1) encode information about the machines and (2) learn the names
: of all the machines, and their encoded information, by the managing (0)
: machine?

To get the name of the workstation a MPI process is running on: simple :-)
An example from my prg running under mpich/p4 on a DEC Alpha cluster:

  char procname[256];
  int namelen;

  /* Who am I? Where am I running? */
  MPI_Get_processor_name( procname, &namelen );
  fprintf( stdout, "Node %d: processor name %s \n", myID, procname );
  fflush( stdout );

I'd recommend that you maintain a list with processor names and their
speeds and choose the work according to the result of the abouth
function.

Greetings
               Andy

-- 
Andreas Leibl / grad. student / Dept. of Physics, University of Ulm, Germany
Theoretical Physics I / Room O25 - 406 / Phone 0731-502-2918
leibl@physik.uni-ulm.de             http://www.mathematik.uni-ulm.de/~atl/ 
atl@mathematik.uni-ulm.de           irc: croc (see you later, alligator :-))
-----------------------------------------------------------------------------
"File under ... Imagination, lack of."        -- Dr. Who, "Ghostlight"

