Skip to content

Conversation

@ZoeLeibowitz
Copy link
Contributor

Add MapNodes(..., mode='groupby') back, which was dropped in #2477 and I didn't see this. It is useful for the PETSc lowering.

@codecov
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.36%. Comparing base (5a15896) to head (0dae417).
Report is 17 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2502   +/-   ##
=======================================
  Coverage   87.35%   87.36%           
=======================================
  Files         238      238           
  Lines       45574    45583    +9     
  Branches     4035     4037    +2     
=======================================
+ Hits        39813    39822    +9     
  Misses       5079     5079           
  Partials      682      682           

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

# Replace the outermost `Iteration` with a `Call`
callback = Callable('solver', iters[0], 'void', ())
processed = Transformer({iters[0]: Call(callback.name)}).visit(block1)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is fine!
Nipick: Maybe you could add:

+assert len(iters) == 3
assert str(processed) == 'solver();'

but sure it is not needed.

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 have assert str(processed) == 'solver();' just below

@georgebisbas georgebisbas changed the title compiler: Add mode to MapNodes visitor compiler: Add 'groupby' mode to MapNodes visitor Dec 19, 2024
@FabioLuporini FabioLuporini merged commit c04071a into master Dec 23, 2024
31 checks passed
@FabioLuporini FabioLuporini deleted the groupby branch December 23, 2024 13:15
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.

6 participants