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

dialects: (dmp) Fix dmp-to-mpi lowering to work for n-d #1132

Merged
merged 8 commits into from Jun 14, 2023

Conversation

AntonLydike
Copy link
Collaborator

@AntonLydike AntonLydike commented Jun 14, 2023

This patch generalizes the mpi rank calcualtions from 1d to nd.

@AntonLydike AntonLydike added the dialects Changes on the dialects label Jun 14, 2023
@AntonLydike AntonLydike self-assigned this Jun 14, 2023
@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Patch coverage: 9.67% and project coverage change: -0.17 ⚠️

Comparison is base (c41f786) 87.26% compared to head (1dfdbe0) 87.10%.

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              
Impacted Files Coverage Δ
xdsl/dialects/experimental/dmp.py 50.49% <ø> (+0.98%) ⬆️
xdsl/transforms/experimental/dmp/decompositions.py 56.86% <0.00%> (ø)
xdsl/transforms/experimental/dmp/scatter_gather.py 30.00% <7.69%> (-3.34%) ⬇️
...sforms/experimental/dmp/stencil_global_to_local.py 23.94% <10.41%> (-1.78%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines +53 to +56
grid_tuple = grid.as_tuple()
if len(grid_tuple) == 1:
grid_tuple = (grid_tuple[0], 1)
assert len(grid_tuple) == 2
Copy link
Contributor

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 ?

Copy link
Collaborator Author

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

@AntonLydike AntonLydike merged commit b913aad into main Jun 14, 2023
12 checks passed
@AntonLydike AntonLydike deleted the anton/dmp-2d-grid branch June 14, 2023 16:13
cigarichard pushed a commit to cigarichard/xdsl that referenced this pull request Jun 17, 2023
…1132)

This patch generalizes the mpi rank calcualtions from 1d to nd.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialects Changes on the dialects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants