Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

…s with constant/simple grids

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 27, 2023

🔗 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 Failures

As of commit 356c5b1 with merge base 8d44999 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

oulgen added a commit that referenced this pull request Oct 27, 2023
…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]
oulgen added a commit that referenced this pull request Oct 27, 2023
…s with constant/simple grids

ghstack-source-id: 65a5279fb602e9cb58da1df0a55b9a1c6f853b3a
Pull Request resolved: #112228
@oulgen
Copy link
Contributor Author

oulgen commented Oct 27, 2023

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}
Copy link
Contributor Author

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]
oulgen added a commit that referenced this pull request Oct 27, 2023
…s with constant/simple grids

ghstack-source-id: db33a033857213c6ce6756309174eddd2de8d3fb
Pull Request resolved: #112228
@oulgen oulgen added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 27, 2023
@oulgen
Copy link
Contributor Author

oulgen commented Oct 27, 2023

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@huydhn
Copy link
Contributor

huydhn commented Oct 28, 2023

@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 ciflow/rocm to your PR to trigger the failure.

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

@oulgen your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Oct 28, 2023
…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)))
@oulgen oulgen reopened this Oct 28, 2023
…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]
@oulgen
Copy link
Contributor Author

oulgen commented Oct 28, 2023

@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?

@oulgen
Copy link
Contributor Author

oulgen commented Oct 28, 2023

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@huydhn
Copy link
Contributor

huydhn commented Oct 30, 2023

@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?

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.

@jansel
Copy link
Contributor

jansel commented Oct 30, 2023

Let's just disable the test on rocm.

@oulgen
Copy link
Contributor Author

oulgen commented Oct 30, 2023

@jansel already done and pushed with the disable

@facebook-github-bot facebook-github-bot deleted the gh/oulgen/17/head branch November 1, 2023 14:25
@kit1980 kit1980 removed the Reverted label Nov 1, 2023
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Nov 7, 2023
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Nov 7, 2023
…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)))
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Nov 7, 2023
Skylion007 pushed a commit to Skylion007/pytorch that referenced this pull request Nov 14, 2023
Skylion007 pushed a commit to Skylion007/pytorch that referenced this pull request Nov 14, 2023
…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)))
Skylion007 pushed a commit to Skylion007/pytorch that referenced this pull request Nov 14, 2023
andreigh pushed a commit to andreigh/pytorch that referenced this pull request Nov 19, 2023
andreigh pushed a commit to andreigh/pytorch that referenced this pull request Nov 19, 2023
…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)))
andreigh pushed a commit to andreigh/pytorch that referenced this pull request Nov 19, 2023
Stonepia added a commit to Stonepia/pytorch that referenced this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants