-
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
[TensorIR] Cross-Thread Reduction #9360
[TensorIR] Cross-Thread Reduction #9360
Conversation
I will do another round of review next week! |
Will do the review tomorrow |
Finally got some time for a detailed code review! Will take over this PR and try to get it merged! |
3ca0e56
to
a560a9b
Compare
Did a pass over analysis and misc changes |
Love the PR and very comprehensively tested implementation ❤️ |
4ac6c65
to
6a162d7
Compare
@Hzfengsy @MasterJH5574 Should be good to go. Please take another look :-) |
@Hzfengsy Could you take another look? Junru's polishing looks very good, but I myself as the author cannot approve this PR 😅. |
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 @MasterJH5574 for such a great effort on this PR.
* [TensorIR] Cross-Thread Reduction * Code revision on analysis and misc * Refactor TransformReductionBlock * Refactor code organization * Address comment * Use `std::make_tuple` Co-authored-by: Junru Shao <[email protected]>
* [TensorIR] Cross-Thread Reduction * Code revision on analysis and misc * Refactor TransformReductionBlock * Refactor code organization * Address comment * Use `std::make_tuple` Co-authored-by: Junru Shao <[email protected]>
* [TensorIR] Cross-Thread Reduction * Code revision on analysis and misc * Refactor TransformReductionBlock * Refactor code organization * Address comment * Use `std::make_tuple` Co-authored-by: Junru Shao <[email protected]>
* [TensorIR] Cross-Thread Reduction * Code revision on analysis and misc * Refactor TransformReductionBlock * Refactor code organization * Address comment * Use `std::make_tuple` Co-authored-by: Junru Shao <[email protected]>
* [TensorIR] Cross-Thread Reduction * Code revision on analysis and misc * Refactor TransformReductionBlock * Refactor code organization * Address comment * Use `std::make_tuple` Co-authored-by: Junru Shao <[email protected]>
hi @MasterJH5574 , do we currently only support block reduction with warp level |
I've found the related implementation, thanks. |
Hi community! This PR adds cross-thread reduction support for TensorIR. After this PR, cross-thread reduction patterns in TIR can be successfully lowered.
cc @Hzfengsy @vinx13 @comaniac @junrushao1994 @jcf94 @jinhongyii @spectrometerHBH @tqchen
Co-authored-by: Wuwei Lin [email protected]
Co-authored-by: Junru Shao [email protected]
Co-authored-by: Siyuan Feng [email protected]
Co-authored-by: Hongyi Jin [email protected]
Co-authored-by: Bohan Hou [email protected]