-
Notifications
You must be signed in to change notification settings - Fork 229
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
Fix halo update hoisting #1494
Fix halo update hoisting #1494
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.
So turns out you have a nice patch after all?
Do all tests pass?
Can you add all of the new tests that you've shown in #1483 ?
devito/passes/iet/mpi.py
Outdated
# E.g., `dep=W<f,[x]> -> R<f,[x-1]>` and `candidates=(time, x)` => False | ||
# E.g., `dep=W<f,[t1, x, y]> -> R<f,[t0, x-1, y+1]>`, `dep.cause={t,time}` and | ||
# `candidates=(x,)` => True | ||
return (all(d in dep.distance_mapper for d in candidates) and | ||
not dep.cause & candidates) | ||
not dep.cause & candidates and | ||
not loc_dims & candidates) |
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.
this looks about the right thing to do
Merge conflicts in devito/passes/iet/mpi.py
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.
Perfect, thanks!
Thanks, merged |
PR to fix #1483