-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[cutlass backend] skip stream k if shape is dynamic #159442
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
Differential Revision: [D79229210](https://our.internmc.facebook.com/intern/diff/D79229210/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/159442
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (6 Unrelated Failures)As of commit 6699691 with merge base b4619f0 ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Differential Revision: [D79229210](https://our.internmc.facebook.com/intern/diff/D79229210/) ghstack-source-id: 299451983 Pull Request resolved: #159442
|
This pull request was exported from Phabricator. Differential Revision: D79229210 |
| self, | ||
| ): | ||
| """ | ||
| Test streamk with dynamic=False. Streamk should work. |
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.
maybe assert stream-k kernel ended up in the compiled program?
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.
maybe assert stream-k kernel ended up in the compiled program?
@ColinPeppler that should be guaranteed by the filtering?
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.
better to be explicit about it (if it's fairly easy to check)!
Differential Revision: [D79229210](https://our.internmc.facebook.com/intern/diff/D79229210/) cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben [ghstack-poisoned]
Pull Request resolved: #159442 ghstack-source-id: 299575375 @exported-using-ghexport Differential Revision: [D79229210](https://our.internmc.facebook.com/intern/diff/D79229210/)
|
This pull request was exported from Phabricator. Differential Revision: D79229210 |
| # only use stream k for static shape | ||
| if op.tile_scheduler.name == "StreamK": | ||
| static_shape = PythonWrapperCodegen.statically_known_list_of_ints_or_none( | ||
| tuple(X.get_size()) + tuple(W.get_size()) | ||
| ) | ||
| if not static_shape: | ||
| return None | ||
|
|
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.
a log would be a nice-to-have here
|
@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 |
Stack from ghstack (oldest at bottom):
Differential Revision: D79229210
Motivation is workspace size is hard to determine, and varies for different shape. What I observed is sometimes the shape got smaller, but the workspace can increase. So it is hard to upper bound it.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben