Skip to content

[Inductor cutlass backend] Enabled nonzero workspace and Cutlass StreamK - #125406

Closed
kadeng wants to merge 7 commits into
gh/kadeng/60/basefrom
gh/kadeng/60/head
Closed

kadeng wants to merge 7 commits into
gh/kadeng/60/basefrom
gh/kadeng/60/head

Conversation

@kadeng

@kadeng kadeng commented May 2, 2024 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Enable nonzero workspace and Cutlass StreamK for Inductor Cutlass GEMM ops.

This is a simpler rewrite of my original version of #119005 using @peterbell10 's workspace allocation mechanism from #117992

Test Plan:

  • Additional unit test in test_cutlass_backend.py which specifically tests StreamK GEMM with workspace requirement
  • CI

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

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented May 2, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 0c5f2bb with merge base bfd5bb0 (image):

NEW FAILURE - The following job has failed:

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.

kadeng added 2 commits May 2, 2024 19:10
[ghstack-poisoned]
[ghstack-poisoned]
@kadeng kadeng added topic: not user facing topic category ciflow/trunk Trigger trunk jobs on your pull request labels May 3, 2024
kadeng added 4 commits May 3, 2024 16:15
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@kadeng

kadeng commented May 5, 2024

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@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 May 5, 2024

Copy link
Copy Markdown
Contributor Author

The currently failing test appears flaky, judging from hud.pytorch.org - e.g. I could find the same error being reported sporadically on trunk.

@kadeng

kadeng commented May 5, 2024

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge --ignore-current

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 2 checks: pull / linux-focal-cuda12.1-py3.10-gcc9 / test (default, 3, 5, linux.4xlarge.nvidia.gpu), inductor / rocm6.1-py3.8-inductor / test (inductor, 1, 1, linux.rocm.gpu.2)

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

kadeng added a commit that referenced this pull request May 5, 2024
Enable nonzero workspace and Cutlass StreamK for Inductor Cutlass GEMM ops.

This is a simpler rewrite of my original version of #119005 using peterbell10 's workspace allocation mechanism from #117992

Test Plan:
 - Additional unit test in test_cutlass_backend.py which specifically tests StreamK GEMM with workspace requirement
 - CI

ghstack-source-id: eccd80a
Pull Request resolved: #125406
pytorchmergebot pushed a commit that referenced this pull request May 5, 2024
…124928)

This diff makes sure that a custom exception is thrown when no valid
choices remain during autotuning. This allows to gracefully fall back
to a default choice, even if that default choice has not been passed to
autotune_select_algorithm.

Additionally, this diff handles RuntimeErrors during autotuning gracefully, e.g. the corresponding choice is ignored but it does not lead to the compilation failure of the entire model if a problematic choice is encountered during autotuning.
( An error is being logged, though).

Test Plan:
CI

Pull Request resolved: #124928
Approved by: https://github.com/int3
ghstack dependencies: #125406
@github-actions
github-actions Bot deleted the gh/kadeng/60/head branch June 5, 2024 01:55
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.

3 participants