-
Notifications
You must be signed in to change notification settings - Fork 77
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
xdsl/dialects/memref_stream.py
Outdated
if m.data.num_symbols: | ||
raise NotImplementedError( | ||
f"Symbols currently not implemented in {self.name} indexing maps" | ||
) |
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.
I find this strange in a verifier; what is not implemented? The lowering?
xdsl/dialects/memref_stream.py
Outdated
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}" | ||
) |
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 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?
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.
Some questions
I added a comment, and moved the not implemented error, does that make it clearer? |
We currently don't check as much as we could, this PR adds some more verification.