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) A bunch of fixes in the lowering #1061

Merged
merged 13 commits into from Jun 3, 2023

Conversation

AntonLydike
Copy link
Collaborator

No description provided.

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

codecov bot commented Jun 2, 2023

Codecov Report

Patch coverage: 6.97% and project coverage change: -0.02 ⚠️

Comparison is base (d896723) 86.92% compared to head (c4f2a0f) 86.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1061      +/-   ##
==========================================
- Coverage   86.92%   86.90%   -0.02%     
==========================================
  Files         129      130       +1     
  Lines       19703    20452     +749     
  Branches     2981     3112     +131     
==========================================
+ Hits        17126    17774     +648     
- Misses       2070     2169      +99     
- Partials      507      509       +2     
Impacted Files Coverage Δ
xdsl/dialects/experimental/dmp.py 49.27% <0.00%> (ø)
xdsl/transforms/experimental/dmp/scatter_gather.py 33.33% <ø> (ø)
...sforms/experimental/dmp/stencil_global_to_local.py 25.50% <2.85%> (+1.00%) ⬆️
xdsl/transforms/lower_mpi.py 92.36% <100.00%> (+0.02%) ⬆️

... and 27 files with indirect coverage changes

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

@@ -211,7 +214,7 @@ def _emit_memref_counts(
if not all(dim.value.data >= 0 for dim in ssa_val.typ.shape.data):
raise RuntimeError("MPI lowering does not support unknown-size memrefs!")

size = sum(dim.value.data for dim in ssa_val.typ.shape.data)
size = prod(dim.value.data for dim in ssa_val.typ.shape.data)
Copy link
Member

Choose a reason for hiding this comment

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

seems like a useful helper to add on the type, potentially?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Absolutely!

cst0 = arith.Constant.from_int_and_width(0, idx)
cst1 = arith.Constant.from_int_and_width(1, idx)

@Builder.implicit_region([idx, idx])
Copy link
Member

Choose a reason for hiding this comment

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

yay! clients!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's so wonderful to use! Thanks for adding it!

@AntonLydike AntonLydike merged commit df6a360 into main Jun 3, 2023
12 checks passed
@AntonLydike AntonLydike deleted the anton/dmp-scatter-gather-fix branch June 3, 2023 13:12
cigarichard pushed a commit to cigarichard/xdsl that referenced this pull request Jun 17, 2023
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

3 participants