Skip to content
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

Merged
merged 10 commits into from
Nov 10, 2020
Merged

Fix halo update hoisting #1494

merged 10 commits into from
Nov 10, 2020

Conversation

Leitevmd
Copy link
Contributor

@Leitevmd Leitevmd commented Nov 5, 2020

PR to fix #1483

@Leitevmd Leitevmd changed the title WIP solving issue #1483 WIP fix halo update hoisting Nov 5, 2020
@mloubout mloubout added bug-C bug in the generated code MPI mpi-related labels Nov 6, 2020
Copy link
Contributor

@FabioLuporini FabioLuporini left a 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 ?

# 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)
Copy link
Contributor

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

@Leitevmd Leitevmd changed the title WIP fix halo update hoisting Fix halo update hoisting Nov 9, 2020
@Leitevmd Leitevmd marked this pull request as ready for review November 9, 2020 13:16
devito/passes/iet/mpi.py Outdated Show resolved Hide resolved
tests/test_mpi.py Show resolved Hide resolved
Copy link
Contributor

@FabioLuporini FabioLuporini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks!

@FabioLuporini FabioLuporini merged commit 9e69829 into devitocodes:master Nov 10, 2020
@FabioLuporini
Copy link
Contributor

Thanks, merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-C bug in the generated code compiler MPI mpi-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Halo update outside time iterations
3 participants