Skip to content

[Inductor cutlass backend] Fix tests: skipIfROCm always skips when using as class annotation - #123930

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

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

Conversation

@kadeng

@kadeng kadeng commented Apr 12, 2024 •

Copy link
Copy Markdown
Contributor

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Apr 12, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 9b4b3a7 with merge base failed to retrieve merge base, please contact dev infra:
💚 Looks good so far! There are no failures yet. 💚

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

[ghstack-poisoned]
@pytorch pytorch deleted a comment from pytorch-bot Bot Apr 14, 2024
[ghstack-poisoned]
kadeng added 5 commits April 16, 2024 17:29
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@kadeng
kadeng marked this pull request as ready for review April 21, 2024 18:51
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 0 checks:

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: 2 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

@pytorch pytorch deleted a comment from pytorch-bot Bot Apr 22, 2024
@pytorch pytorch deleted a comment from pytorch-bot Bot Apr 22, 2024
@kadeng

kadeng commented Apr 22, 2024

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f "Failing tests seem to be unrelated / broken on trunk"

@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 23, 2024
…els (#123932)

If a Kernel does not return in a reasonable amount of time during autotuning, it can delay inductor compilation a lot. This change introduces soft / hard kill timeouts and a mechanism to kill Kernels being profiled in subprocesses if they take too long.

Correspondingly, a few new config options are introduced within _inductor/config.py - all of them with inline docs.

Test Plan:
Existing tests within test_max_autotune.py and test_cutlass_backend.py ) cover the new codepaths.

Pull Request resolved: #123932
Approved by: https://github.com/jansel
ghstack dependencies: #121497, #123930
pytorchmergebot pushed a commit that referenced this pull request Apr 24, 2024
Add support for bmm ( batch matrix multiply ) op through the Cutlass backend.

Test Plan:
 * CI
 * Added test in test_cutlass_backend.py

Pull Request resolved: #121734
Approved by: https://github.com/eellison
ghstack dependencies: #121497, #123930, #123932
pytorchmergebot pushed a commit that referenced this pull request Apr 24, 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: #124107
Approved by: https://github.com/jansel
ghstack dependencies: #121497, #123930, #123932, #121734
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
pytorch-bot Bot pushed a commit that referenced this pull request May 3, 2024
…ing as class annotation (#123930)

I previously added @skipIfRocm as a class annotation within test/inductor/test_cutlass_backend.py - turns out this annotation always skips if applied at class level, so I need to skip Cutlass tests on ROCm differently..

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

If a Kernel does not return in a reasonable amount of time during autotuning, it can delay inductor compilation a lot. This change introduces soft / hard kill timeouts and a mechanism to kill Kernels being profiled in subprocesses if they take too long.

Correspondingly, a few new config options are introduced within _inductor/config.py - all of them with inline docs.

Test Plan:
Existing tests within test_max_autotune.py and test_cutlass_backend.py ) cover the new codepaths.

Pull Request resolved: #123932
Approved by: https://github.com/jansel
ghstack dependencies: #121497, #123930
pytorch-bot Bot pushed a commit that referenced this pull request May 3, 2024
Add support for bmm ( batch matrix multiply ) op through the Cutlass backend.

Test Plan:
 * CI
 * Added test in test_cutlass_backend.py

Pull Request resolved: #121734
Approved by: https://github.com/eellison
ghstack dependencies: #121497, #123930, #123932
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
pytorch-bot Bot pushed a commit that referenced this pull request May 3, 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
petrex pushed a commit to petrex/pytorch that referenced this pull request May 3, 2024
…emm_choices (pytorch#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: pytorch#124575
Approved by: https://github.com/jansel
ghstack dependencies: pytorch#121497, pytorch#123930, pytorch#123932, pytorch#121734, pytorch#124107, pytorch#124574
@github-actions
github-actions Bot deleted the gh/kadeng/48/head branch June 2, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged module: inductor module: rocm AMD GPU support for Pytorch topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants