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

transformations: add memref-stream-interleave #2823

Merged
merged 11 commits into from
Jul 4, 2024

Conversation

superlopuh
Copy link
Member

No description provided.

@superlopuh superlopuh added the transformations Changes or adds a transformatio label Jul 2, 2024
@superlopuh superlopuh self-assigned this Jul 2, 2024
@superlopuh superlopuh changed the base branch from main to sasha/memref_stream/newline-syntax July 2, 2024 18:00
Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.83%. Comparing base (f909aba) to head (fdf7c8b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2823      +/-   ##
==========================================
- Coverage   89.83%   89.83%   -0.01%     
==========================================
  Files         396      397       +1     
  Lines       49139    49194      +55     
  Branches     7533     7549      +16     
==========================================
+ Hits        44143    44191      +48     
- Misses       3805     3808       +3     
- Partials     1191     1195       +4     

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

Base automatically changed from sasha/memref_stream/newline-syntax to main July 2, 2024 21:56
Copy link
Collaborator

@nazavode nazavode left a comment

Choose a reason for hiding this comment

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

Beautiful.

+ tuple(
AffineExpr.dimension(i)
for i in range(
interleave_bound_index + 1, m.data.num_dims + 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Where do these numbers stem from?

Copy link
Member Author

Choose a reason for hiding this comment

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

The idea is that there is an extra dimension added somewhere in the middle of the affine map domain. This is the slice of the domain after the updated value, so it's going from inserted_index + 1 to old_len + 1 inclusive.

@superlopuh superlopuh marked this pull request as draft July 3, 2024 13:14
@superlopuh
Copy link
Member Author

I just realized a design flaw in this representation while implementing the lowering to loops, I'll try to finish an end-to-end lowering and see whether this is still the right approach.

@superlopuh superlopuh marked this pull request as ready for review July 4, 2024 07:02
@superlopuh
Copy link
Member Author

Lowering works OK, let's merge this and keep going.

@superlopuh superlopuh merged commit a8fe305 into main Jul 4, 2024
10 checks passed
@superlopuh superlopuh deleted the sasha/memref_stream/lower-interleaved branch July 4, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
transformations Changes or adds a transformatio
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants