The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

Question about counting Time with MPI_WTIME

Open discussion regarding features, bugs, issues, vendors, etc.

Question about counting Time with MPI_WTIME

Postby arad » Sun Jun 08, 2008 8:14 am

Hello guys

I want to count the time needed for the factorization of a 1000 x 1000 matrix with the parallel routine PDGEQRF... so I use the following

T1=MPI_WTIME()
CALL PDGEQRF(.....)
T2=MPI_WTIME()

and then I call the T2-T1.. however it returns 0, while if I call only the T2 it returns a satisfying result... the problem is that T2 includes the time for all the preparation , the matrix distribution over the process grid etc etc..

I want to count only the time for the factorization of the routine and avoid the time for distributing the 1000 x 1000 matrix.. any advises ?

THANKS
arad
 
Posts: 17
Joined: Wed Apr 16, 2008 4:12 pm

Re: Question about counting Time with MPI_WTIME

Postby buttari » Mon Jun 09, 2008 10:50 am

arad wrote:Hello guys

I want to count the time needed for the factorization of a 1000 x 1000 matrix with the parallel routine PDGEQRF... so I use the following

T1=MPI_WTIME()
CALL PDGEQRF(.....)
T2=MPI_WTIME()

and then I call the T2-T1.. however it returns 0, while if I call only the T2 it returns a satisfying result... the problem is that T2 includes the time for all the preparation , the matrix distribution over the process grid etc etc..

I want to count only the time for the factorization of the routine and avoid the time for distributing the 1000 x 1000 matrix.. any advises ?

THANKS


Hello,
what you do has to work. If it returns something strange it probably means that nothing happens inside your pdgeqrf. However I recommend you to do an mpi_reduce to find the maximum value of t2 since it may be different on different processors.

alfredo
buttari
 
Posts: 51
Joined: Tue Jul 11, 2006 2:11 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 8 guests