Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/169948
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 2 New Failures, 1 Pending, 2 Unrelated FailuresAs of commit 3ea4420 with merge base dbba85b ( NEW FAILURES - The following jobs have failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
BROKEN TRUNK - The following job failed but was 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. |
5747137 to
66a113b
Compare
66a113b to
adf5b6d
Compare
PaulZhang12
left a comment
There was a problem hiding this comment.
There is already a config that exists to disable decomposeK, setting TORCHINDUCTOR_NUM_DECOMPOSE_K_SPLITS=0. Please use that one instead of adding a new config
Makes sense thanks, will update this |
|
The ROCm failure seems flaky so disabled will assess this afterwards - #171519 |
|
@pytorchbot merge -f "Failing test seems flaky opened up issue to address after" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Fixes pytorch#168617 Fixes pytorch#168615 Fixes pytorch#168614 Fixes pytorch#168613 Fixes pytorch#168599 Fixes pytorch#168600 Fixes pytorch#168601 Fixes pytorch#168602 Fixes pytorch#168603 Fixes pytorch#168604 Fixes pytorch#168605 Fixes pytorch#168606 Fixes pytorch#168607 Enables testing for decompose K mode on ROCm. This is still disabled by default pending perf testing but we can get the functional coverage by adding an inductor config for decompose k enablement. Pull Request resolved: pytorch#169948 Approved by: https://github.com/jansel, https://github.com/eellison, https://github.com/PaulZhang12
decompose_k was off by default on ROCm pending perf validation (#169948). On MI350X it beats hipBLASLt and the Triton mm template on many large-K GEMMs, so this uses the same default as CUDA (`num_decompose_k_splits=10`). ## Agent details Drafted with an AI assistant (Claude); pending author review. Stacked on #195939 and #203681 (the read-flush benchmarker the numbers below were measured with). MI350X, 172 GEMMs that pass the default `decompose_k_threshold` (K >= 32 * max(M, N)). Ground truth is the median over 8 input allocations of summed device kernel time after a read flush (#203681): - geomean dk-on / dk-off pick: 0.971; 58 shapes >3% faster - 7 shapes >3% slower beyond the re-timing noise of aten itself (all autotune misranks between aten and decompose_k) - fp32 within 4e-6 of aten These were measured with splits pruned to at least 32 output tiles of 64x64 and at most 64 MiB of workspace; this PR does not add that pruning on ROCm. Other ROCm archs (MI300/gfx942, gfx90a, RDNA) are not measured. Test Plan: ``` python test/inductor/test_max_autotune.py -k decompose ``` `test_max_autotune_decompose_k_envvars` gains a default-splits case that checks decompose_k is offered. ghstack-source-id: 71cefa3 Pull-Request: #203875
decompose_k was off by default on ROCm pending perf validation (#169948). On MI350X it beats hipBLASLt and the Triton mm template on many large-K GEMMs, so this uses the same default as CUDA (`num_decompose_k_splits=10`). ## Agent details Drafted with an AI assistant (Claude); pending author review. Stacked on #195939 and #203681 (the read-flush benchmarker the numbers below were measured with). MI350X, 172 GEMMs that pass the default `decompose_k_threshold` (K >= 32 * max(M, N)). Ground truth is the median over 8 input allocations of summed device kernel time after a read flush (#203681): - geomean dk-on / dk-off pick: 0.971; 58 shapes >3% faster - 7 shapes >3% slower beyond the re-timing noise of aten itself (all autotune misranks between aten and decompose_k) - fp32 within 4e-6 of aten These were measured with splits pruned to at least 32 output tiles of 64x64 and at most 64 MiB of workspace, which #195939's split bound applies on gfx950; other ROCm archs are not pruned. Other ROCm archs (MI300/gfx942, gfx90a, RDNA) are not measured. Test Plan: ``` python test/inductor/test_max_autotune.py -k decompose ``` `test_max_autotune_decompose_k_envvars` gains a default-splits case that checks decompose_k is offered. ghstack-source-id: 570fd87 Pull-Request: #203875
decompose_k was off by default on ROCm pending perf validation (#169948). On MI350X it beats hipBLASLt and the Triton mm template on many large-K GEMMs, so this uses the same default as CUDA (`num_decompose_k_splits=10`). ## Agent details Drafted with an AI assistant (Claude); pending author review. Stacked on #195939 and #203681 (the read-flush benchmarker the numbers below were measured with). MI350X, 172 GEMMs that pass the default `decompose_k_threshold` (K >= 32 * max(M, N)). Ground truth is the median over 8 input allocations of summed device kernel time after a read flush (#203681): - geomean dk-on / dk-off pick: 0.971; 58 shapes >3% faster - 7 shapes >3% slower beyond the re-timing noise of aten itself (all autotune misranks between aten and decompose_k) - fp32 within 4e-6 of aten These were measured with splits pruned to at least 32 output tiles of 64x64 and at most 64 MiB of workspace, which #195939's split bound applies on gfx950; other ROCm archs are not pruned. Other ROCm archs (MI300/gfx942, gfx90a, RDNA) are not measured. Test Plan: ``` python test/inductor/test_max_autotune.py -k decompose ``` `test_max_autotune_decompose_k_envvars` gains a default-splits case that checks decompose_k is offered. ghstack-source-id: e11cf66 Pull-Request: #203875
decompose_k was off by default on ROCm pending perf validation (#169948). On MI350X it beats hipBLASLt and the Triton mm template on many large-K GEMMs, so this uses the same default as CUDA (`num_decompose_k_splits=10`). ## Agent details Drafted with an AI assistant (Claude); pending author review. Stacked on #195939 and #203681 (the read-flush benchmarker the numbers below were measured with). MI350X, 172 GEMMs that pass the default `decompose_k_threshold` (K >= 32 * max(M, N)). Ground truth is the median over 8 input allocations of summed device kernel time after a read flush (#203681): - geomean dk-on / dk-off pick: 0.971; 58 shapes >3% faster - 7 shapes >3% slower beyond the re-timing noise of aten itself (all autotune misranks between aten and decompose_k) - fp32 within 4e-6 of aten These were measured with splits pruned to at least 32 output tiles of 64x64 and at most 64 MiB of workspace, which #195939's split bound applies on gfx950; other ROCm archs are not pruned. Other ROCm archs (MI300/gfx942, gfx90a, RDNA) are not measured. Test Plan: ``` python test/inductor/test_max_autotune.py -k decompose ``` `test_max_autotune_decompose_k_envvars` gains a default-splits case that checks decompose_k is offered. ghstack-source-id: f917151 Pull-Request: #203875
decompose_k was off by default on ROCm pending perf validation (#169948). On MI350X it beats hipBLASLt and the Triton mm template on many large-K GEMMs, so this uses the same default as CUDA (`num_decompose_k_splits=10`). ## Agent details Drafted with an AI assistant (Claude); pending author review. Stacked on #195939 and #203681 (the read-flush benchmarker the numbers below were measured with). MI350X, 172 GEMMs that pass the default `decompose_k_threshold` (K >= 32 * max(M, N)). Ground truth is the median over 8 input allocations of summed device kernel time after a read flush (#203681): - geomean dk-on / dk-off pick: 0.971; 58 shapes >3% faster - 7 shapes >3% slower beyond the re-timing noise of aten itself (all autotune misranks between aten and decompose_k) - fp32 within 4e-6 of aten These were measured with splits pruned to at least 32 output tiles of 64x64 and at most 64 MiB of workspace, which #195939's split bound applies on gfx950; other ROCm archs are not pruned. Other ROCm archs (MI300/gfx942, gfx90a, RDNA) are not measured. Test Plan: ``` python test/inductor/test_max_autotune.py -k decompose ``` `test_max_autotune_decompose_k_envvars` gains a default-splits case that checks decompose_k is offered. ghstack-source-id: 60f9963 Pull-Request: #203875
Fixes #168617
Fixes #168615
Fixes #168614
Fixes #168613
Fixes #168599
Fixes #168600
Fixes #168601
Fixes #168602
Fixes #168603
Fixes #168604
Fixes #168605
Fixes #168606
Fixes #168607
Enables testing for decompose K mode on ROCm. This is still disabled by default pending perf testing but we can get the functional coverage by adding an inductor config for decompose k enablement.
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben