-
Notifications
You must be signed in to change notification settings - Fork 231
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
compiler: Patch race conditions due to storage-related dependencies #1903
Changes from 1 commit
57b6ca3
9912123
7681225
0781498
f55e68a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -603,6 +603,25 @@ def test_multi_access(): | |
assert np.all(w.data == w1.data) | ||
|
||
|
||
def test_issue_1901(): | ||
grid = Grid(shape=(2, 2)) | ||
time = grid.time_dim | ||
x, y = grid.dimensions | ||
|
||
usave = TimeFunction(name='usave', grid=grid, save=10) | ||
v = TimeFunction(name='v', grid=grid) | ||
|
||
eq = [Eq(v[time, x, y], usave)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nitpicking: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah that's fin,e I meant having There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, I see what you mean now... |
||
|
||
op = Operator(eq, opt='buffering') | ||
|
||
trees = retrieve_iteration_tree(op) | ||
assert len(trees) == 2 | ||
assert trees[1].root.dim is time | ||
assert not trees[1].root.is_Parallel | ||
assert trees[1].root.is_Sequential # Obv | ||
|
||
|
||
def test_everything(): | ||
nt = 50 | ||
grid = Grid(shape=(6, 6)) | ||
|
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.
typo depedence
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.
fixed