-
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
compiler: Check DeviceFunctions for SubDimensions #2279
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2279 +/- ##
==========================================
- Coverage 86.82% 86.82% -0.01%
==========================================
Files 229 229
Lines 42441 42450 +9
Branches 7868 7870 +2
==========================================
+ Hits 36851 36858 +7
- Misses 4931 4933 +2
Partials 659 659 ☔ View full report in Codecov by Sentry. |
devito/passes/iet/misc.py
Outdated
if d.root not in dimensions | ||
and names.count(d.root.name) < 2} | ||
|
||
if isinstance(iet, DeviceFunction): |
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.
Might be better off lifting out rename_subdims
and single dispatch on iet
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.
I agree
You may call it _abridge_subdim_names
should we ever wanted to extend abdridging with more sort of objects (or use it to rename Temps such that they appear in order, for example)
I also agree we need singledispatch
here
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.
GTG now, thanks
Slight improvement to the coverage of
abridge_dim_names
as a couple of things were getting missed.