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: Do block with partial data reuse #2094

Merged
merged 1 commit into from Mar 29, 2023

Conversation

FabioLuporini
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Mar 29, 2023

Codecov Report

Merging #2094 (000ae56) into master (7c022f9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #2094   +/-   ##
=======================================
  Coverage   87.80%   87.80%           
=======================================
  Files         221      221           
  Lines       38657    38665    +8     
  Branches     5000     5000           
=======================================
+ Hits        33941    33951   +10     
+ Misses       4165     4164    -1     
+ Partials      551      550    -1     
Impacted Files Coverage Δ
devito/passes/clusters/blocking.py 93.99% <100.00%> (+0.85%) ⬆️
tests/test_dimension.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -196,6 +196,10 @@ def callback(self, clusters, prefix):
if self._has_short_trip_count(d):
return clusters

# Pointless if there's no data reuse
if all(not self._has_data_reuse(c) for c in clusters):
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Slight preference for but not important

Suggested change
if all(not self._has_data_reuse(c) for c in clusters):
if not any(self._has_data_reuse(c) for c in clusters):

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree, I will change it in a subsequent branch

@FabioLuporini FabioLuporini merged commit d0e705d into master Mar 29, 2023
34 checks passed
@FabioLuporini FabioLuporini deleted the fixup-blocking-w-subdim branch March 29, 2023 11:49
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.

None yet

3 participants