-
Notifications
You must be signed in to change notification settings - Fork 24.9k
[inductor] fix triton bucketize mask propagation #159961
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
base: gh/v0i0/6/base
Are you sure you want to change the base?
Conversation
See https://hud.pytorch.org/pytorch/pytorch/commit/6b414f56a4a133a428af618d8ed1553849341497 Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 23c0501 Pull-Request: #159930 [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/159961
Note: Links to docs will display an error until the docs builds have been completed. ⏳ 5 Pending, 2 Unrelated FailuresAs of commit 08d2f87 with merge base b9003ed ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
See https://hud.pytorch.org/pytorch/pytorch/commit/6b414f56a4a133a428af618d8ed1553849341497 Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 23c0501 Pull-Request: #159930 ghstack-source-id: 5132a6b Pull Request resolved: #159961
See https://hud.pytorch.org/pytorch/pytorch/commit/6b414f56a4a133a428af618d8ed1553849341497 Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Pull-Request: #159930 cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben [ghstack-poisoned]
See https://hud.pytorch.org/pytorch/pytorch/commit/6b414f56a4a133a428af618d8ed1553849341497 Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: a904d7b Pull-Request: #159930 ghstack-source-id: a904d7b Pull Request resolved: #159961
@pytorchbot label "topic: not user facing" |
config.cpp_wrapper, | ||
"cpp_wrapper samples will lead to invalid indexing", |
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.
what happens when cpp_wrapper is used - does it raise a device-side assert? (and is it during compilation or during runtime?) and do you know if that is a regression or if that is a previously-existing bug?
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.
cpp wrapper generates examples and runs kernels using those examples. these examples have the rule - random tensor for real data, zero data for integral data (to capture the kernel cubin i think?). so if the model makes assumptions (like repeats.sum() == output_size), cpp_wrapper fails. this is why the original MR disabled the decomp for cpp_wrapper, too.
See https://hud.pytorch.org/pytorch/pytorch/commit/6b414f56a4a133a428af618d8ed1553849341497 Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Pull-Request: #159930 cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben [ghstack-poisoned]
See https://hud.pytorch.org/pytorch/pytorch/commit/6b414f56a4a133a428af618d8ed1553849341497 Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Pull-Request: #159930 cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben [ghstack-poisoned]
See https://hud.pytorch.org/pytorch/pytorch/commit/6b414f56a4a133a428af618d8ed1553849341497 Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Pull-Request: #159930 [ghstack-poisoned]
torch/_inductor/codegen/triton.py
Outdated
@@ -2720,6 +2720,8 @@ def bucketize( | |||
dtype=indexing_dtype, # type: ignore[attr-defined] | |||
) | |||
|
|||
result.mask_vars = values.mask_vars # type: ignore[attr-defined] |
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.
Would we need to add the boundaries mask as well ?
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.
added all CSEVariables
See https://hud.pytorch.org/pytorch/pytorch/commit/6b414f56a4a133a428af618d8ed1553849341497 Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: a2229df Pull-Request: #159930 ghstack-source-id: a2229df Pull Request resolved: #159961
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Starting merge as part of PR stack under #158462 |
Merge failedReason: Command
Details for Dev Infra teamRaised by workflow job |
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Starting merge as part of PR stack under #158462 |
Stack from ghstack (oldest at bottom):
See https://hud.pytorch.org/pytorch/pytorch/commit/6b414f56a4a133a428af618d8ed1553849341497
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben