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

compiler: prevent multisubdimension expressions duplicates #2230

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

mloubout
Copy link
Contributor

Can't easily make a test for it here. Breaks abox with extra dims

@mloubout mloubout force-pushed the msd-pass-fix branch 2 times, most recently from 3a33044 to 6f4453e Compare October 11, 2023 13:05
@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Merging #2230 (b3b85e5) into master (617ce82) will decrease coverage by 0.01%.
The diff coverage is 40.00%.

@@            Coverage Diff             @@
##           master    #2230      +/-   ##
==========================================
- Coverage   87.04%   87.04%   -0.01%     
==========================================
  Files         229      229              
  Lines       40930    40935       +5     
  Branches     7492     7493       +1     
==========================================
+ Hits        35627    35631       +4     
  Misses       4692     4692              
- Partials      611      612       +1     
Files Coverage Δ
devito/passes/clusters/implicit.py 79.41% <40.00%> (-2.04%) ⬇️

... and 1 file with indirect coverage changes

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 a test is being added to PRO right?

Approved!

@@ -106,6 +107,13 @@ def callback(self, clusters, prefix):
# The "implicit expressions" created for the MultiSubDomain
exprs, dims, sub_iterators = make_implicit_exprs(d.msd, c)

# Make sure the "implicit expressions" aren't scheduled in
# an inner loop. E.g schedule both for `t, xi, yi` and `t, d, xi, yi`
Copy link
Contributor

Choose a reason for hiding this comment

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

what do you mean by "both" here?
I think the example could be a bit more clear here
OK in another PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For clusters with itspace t, xi, yi and t, d, xi, yi then this statement will be reached twice during the self.process once for t as a prefix and once for t, d

@mloubout mloubout merged commit 074df11 into master Oct 12, 2023
32 checks passed
@mloubout mloubout deleted the msd-pass-fix branch October 12, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants