Skip to content

Muelu Tutorial; when to use comm->barrier()? #14046

Answered by jhux2
abodado asked this question in Q&A
Discussion options

You must be logged in to vote

One barrier is sufficient, and adding more isn't useful. At one time long ago, maybe that wasn't the case.

Barriers are useful if you want to synchronize all MPI ranks in a communicator. In MueLu examples, we do that to ensure all ranks have finished a section of code that's being timed.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@abodado
Comment options

Answer selected by abodado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants