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: Misc improvements to code generation #2516

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

FabioLuporini
Copy link
Contributor

In essence, this is a batch of tweaks to support GPU features in PRO

@@ -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):
Copy link
Contributor Author

@FabioLuporini FabioLuporini Jan 14, 2025

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

Copy link

codecov bot commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 76.92308% with 45 lines in your changes missing coverage. Please review.

Project coverage is 87.27%. Comparing base (603f6a7) to head (82fa700).

Files with missing lines Patch % Lines
devito/arch/archinfo.py 42.42% 19 Missing ⚠️
devito/ir/support/properties.py 76.74% 6 Missing and 4 partials ⚠️
devito/passes/clusters/misc.py 78.57% 5 Missing and 4 partials ⚠️
devito/arch/compiler.py 42.85% 4 Missing ⚠️
tests/test_mpi.py 60.00% 2 Missing ⚠️
devito/types/dense.py 66.66% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

devito/arch/archinfo.py Show resolved Hide resolved
devito/arch/compiler.py Show resolved Hide resolved

# 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]]
Copy link
Contributor

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

Copy link
Contributor Author

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!

Copy link
Contributor

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 ?

Copy link
Contributor

@mloubout mloubout left a 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.

devito/passes/clusters/misc.py Show resolved Hide resolved
devito/passes/clusters/misc.py Outdated Show resolved Hide resolved
devito/types/basic.py Show resolved Hide resolved
devito/arch/archinfo.py Show resolved Hide resolved
@@ -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
Copy link
Contributor

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

Copy link
Contributor

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.

from test_dse import TestTTI

@mloubout mloubout force-pushed the async-loads-final-2 branch from 72f4701 to 82fa700 Compare January 14, 2025 19:30
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.

3 participants