-
Notifications
You must be signed in to change notification settings - Fork 25.7k
correctly keep track of processed tensors for foreach reductions #140103
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/140103
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit cbbb78f with merge base 43f0fe6 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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'm not sure inputs here are large enough to trigger the bug. We need to test 2 cases
- Enough chunks across all the tensors to trigger multiple kernel launches. That requires tensors totalling
>65536 * 320elements today, given that we launch at most 320 blocks - Enough tensors to trigger multiple kernel launches, don't know off the top of my head but should be at least 50-100
By looking at it, foreach inputs would generate at most 10 small-ish tensors, so might not trigger either case.
We might be better off just writing one off tests for this, wdyt?
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.
Yea, that'd probably be easiest, the meta tests also just failed too so that makes the decision easier
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.
Eventually we probably want both tests
544a37d to
dacd07b
Compare
|
@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 |
…orch#140103) Fixes pytorch#140066 Pull Request resolved: pytorch#140103 Approved by: https://github.com/janeyx99 Co-authored-by: Jane Xu <janeyx@meta.com>
…orch#140103) Fixes pytorch#140066 Pull Request resolved: pytorch#140103 Approved by: https://github.com/janeyx99 Co-authored-by: Jane Xu <janeyx@meta.com>
…orch#140103) Fixes pytorch#140066 Pull Request resolved: pytorch#140103 Approved by: https://github.com/janeyx99 Co-authored-by: Jane Xu <janeyx@meta.com>
Fixes #140066