Skip to content

[Inductor Cutlass backend] (2/2) Remove Cutlass EVT epilogue fusion - #119701

Closed
kadeng wants to merge 13 commits into
gh/kadeng/36/basefrom
gh/kadeng/36/head
Closed

kadeng wants to merge 13 commits into
gh/kadeng/36/basefrom
gh/kadeng/36/head

Conversation

@kadeng

@kadeng kadeng commented Feb 12, 2024 •

Copy link
Copy Markdown
Contributor

 * Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Feb 12, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 6b39287 with merge base 86063b4 (image):
💚 Looks good so far! There are no failures yet. 💚

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

…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
kadeng added a commit that referenced this pull request Feb 13, 2024
 * Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

ghstack-source-id: 52165cf
Pull Request resolved: #119701
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
kadeng added a commit that referenced this pull request Feb 16, 2024
 * Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

ghstack-source-id: 856fe8b
Pull Request resolved: #119701
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
kadeng added a commit that referenced this pull request Feb 21, 2024
 * Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

ghstack-source-id: 7bda321
Pull Request resolved: #119701
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
kadeng added a commit that referenced this pull request Feb 22, 2024
 * Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

ghstack-source-id: f13c8a3
Pull Request resolved: #119701
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
kadeng added a commit that referenced this pull request Feb 22, 2024
 * Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

ghstack-source-id: b2890d5
Pull Request resolved: #119701
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
kadeng added a commit that referenced this pull request Feb 26, 2024
 * Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

ghstack-source-id: 0fcbc15
Pull Request resolved: #119701
@kadeng
kadeng marked this pull request as ready for review February 27, 2024 10:46
…ue fusion"

* Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

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

[ghstack-poisoned]
kadeng added a commit that referenced this pull request Feb 28, 2024
 * Removes the Cutlass EVT fusion code, but keeps all other Cutlass backend improvements

ghstack-source-id: 2e46e52
Pull Request resolved: #119701
@tonycwliu

tonycwliu commented Mar 1, 2024 •

Copy link
Copy Markdown

What's the reason to add EVT fusion code and then remove them?

@kadeng

kadeng commented Mar 5, 2024 •

Copy link
Copy Markdown
Contributor Author

What's the reason to add EVT fusion code and then remove them?

1.) It is much less work to selectively delete the code that we want to delete than to rewrite the edit history as if the code never existed
2.) We want to keep the code, as it might become valuable in the future.

The EVT code generation works well. It's just that after all testing we determined that it does not bring sufficient performance benefits to justify the added complexity. But the possibility that this kind of code can become valuable again cannot be excluded, for example in the context of back2back GEMM fusions or such. If that turns out true, we need to be able to return to this implementation. Generating Cutlass EVT code out of Inductor intermediate representation is complex and has not been done before, there is no documentation we could adhere to. We certainly would not want to reinvent all of this.

In the original version of the PR, the code addition and removal was part of a single PR with multiple commits for separate features. I was asked to split that into multiple PRs instead.

@kadeng

kadeng commented Mar 11, 2024

Copy link
Copy Markdown
Contributor Author

Closing. The PR stack is being restructured here: #121492

@kadeng kadeng closed this Mar 11, 2024
@github-actions
github-actions Bot deleted the gh/kadeng/36/head branch April 11, 2024 02:04
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.

2 participants