-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Support calling user defined triton kernels with kernel.run #112292
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/112292
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit a4695d1 with merge base f5088d2 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng [ghstack-poisoned]
torch/_dynamo/variables/functions.py
Outdated
| if "grid" not in kwargs: | ||
| raise Unsupported("Triton kernel requires to be called with a grid") | ||
| grid = kwargs.pop("grid") | ||
| self.grid = grid |
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.
VariableTrackers are read-only and should not be mutated. You can do self.clone(grid=grid) to get a copy of self with a change applied to it.
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng [ghstack-poisoned]
|
@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 |
…112292) Pull Request resolved: pytorch#112292 Approved by: https://github.com/jansel ghstack dependencies: pytorch#112290
…112292) Pull Request resolved: pytorch#112292 Approved by: https://github.com/jansel ghstack dependencies: pytorch#112290
Stack from ghstack (oldest at bottom):
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @aakhundov @kadeng