Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] Regarding the execution time calculation
From: Eugene Loh (eugene.loh_at_[hidden])
Date: 2012-05-05 12:04:26


MPI_Wtime() returns the elapsed time since some arbitrary time in the
past. It is a measure of "wallclock" time, not of CPU time or anything.

On 5/4/2012 3:08 PM, Jingcha Joba wrote:
> Lets say I have a code like this
> start = MPI_Wtime()
> <Run the solver>
> stop = MPI_Wtime();
> What happens when right after start=MPI_Wtime(), the timeslice of the
> process ( from the operating system's perspective not the MPI
> process) is over, and the operating system schedules a next process,
> after saving the context switch, and eventually this application would
> resume, once its process is scheduled back by the os.
> Does MPI_Wtime() takes care of storing/updating the time when this
> happens?
> Of course, part of the answer lies in the implementation of Wtime.
>
> On Fri, May 4, 2012 at 3:53 AM, Jeff Squyres <jsquyres_at_[hidden]
> <mailto:jsquyres_at_[hidden]>> wrote:
>
> On May 3, 2012, at 2:02 PM, Jingcha Joba wrote:
>
> > Not related to this question , but just curious, is Wtime
> context switch safe ?
>
> Not sure exactly what you're asking here...?
>
> --
> Jeff Squyres
> jsquyres_at_[hidden] <mailto:jsquyres_at_[hidden]>
> For corporate legal information go to:
> http://www.cisco.com/web/about/doing_business/legal/cri/
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden] <mailto:users_at_[hidden]>
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users