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] Support ReinterpretView in inductor codegen #113967

Closed
wants to merge 1 commit into from

Conversation

oulgen
Copy link
Contributor

@oulgen oulgen commented Nov 17, 2023

Copy link

pytorch-bot bot commented Nov 17, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/113967

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 732297e with merge base 7c35874 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

oulgen added a commit that referenced this pull request Nov 17, 2023
ghstack-source-id: 500d7cb4d7b5af7aa8d6a982e66dd5cfe138edda
Pull Request resolved: #113967
@oulgen oulgen added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category labels Nov 17, 2023
@Chillee
Copy link
Contributor

Chillee commented Nov 17, 2023

What is this for?

@oulgen
Copy link
Contributor Author

oulgen commented Nov 17, 2023

What is this for?

Using native triton kernels with the jagged MRS kernels

Copy link
Contributor

@eellison eellison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a test and a commit summary ?

@oulgen
Copy link
Contributor Author

oulgen commented Nov 17, 2023

Would you mind adding a test and a commit summary ?

I did add a test already? is that not enough? torch.empty_like ends up creating a ReinterpretView

pytorchmergebot pushed a commit that referenced this pull request Nov 18, 2023
…st (#114002)

Prior to this PR, autotuned arguments could only be at the back of the argument list. This is an inductor limitation and not triton limitation. Fixing this allows more MRS kernels to use user defined triton kernels.

Pull Request resolved: #114002
Approved by: https://github.com/aakhundov
ghstack dependencies: #113967
oulgen added a commit that referenced this pull request Nov 20, 2023
#113967 added support for
ReinterpretView but it turnes out we codegen it differently in abi
compat mode. This PR adds support for abi compat mode as well.

[ghstack-poisoned]
oulgen added a commit that referenced this pull request Nov 20, 2023
#113967 added support for
ReinterpretView but it turnes out we codegen it differently in abi
compat mode. This PR adds support for abi compat mode as well.

ghstack-source-id: f435abbdd5497343124c4c779f35743d87ca1dfd
Pull Request resolved: #114169
oulgen added a commit that referenced this pull request Nov 21, 2023
#113967 added support for
ReinterpretView but it turnes out we codegen it differently in abi
compat mode. This PR adds support for abi compat mode as well.

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 Nov 21, 2023
#113967 added support for
ReinterpretView but it turnes out we codegen it differently in abi
compat mode. This PR adds support for abi compat mode as well.

ghstack-source-id: 18dc01c478550f2256f59ea4016989cd91771d96
Pull Request resolved: #114169
oulgen added a commit that referenced this pull request Nov 21, 2023
#113967 added support for
ReinterpretView but it turnes out we codegen it differently in abi
compat mode. This PR adds support for abi compat mode as well.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler

[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request Nov 21, 2023
#113967 added support for
ReinterpretView but it turnes out we codegen it differently in abi
compat mode. This PR adds support for abi compat mode as well.

Pull Request resolved: #114169
Approved by: https://github.com/aakhundov
@facebook-github-bot facebook-github-bot deleted the gh/oulgen/35/head branch November 22, 2023 15:30
oulgen added a commit that referenced this pull request Nov 23, 2023
#113967 added support for
ReinterpretView but it turnes out we codegen it differently in abi
compat mode. This PR adds support for abi compat mode as well.

[ghstack-poisoned]
oulgen added a commit that referenced this pull request Nov 23, 2023
#113967 added support for
ReinterpretView but it turnes out we codegen it differently in abi
compat mode. This PR adds support for abi compat mode as well.

[ghstack-poisoned]
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