Skip to content

[Inductor Cutlass backend] Disable epilogue fusions - #124107

Closed
kadeng wants to merge 8 commits into
gh/kadeng/52/basefrom
gh/kadeng/52/head
Closed

kadeng wants to merge 8 commits into
gh/kadeng/52/basefrom
gh/kadeng/52/head

Conversation

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Apr 15, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ You can merge normally! (4 Unrelated Failures)

As of commit 51eaf3c with merge base failed to retrieve merge base, please contact dev infra:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

kadeng added 4 commits April 15, 2024 23:29
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@kadeng
kadeng requested review from Skylion007, aakhundov, eellison, jansel and lezcano and removed request for Skylion007, eellison and lezcano April 16, 2024 15:49

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

Is this ready for review? Tests are failing and it is still marked as draft.

kadeng added 2 commits April 19, 2024 20:16
[ghstack-poisoned]
[ghstack-poisoned]
@kadeng
kadeng requested a review from jansel April 21, 2024 18:53
@kadeng
kadeng marked this pull request as ready for review April 21, 2024 18:53
@kadeng

kadeng commented Apr 21, 2024

Copy link
Copy Markdown
Contributor Author

Is this ready for review? Tests are failing and it is still marked as draft.

It's ready now.

[ghstack-poisoned]
@kadeng

kadeng commented Apr 23, 2024

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 23, 2024
@pytorchmergebot

Copy link
Copy Markdown
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

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 1 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@kadeng

kadeng commented Apr 24, 2024

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f "Test failures are unrelated / known as broken or flaky"

@lezcano

lezcano commented Apr 24, 2024

Copy link
Copy Markdown
Collaborator

just for context, why are we disabling them?

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

pytorchmergebot pushed a commit that referenced this pull request Apr 24, 2024
…est setup (#124574)

The diff #122661 introduces a new automatic cache refresh mechanism during all inductor-derived test cases.

But this refresh mechanism seems not to work properly across process boundaries, specifically when using  autotune_in_subproc, which many tests in test_cutlass_backend.py rely on.

Solution: Set the env var INDUCTOR_TEST_DISABLE_FRESH_CACHE=1
early during test setup within test_cutlass_backend.py

Test Plan:
This is a change to unit tests only.

Pull Request resolved: #124574
Approved by: https://github.com/aakhundov
ghstack dependencies: #121497, #123930, #123932, #121734, #124107
pytorchmergebot pushed a commit that referenced this pull request Apr 24, 2024
…emm_choices (#124575)

Clean up CUTLASSGemmTemplate.add_cutlass_gemm_choices, removing code that became unneccessary by removing EVT-based epilogue fusion.

Test Plan:
Already covered by test_cutlass_backend.py

Pull Request resolved: #124575
Approved by: https://github.com/jansel
ghstack dependencies: #121497, #123930, #123932, #121734, #124107, #124574
@kadeng

kadeng commented Apr 24, 2024

Copy link
Copy Markdown
Contributor Author

just for context, why are we disabling them?

The short answer: Experiments resulted in the conclusion that it's not worth the effort and the issues that come with it. I posted a longer explanation in the comment section to #124577 - I can give more details on Slack if you want.

petrex pushed a commit to petrex/pytorch that referenced this pull request May 3, 2024
This diff disables Cutlass backend EVT epilogue fusions. It does not yet contain the removal of most of the underlying implementation.

Pull Request resolved: pytorch#124107
Approved by: https://github.com/jansel
ghstack dependencies: pytorch#121497, pytorch#123930, pytorch#123932, pytorch#121734
petrex pushed a commit to petrex/pytorch that referenced this pull request May 3, 2024
…est setup (pytorch#124574)

The diff pytorch#122661 introduces a new automatic cache refresh mechanism during all inductor-derived test cases.

But this refresh mechanism seems not to work properly across process boundaries, specifically when using  autotune_in_subproc, which many tests in test_cutlass_backend.py rely on.

Solution: Set the env var INDUCTOR_TEST_DISABLE_FRESH_CACHE=1
early during test setup within test_cutlass_backend.py

Test Plan:
This is a change to unit tests only.

Pull Request resolved: pytorch#124574
Approved by: https://github.com/aakhundov
ghstack dependencies: pytorch#121497, pytorch#123930, pytorch#123932, pytorch#121734, pytorch#124107
pytorch-bot Bot pushed a commit that referenced this pull request May 3, 2024
…emm_choices (#124575)

Clean up CUTLASSGemmTemplate.add_cutlass_gemm_choices, removing code that became unneccessary by removing EVT-based epilogue fusion.

Test Plan:
Already covered by test_cutlass_backend.py

Pull Request resolved: #124575
Approved by: https://github.com/jansel
ghstack dependencies: #121497, #123930, #123932, #121734, #124107, #124574
@github-actions
github-actions Bot deleted the gh/kadeng/52/head branch June 2, 2024 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants