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 <jsquy...@cisco.com> 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
> jsquy...@cisco.com
> For corporate legal information go to:
> http://www.cisco.com/web/about/doing_business/legal/cri/
>
>
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>

Reply via email to