-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor functions to use MPI_Allreduce
#2474
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I think there is a corner case for which I suggest a solution.
@heplesser I didn't think of that corner case, thanks for pointing it out. However, I don't agree with moving the local non-equality check into the In the case where there is a local non-equality, this has to be communicated to all ranks. I've taken your suggestion of using |
@hakonsbm You got a point. My idea was to isolate the "-inf" magic entirely in the |
@mlober Friendly ping |
Hi, sorry for the super late reply, I completely missed this. I looked through everything and I like your solution. Thanks for the improvement! |
Fixes #1925 by refactoring
MPIManager::any_true()
andRandomManager::check_rng_synchrony()
to useMPI_Allreduce
.