[mpich-discuss] measuring time in mpi program
Pavan Balaji
balaji at mcs.anl.gov
Fri Feb 25 17:32:38 CST 2011
On 02/25/2011 04:24 PM, Jain, Rohit wrote:
> We have lot of 'wait-send' and 'wait-receive' code at lot of places, and
> we need to measure time spent in this sections. We currently use
> gettimeofday() function to measure this time. Would MPI_WTime be faster
> than that?
MPI_Wtime will internally use an appropriate timer -- gettimeofday or a
more accurate timer if available. You can look through the users' guide
for more information for appropriate configure options to pick a more
accurate timer.
-- Pavan
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the mpich-discuss
mailing list