[petsc-users] Should I synchronize processes explicitly, for instance using MPI_Barrier?

Cong Li solvercorleone at gmail.com
Sat Aug 17 06:49:52 CDT 2013


hi Matthew, Jed

Thank you very much for the answer and advise.

Cong


On Fri, Aug 16, 2013 at 10:18 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> Matthew Knepley <knepley at gmail.com> writes:
> > Never put in a barrier.
>
> Barriers serve no functional or correctness purpose in a
> properly-written pure-MPI code.  They are sometimes useful for debugging
> and sometimes necessary if you use despicable hacks like communicating
> through a side channel such as the file system.  If you're not putting
> yourself into that unenviable position, don't use barriers.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130817/b82888cb/attachment.html>


More information about the petsc-users mailing list