Repository navigation
[Inductor] Lookup table fixes for addmm path (#180349) - #180349
PaulZhang12 wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/180349
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 a2c6ce2 with merge base d3f8120 ( UNSTABLE - The following jobs are marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@PaulZhang12 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D100810662. |
Summary: Pull Request resolved: pytorch#180349 Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table Differential Revision: D100810662
48e8da2 to
399e738
Compare
Summary: Pull Request resolved: pytorch#180349 Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table Differential Revision: D100810662
Summary: Pull Request resolved: pytorch#180349 Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table Reviewed By: njriasan Differential Revision: D100810662
399e738 to
0d0d69b
Compare
Summary: Pull Request resolved: pytorch#180349 Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table Reviewed By: njriasan Differential Revision: D100810662
0d0d69b to
a2c6ce2
Compare
|
@pytorchbot merge -i "unrelated" |
|
❌ 🤖 pytorchbot command failed: Try |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 2 checks: pull / linux-docs / build-docs-cpp-false, pull / linux-docs / build-docs-python-false Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
@pytorchbot revert -m "Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable" -c autorevert This PR is attributed to have caused regression in:
Note: This revert was accelerated by the AI advisor: AI advisor: revert (confidence=0.95); AI advisor: revert (confidence=0.95) Please investigate and fix the issues. |
|
Claude finished @pytorch-auto-revert[bot]'s task in 2m 1s —— View job Diagnosis of Revert for PR #180349
Root CauseThe test The PR updated the test assertion for the if operation == "addmm":
add_preprocessing_fn(
partial(verify_choice_names, pattern="triton_|addmm", expected_count=2)
)The intent was that the addmm path would produce 2 choices: one Triton template choice ( The underlying issue is a mismatch between what the PR author's "default addmm path changes" actually produce on the CI GPU hardware (NVIDIA A10G / sm86) vs. what was expected. On the CI machines, when a lookup table entry matches for The comment in the test code itself hints at this being a known issue: # TODO (paulzhan): Update LookupTableChoices to return empty
# (not fallback) when key matchesIs the Revert Legitimate?Yes. The test assertion expects 2 choices for Suggested FixThe author should update the expected choice count for
The author should verify on the target hardware which behavior is correct and adjust accordingly. |
|
@pytorchbot successfully started a revert job. Check the current status here. |
…)" This reverts commit 30dee11. Reverted #180349 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#180349 (comment)))
|
@PaulZhang12 your PR has been successfully reverted. |
Summary: Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table Reviewed By: njriasan Differential Revision: D100810662 Pull Request resolved: #180349 Approved by: https://github.com/njriasan
…)" This reverts commit 30dee11. Reverted #180349 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#180349 (comment)))
…h#180349) Summary: Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table Reviewed By: njriasan Differential Revision: D100810662 Pull Request resolved: pytorch#180349 Approved by: https://github.com/njriasan
|
@pytorchbot merge -f "#180270 needs this test fix in trunk" |
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 |
…h#180349) Summary: Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table Reviewed By: njriasan Differential Revision: D100810662 Pull Request resolved: pytorch#180349 Approved by: https://github.com/njriasan
…pytorch#180349)" This reverts commit 30dee11. Reverted pytorch#180349 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#180349 (comment)))
…h#180349) Summary: Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table Reviewed By: njriasan Differential Revision: D100810662 Pull Request resolved: pytorch#180349 Approved by: https://github.com/njriasan
…h#180349) Summary: Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table Reviewed By: njriasan Differential Revision: D100810662 Pull Request resolved: pytorch#180349 Approved by: https://github.com/njriasan
…pytorch#180349)" This reverts commit 30dee11. Reverted pytorch#180349 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#180349 (comment)))
…h#180349) Summary: Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table Reviewed By: njriasan Differential Revision: D100810662 Pull Request resolved: pytorch#180349 Approved by: https://github.com/njriasan
The previous commit removed the decorator-level ROCm skip on test_valid_lookup_table_entry but left an in-body skipTest for the addmm parametrization, so only mm, bmm and mm_plus_mm were actually re-enabled. The addmm case failed on every ROCm runner in April 2026 because the test asserted exactly one "triton_" choice while the ROCm addmm path (pytorch#177130, pytorch#178929) keeps the hipblasLt bias-fused extern "addmm" choice next to the lookup-table Triton choice. pytorch#179955 disabled it on rocm, its malformed title kept the bot skip from applying (test-infra#7963), and pytorch#180316 added this in-body skip as a workaround. pytorch#180349 then changed the test to expect "triton_|addmm" with count 2 for addmm, which is the expectation it has today, and the workaround was never removed. With the skip gone the addmm case passes on gfx950 (ROCm 10.0): 25 consecutive isolated runs clean and the full test_lookup_table.py file passes (32 passed, 5 TMA-gated skips). Test plan: PYTORCH_TEST_WITH_ROCM=1 python -m pytest test/inductor/test_lookup_table.py -k test_valid_lookup_table_entry_operation_addmm PYTORCH_TEST_WITH_ROCM=1 python -m pytest test/inductor/test_lookup_table.py gfx942/gfx90a via the PR's ciflow labels. Authored with the assistance of an AI agent (Claude).
Summary:
Default addmm path changes now to match NVIDIA/AMD and to prevent performance regressions. We fix the lookup table tests accordingly
Test Plan: buck2 run mode/opt caffe2/test/inductor:lookup_table
Reviewed By: njriasan
Differential Revision: D100810662
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo