Newsgroups: comp.parallel.mpi
From: cesari@inf.ethz.ch (Giovanni Cesari)
Subject: timing with MPICH on WS
Organization: Dept. Informatik, Swiss Federal Institute of Technology
Date: 7 Jun 1996 13:18:11 GMT
Message-ID: <4p9a6j$dne@neptune.ethz.ch>

I'm using MPICH on a network of SPARC workstations and I have the following 
problem with timing:
my algorithms  are implemented using a master slave approach.
 

What I would like is somethink like:

if (myid == 0) {
  t0 = time();
  send task to slaves;
  receive results;
  t1 = time();
  t2 = t1 - t0;
}

If now I use the wall clock MPI_Wtime I measure also 
the load on the workstations due to other users.
On the other side, if I use clock() I don't measure the
time needed by the slaves.
The manual doesn't help me.

Any suggestion ?
On the Paragon for ex., with NX I can use dclock().

Thank you very much for your answer.

Giovanni

=============================================================================
Giovanni Cesari
Institute for Theoretical Computer Science      Phone: +41/1/632 6766
ETH-Z                                           fax:   +41/1/632 1172
8092 Zurich, Switzerland                        e-mail:cesari@inf.ethz.ch
=============================================================================


  	





