Repository navigation
Conversation
Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels Test plan: CI Additional unit test in test_cutlass_backend.py [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/121491
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (3 Unrelated Failures)As of commit 73c21fa with merge base 365e89a ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
… backend usage" Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels Test plan: CI Additional unit test in test_cutlass_backend.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
… backend usage" Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels Test plan: CI Additional unit test in test_cutlass_backend.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
… backend usage" Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels Test plan: CI Additional unit test in test_cutlass_backend.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
… backend usage" * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size** * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends** Test plan: CI Additional unit test in test_cutlass_backend.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
… backend usage" * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size** * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends** Test plan: CI Additional unit test in test_cutlass_backend.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
… backend usage" * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size** * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends** Test plan: CI Additional unit test in test_cutlass_backend.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
| try: | ||
| # this fails if it's dynamic | ||
| gemm_size = int(m * n * k) | ||
| except Exception: | ||
| pass |
There was a problem hiding this comment.
Rather than erroring you can use V.graph.sizevars.size_hint.
There was a problem hiding this comment.
Changed that here. I think I should also use it in the PR above it in this stack ( about tolerating dynamic shapes ) to determine GEMM dimensions.
… backend usage" * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size** * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends** Test plan: CI Additional unit test in test_cutlass_backend.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
… backend usage" * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size** * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends** Test plan: CI Additional unit test in test_cutlass_backend.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
… backend usage" * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size** * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends** Test plan: CI Additional unit test in test_cutlass_backend.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
Merge startedYour 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 |
…ckend usage (#121491)" This reverts commit 700c92e. Reverted #121491 on behalf of https://github.com/huydhn due to Sorry for reverting you change but I think it is failing on ROCm, i.e. https://hud.pytorch.org/pytorch/pytorch/commit/700c92e1b9cb6fae2610d08e5a960273c4dd1697 ([comment](#121490 (comment)))
|
@kadeng your PR has been successfully reverted. |
[ghstack-poisoned]
|
@pytorchbot merge --ignore-current "Current test failures are unrelated ( see parent commit in stack)" |
|
❌ 🤖 pytorchbot command failed: Try |
|
@pytorchbot merge --ignore-current -m "Current test failures are unrelated ( see parent commit in stack)" |
|
❌ 🤖 pytorchbot command failed: Try |
|
@pytorchbot merge --ignore-current |
Merge startedYour change will be merged while ignoring the following 3 checks: pull / linux-jammy-py3.8-gcc11 / test (docs_test, 1, 1, linux.2xlarge, unstable), rocm / linux-focal-rocm6.0-py3.8 / test (default, 4, 6, linux.rocm.gpu.2), rocm / linux-focal-rocm6.0-py3.8 / test (default, 5, 6, linux.rocm.gpu.2) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…age (#121491) * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size** * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends** Test plan: CI Additional unit test in test_cutlass_backend.py Pull Request resolved: #121491 Approved by: https://github.com/jansel ghstack dependencies: #121490
…age (pytorch#121491) * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size** * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends** Test plan: CI Additional unit test in test_cutlass_backend.py Pull Request resolved: pytorch#121491 Approved by: https://github.com/jansel ghstack dependencies: pytorch#121490
…ckend usage (#121491)" This reverts commit 700c92e. Reverted #121491 on behalf of https://github.com/huydhn due to Sorry for reverting you change but I think it is failing on ROCm, i.e. https://hud.pytorch.org/pytorch/pytorch/commit/700c92e1b9cb6fae2610d08e5a960273c4dd1697 ([comment](#121490 (comment)))
Stack from ghstack (oldest at bottom):
-> [Inductor Cutlass backend] GEMM size threshold for Cutlass backend usage #121491
[Inductor] Make codecache CUDA compilation more robust & flexible #121490
Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels _inductor.config.cutlass_backend_min_gemm_size
During GEMM algorithm choice generation: if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend, even if it is not enabled in _inductor.config.max_autotune_gemm_backends
Test plan:
CI
Additional unit test in test_cutlass_backend.py
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @muchulee8 @aakhundov @ColinPeppler @amjames @desertfire @chauhang