Skip to content

Conversation

@FabioLuporini
Copy link
Contributor

Admittedly two orthogonal things

@codecov
Copy link

codecov bot commented Jul 24, 2024

Codecov Report

Attention: Patch coverage is 78.37838% with 8 lines in your changes missing coverage. Please review.

Project coverage is 86.98%. Comparing base (cf59cbb) to head (1efe5d4).

Files Patch % Lines
devito/passes/clusters/blocking.py 46.66% 4 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2426      +/-   ##
==========================================
- Coverage   86.99%   86.98%   -0.01%     
==========================================
  Files         236      236              
  Lines       44789    44811      +22     
  Branches     8351     8359       +8     
==========================================
+ Hits        38962    38981      +19     
- Misses       5099     5100       +1     
- Partials      728      730       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Minor comments, good to me

'x': ('*', 1, 1),
'y': (1, '*', 1),
'z': (1, 1, '*'),
'xy': ('*', '*', 1),
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add the xz, yz, xyz too to be generic

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I avoided them deliberately because I know they cannot provide better performance, but if you want, I can put them in

if topology and len(topology) == len(self.shape):
self._topology = topology
else:
self._topology = None
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess could to pad with 1 if only partial provided but probably better yeah. Maybe add a warning so user knows input been ignored

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just thought that padding with 1 is worse because it might lead to crashes (by eg creating a 1,1,1 topology)

Copy link
Contributor Author

@FabioLuporini FabioLuporini Jul 25, 2024

Choose a reason for hiding this comment

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

Added a warning

self.umt_sparse = UnboundTuple(*par_tile[0], 1)
if par_tile.is_multi:
# The user has supplied one specific par-tile per blocked nest
self.umt = par_tile
Copy link
Contributor

Choose a reason for hiding this comment

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

self.umt = par_tile can be moved outside the if

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@mloubout mloubout merged commit cd6ffbb into master Jul 25, 2024
@mloubout mloubout deleted the tweak-tuner branch July 25, 2024 14:10
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.

4 participants