-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bump to xDSL supporting inplace bufferization #59
Conversation
2ee3853
to
6e0673c
Compare
Some more comments would seem useful.
tests/test_xdsl_op_correctness.py
Outdated
def test_inplace(): | ||
# Define a simple Devito Operator | ||
grid = Grid(shape=(3, 3)) |
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.
We probably want to check correct computations here then 🤔
Self-note: There's an issue with an unlowered memef.alloc |
Okay so, Devito here is doing that (turning on OpenMP for clarity): for (int x = x_M; x >= x_m; x -= 1)
{
#pragma omp parallel num_threads(nthreads)
{
#pragma omp for schedule(static,1)
for (int y = y_m; y <= y_M; y += 1)
{
u[t0][x + 1][y + 1] = r0*(-u[t0][x + 1][y + 1]) + r0*u[t0][x + 2][y + 1];
}
}
} So it sees there's a dependency only on |
Thanks for that @PapyChacal , does xdsl produce one level of parallelism + correct results? |
|
||
xdsl_op = Operator([eq0], opt="xdsl") | ||
xdsl_op.apply(time_M=5, dt=0.1) | ||
|
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.
add tests remider
@pytest.mark.xfail(reason="Cannot store to a field that is loaded from") | ||
def test_inplace(): | ||
def test_inplace_II(): |
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.
probably no meaning for this
For the record, this does not seem to happen in TTI |
Just bump to xDSL supporting inplace bufferization and support inplace
Stacked on: