-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[microNPU] Expose compute cycle annotations to TIR lowering #11288
Conversation
Thanks @lhutton1! I'd suggest let us use "compute_cycles_hint" to make it closer to what it really is. Also, do you think that we would be able to add a RelayToTIR(...) hook test that shows the annotations ? |
0ac943b
to
84ad95a
Compare
Thanks for the review @manupa-arm, I've pushed those changes |
84ad95a
to
a8f9bb2
Compare
a8f9bb2
to
954c56e
Compare
@lhutton1 FYI, I think this patch needs to be rebased on top of #10959. If I run your patch locally on top of the copy compute reordering patch, it fails in
so we shouldn't merge it before the rebase is done, despite CI being green... |
Adds an AttrSttmt "compute_cycles_hint" to each NPU operation for later passes to consume. Change-Id: I09779bdab6de6ef2094db610bb20d6e052e68ee3
Change-Id: Iebd71e699522e92a28fd321ffdb41ed7924db4e0
Change-Id: Idcdcc8c8b5536c4732f297246b71aa8378a2732c
Change-Id: I007ba19732e16081fa2ea9baca40c64a653c93cf
Change-Id: Ib812c4151fab03f4c1adcc016b4e798003a22e5e
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.
Thanks @lhutton1, looks good (bar the rebase)!
954c56e
to
e5a7542
Compare
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.
LGTM!
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.
LGTM!
Thanks @lhutton1 @ekalda @NicolaLancellotti ! |
Adds an AttrSttmt "compute_cycles" to each NPU operation for later passes to consume.
cc @Mousius @NicolaLancellotti @ekalda @manupa-arm