-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[PIPELINER] Use AttrHelper (mostly NFC) #6437
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
Conversation
* Converted ad-hoc attribute handling to AttrHelpers to ensure consistency * Changed `tt_latency` to `tt.latency` in AssignLatencies
@pawelszczerbuk is this change correct? I couldn't see where |
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 seems like a good thing. Can we delete kLatencyAttrName
now?
} | ||
} | ||
|
||
DenseMap<Operation *, int> mlir::triton::deserializeLatencies(Operation *op) { | ||
auto helper = op->getContext() |
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.
suggestion: can you add a shorthand for this in Triton/Dialect.h?
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.
Yes! added.
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.
posted these upstream here
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.
well.. I guess Medhi and River are not big fans..
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.
They tend to be picky :P
Not sure as there is still some ambiguity with |
* Converted ad-hoc attribute handling to AttrHelpers to ensure consistency * Changed `tt_latency` to `tt.latency` in AssignLatencies?
* Converted ad-hoc attribute handling to AttrHelpers to ensure consistency * Changed `tt_latency` to `tt.latency` in AssignLatencies?
tt_latency
tott.latency
in AssignLatencies?