-
Notifications
You must be signed in to change notification settings - Fork 230
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: Misc improvements to code generation #2516
base: master
Are you sure you want to change the base?
Conversation
@@ -540,19 +544,3 @@ def reduce_properties(clusters): | |||
properties[d] = normalize_properties(properties.get(d, v), v) | |||
|
|||
return Properties(properties) | |||
|
|||
|
|||
def tailor_properties(properties, ispace): |
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.
note for reviewers: finally moved to ir/support/properties as promised in an old PR
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2516 +/- ##
==========================================
- Coverage 87.29% 87.27% -0.02%
==========================================
Files 238 238
Lines 45749 45875 +126
Branches 4059 4073 +14
==========================================
+ Hits 39937 40039 +102
- Misses 5127 5148 +21
- Partials 685 688 +3 ☔ View full report in Codecov by Sentry. |
|
||
# Process the `weak` part of the key | ||
for i in reversed(range(len(k.weak) + 1)): | ||
choosable = [e for e in candidates if m[e].weak[:i] == k.weak[:i]] |
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 dont like this var name but ok
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.
the choosable among the candidates -- I think it's OK! why don't you like it? Im open to alternatives!
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.
hm, not sure....maybe like filtered
, valid
, eligible
?
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.
Some minor comments but looks straightforward to me.
@@ -21,7 +21,10 @@ | |||
from devito.tools import Bunch | |||
|
|||
from examples.seismic.acoustic import acoustic_setup | |||
from tests.test_dse import TestTTI | |||
try: | |||
from tests.test_dse import TestTTI |
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.
why not just from .test_dse import TestTTI
. If this file is run, test_dse exists there should not be any case where this cannot be imported 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.
Actually just from test_dse import TestTTI
see e.g.
devito/tests/test_autotuner.py
Line 153 in da2c9a4
from test_dse import TestTTI |
1c11eae
to
72f4701
Compare
72f4701
to
82fa700
Compare
In essence, this is a batch of tweaks to support GPU features in PRO