-
Notifications
You must be signed in to change notification settings - Fork 14
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
don't skip master rank on receive in mpi_vector #192
don't skip master rank on receive in mpi_vector #192
Conversation
this is needed for ring-blocking in parareal
Can one of the admins verify this patch? |
@pint-jenkins test this please |
LGTM. @memmett any concerns? |
I feel like this should break something! Anyway, I think the better way to do this is the following (see LIBPFASST): the communicator should keep track of who is the "first" processor, and who is the "last" processor. Then in send/recv you can use modular arithmetic to figure out if you should in fact send/recv. |
+1. Alternatively, each time rank could have some notion of its pre- and On 17.04.15 15:43, Matthew Emmett wrote:
|
+1. Everyone is feeling the love today... Continuing with @pancetta, I guess we could come up with a very simple API now and have it implement a simple ring with first/last accounting. Let's just make sure we don't go over board and end up in YAGNI land. As it is right now, everyone calls send/recv and the logic to test for first/last is in the body of send/recv, so in that sense we're already somewhat in line with @pancetta (all ranks call send/recv). Suggestions for an API? How about, |
I'm closing this but have created a related issue #222. |
this is needed for ring-blocking in parareal