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: (memref_stream) Add some more verification for generic op #2721

Merged
merged 4 commits into from
Jun 17, 2024

Conversation

superlopuh
Copy link
Member

We currently don't check as much as we could, this PR adds some more verification.

@superlopuh superlopuh added the dialects Changes on the dialects label Jun 13, 2024
@superlopuh superlopuh self-assigned this Jun 13, 2024
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.94%. Comparing base (b61e65d) to head (5583f26).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2721   +/-   ##
=======================================
  Coverage   89.94%   89.94%           
=======================================
  Files         367      367           
  Lines       47279    47298   +19     
  Branches     7219     7227    +8     
=======================================
+ Hits        42523    42543   +20     
  Misses       3644     3644           
+ Partials     1112     1111    -1     

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

Comment on lines 544 to 547
if m.data.num_symbols:
raise NotImplementedError(
f"Symbols currently not implemented in {self.name} indexing maps"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I find this strange in a verifier; what is not implemented? The lowering?

Comment on lines 564 to 568
if min_dims not in (len(iterator_types), num_parallel):
raise VerifyException(
"The number of dims in output indexing maps must be "
f"{len(iterator_types)} or {num_parallel}"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This one bugs me too. I guess this is about special handling of reductions? Can you explain what it means to have len(iterator_types) dimensions in the output indexing map in the presence of reduction iterators?

Copy link
Collaborator

@PapyChacal PapyChacal left a comment

Choose a reason for hiding this comment

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

Some questions

@superlopuh superlopuh requested a review from PapyChacal June 14, 2024 16:32
@superlopuh
Copy link
Member Author

I added a comment, and moved the not implemented error, does that make it clearer?

@superlopuh superlopuh merged commit 4579ea7 into main Jun 17, 2024
10 checks passed
@superlopuh superlopuh deleted the sasha/memref_stream/verify-imperfect branch June 17, 2024 15:27
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
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants