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
[Inductor] Add triton.autotune support for user defined triton kernels with constant/simple grids #112228
Conversation
…s with constant/simple grids [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/112228
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 356c5b1 with merge base 8d44999 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…s with constant/simple grids ghstack-source-id: 37bf2369d049574f82b200610f1f1f35e7120f94 Pull Request resolved: #112228
…iton kernels with constant/simple grids" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…s with constant/simple grids ghstack-source-id: 65a5279fb602e9cb58da1df0a55b9a1c6f853b3a Pull Request resolved: #112228
This PR only handles simple grids, on the next PR I will deal with complex grids |
@@ -362,16 +363,17 @@ def kernel_call(): | |||
{**dict(zip(self.arg_names, args)), **launcher.config.kwargs} |
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.
Hmm, I'm not really sure what this pre_hook stuff is. I assume I need to put **kwargs
here too, how to trigger/test this?
…iton kernels with constant/simple grids" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…s with constant/simple grids ghstack-source-id: db33a033857213c6ce6756309174eddd2de8d3fb Pull Request resolved: #112228
@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 |
@pytorchbot revert -m 'Sorry for reverting your change but it is failing ROCm test in trunk https://hud.pytorch.org/pytorch/pytorch/commit/dbb31a2984fa616b4bb6fac7abb2a06ec0533eb1' -c nosignal You can add |
@pytorchbot successfully started a revert job. Check the current status here. |
@oulgen your PR has been successfully reverted. |
…n kernels with constant/simple grids (#112228)" This reverts commit dbb31a2. Reverted #112228 on behalf of https://github.com/huydhn due to Sorry for reverting your change but it is failing ROCm test in trunk https://hud.pytorch.org/pytorch/pytorch/commit/dbb31a2984fa616b4bb6fac7abb2a06ec0533eb1 ([comment](#112228 (comment)))
…iton kernels with constant/simple grids" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
@huydhn No worries, I just disabled this test under ROCM. If rocm mode is valuable, could we run these tests by default so that we don't have to revert diffs? |
@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 |
We have a smaller number of ROCM runners than Linux CUDA. So this is a trade-off between CI coverage and queuing time. There is a work in progress #110511 to run only a subset of tests on ROCm for every PR. Adding dynamo tests in the set could help avoid similar cases. |
Let's just disable the test on rocm. |
@jansel already done and pushed with the disable |
…s with constant/simple grids (pytorch#112228) Pull Request resolved: pytorch#112228 Approved by: https://github.com/jansel
…n kernels with constant/simple grids (pytorch#112228)" This reverts commit dbb31a2. Reverted pytorch#112228 on behalf of https://github.com/huydhn due to Sorry for reverting your change but it is failing ROCm test in trunk https://hud.pytorch.org/pytorch/pytorch/commit/dbb31a2984fa616b4bb6fac7abb2a06ec0533eb1 ([comment](pytorch#112228 (comment)))
…s with constant/simple grids (pytorch#112228) Pull Request resolved: pytorch#112228 Approved by: https://github.com/jansel
…s with constant/simple grids (pytorch#112228) Pull Request resolved: pytorch#112228 Approved by: https://github.com/jansel
…n kernels with constant/simple grids (pytorch#112228)" This reverts commit dbb31a2. Reverted pytorch#112228 on behalf of https://github.com/huydhn due to Sorry for reverting your change but it is failing ROCm test in trunk https://hud.pytorch.org/pytorch/pytorch/commit/dbb31a2984fa616b4bb6fac7abb2a06ec0533eb1 ([comment](pytorch#112228 (comment)))
…s with constant/simple grids (pytorch#112228) Pull Request resolved: pytorch#112228 Approved by: https://github.com/jansel
…s with constant/simple grids (pytorch#112228) Pull Request resolved: pytorch#112228 Approved by: https://github.com/jansel
…n kernels with constant/simple grids (pytorch#112228)" This reverts commit dbb31a2. Reverted pytorch#112228 on behalf of https://github.com/huydhn due to Sorry for reverting your change but it is failing ROCm test in trunk https://hud.pytorch.org/pytorch/pytorch/commit/dbb31a2984fa616b4bb6fac7abb2a06ec0533eb1 ([comment](pytorch#112228 (comment)))
…s with constant/simple grids (pytorch#112228) Pull Request resolved: pytorch#112228 Approved by: https://github.com/jansel
…s with constant/simple grids (pytorch#112228)
Stack from ghstack (oldest at bottom):
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler