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
dialects: (dmp) Fix dmp-to-mpi lowering to work for n-d #1132
Conversation
46dd988
to
0971f34
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1132 +/- ##
==========================================
- Coverage 87.26% 87.10% -0.17%
==========================================
Files 142 142
Lines 21026 21072 +46
Branches 3164 3171 +7
==========================================
+ Hits 18349 18355 +6
- Misses 2170 2210 +40
Partials 507 507
☔ View full report in Codecov by Sentry. |
grid_tuple = grid.as_tuple() | ||
if len(grid_tuple) == 1: | ||
grid_tuple = (grid_tuple[0], 1) | ||
assert len(grid_tuple) == 2 |
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.
This looks weird? What is so special about grid
?
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.
This just makes the below code work for the horizontal and grid slicing
…1132) This patch generalizes the mpi rank calcualtions from 1d to nd.
This patch generalizes the mpi rank calcualtions from 1d to nd.