Skip to content

[Inductor Cutlass backend] Disable Cutlass backend, split and add tests - #119598

Closed
kadeng wants to merge 16 commits into
gh/kadeng/33/basefrom
gh/kadeng/33/head
Closed

kadeng wants to merge 16 commits into
gh/kadeng/33/basefrom
gh/kadeng/33/head

Conversation

@kadeng

@kadeng kadeng commented Feb 9, 2024 •

Copy link
Copy Markdown
Contributor

 * Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Feb 9, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 0f551c5 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.

…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]
@kadeng
kadeng requested a review from jansel February 27, 2024 10:44
@kadeng
kadeng marked this pull request as ready for review February 27, 2024 10:44
…and add tests"

* Disables the Cutlass backend via _DISABLE_CUTLASS_BACKEND
feature flag
 * Splits the Cutlass backend related unit tests out of test_max_autotune.py into
 test_cutlass_backend.py
 * Adds a lot of new Cutlass backend specific tests, including those
 covering enhanced epilogue fusion ( follows in the next PRs )

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

[ghstack-poisoned]

@jansel jansel left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm a bit confused at this PR. Is this just refactoring stuff to a different file? Are there any other changes in it? Why are we flipping the flag in the same PR?

It's understandable that this looks a bit confusing. Since I splitted it up into multiple PRs, the tests need to be green for all intermediate commits, and I need to stay below 2000 LOC change per PR.

So, in order to achieve that I have split off the tests into this PR and put them in the PR stack below the implementation of the features which they test. But that means they will fail, so I needed to disable them until the functionality is there.

While doing this, I also did something that is preferable anyway: I split off the Cutlass backend specific tests from the general max autotune related tests for all backends. So that's a minor refactoring.

So what resulted are these main changes:

  • Factor out the Cutlass backend specific tests to a separate test file.
  • Add new tests, which will only turn green with the changes in the next PRs in the stack.
  • Disable the Cutlass backend and the cutlass specific tests which are not yet working.

As to why the change to the feature flag is not in an entirely separate PR: This is just to place less load on the CI infra.

In the following PR, I will then make some changes to the Cutlass backend. But I can't make it work yet, that would require more than 2000 LOC change. So I keep the Cutlass backend and the tests disabled.

Only once all the changes are in there and the Cutlass backend is functional again, I can reenable it and also enable all the new tests.

@kadeng
kadeng requested a review from jansel March 5, 2024 11:49
@jansel

jansel commented Mar 6, 2024

Copy link
Copy Markdown
Contributor

I didn't write the comment above. It looks like you edited my comment @kadeng to add your response? Please don't do that in the future.

@jansel jansel left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please factor this stack into multiple PRs for real. Splitting it out this way is not helpful. I don't think we should land a bunch of tests that are broken because the code they reference doesn't exist yet.

@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/33/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