Skip to content

[ROCm] Fix test_origami autotune comparison after PR #181617 cap - #184389

Closed
pragupta wants to merge 2 commits into
mainfrom
jeffdaily/fix-test-origami-max-mm-configs
Closed

pragupta wants to merge 2 commits into
mainfrom
jeffdaily/fix-test-origami-max-mm-configs

Conversation

@pragupta

@pragupta pragupta commented May 19, 2026 •

Copy link
Copy Markdown
Collaborator

PR #181617 added a global test_configs.max_mm_configs=2 cap in InductorTestCase. test_origami_reduces_compile_work_vs_regular_max_autotune compares benchmark_gpu_calls between origami (topk-limited) and regular max_autotune; with both paths capped at 2 candidates the autotuner short-circuits in both branches and produces 0 vs 0, failing assertLess.

Only the linux-noble-rocm-py3.12-mi355 workflow surfaces this since it is the only runner with the origami package installed; everywhere else HAS_ORIGAMI=False and the class is skipped.

Restore unlimited max_mm_configs for this test via config.patch so the differential comparison is meaningful again.

Authored with Claude.

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @jerrymannil @xinyazhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben

PR #181617 added a global test_configs.max_mm_configs=2 cap in
InductorTestCase. test_origami_reduces_compile_work_vs_regular_max_autotune
compares benchmark_gpu_calls between origami (topk-limited) and regular
max_autotune; with both paths capped at 2 candidates the autotuner
short-circuits in both branches and produces 0 vs 0, failing assertLess.

Only the linux-noble-rocm-py3.12-mi355 workflow surfaces this since it
is the only runner with the origami package installed; everywhere else
HAS_ORIGAMI=False and the class is skipped.

Restore unlimited max_mm_configs for this test via config.patch so the
differential comparison is meaningful again.

Authored with Claude.
@pytorch-bot

pytorch-bot Bot commented May 19, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ You can merge normally! (5 Unrelated Failures)

As of commit e4b754d with merge base 6c805de (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

@jeffdaily
jeffdaily marked this pull request as ready for review May 19, 2026 15:42
@pragupta pragupta added ciflow/trunk Trigger trunk jobs on your pull request ciflow/inductor-rocm-mi200 Trigger "inductor" config CI on ROCm MI200 ciflow/inductor-rocm-mi300 Trigger "inductor" config CI on ROCm MI300/MI325 ciflow/inductor-rocm-mi355 Trigger "inductor" config CI on ROCm MI355 labels May 19, 2026
The 2-positional-arg form rejects None as arg2 (treated as "not
provided"). Use the dict form, matching PR #181617's own usage in
torch/_inductor/test_case.py.

Authored with Claude.
@jeffdaily

Copy link
Copy Markdown
Collaborator

@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

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@jeffdaily

Copy link
Copy Markdown
Collaborator

@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

@izaitsevfb

Copy link
Copy Markdown
Contributor

@pytorchbot revert -m "need to revert #181617" -c ghfirst

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pragupta your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels May 20, 2026
pytorchmergebot pushed a commit to khushi-411/pytorch that referenced this pull request May 20, 2026
…ap (pytorch#184389)

PR pytorch#181617 added a global test_configs.max_mm_configs=2 cap in InductorTestCase. test_origami_reduces_compile_work_vs_regular_max_autotune compares benchmark_gpu_calls between origami (topk-limited) and regular max_autotune; with both paths capped at 2 candidates the autotuner short-circuits in both branches and produces 0 vs 0, failing assertLess.

Only the linux-noble-rocm-py3.12-mi355 workflow surfaces this since it is the only runner with the origami package installed; everywhere else HAS_ORIGAMI=False and the class is skipped.

Restore unlimited max_mm_configs for this test via config.patch so the differential comparison is meaningful again.

Authored with Claude.

Pull Request resolved: pytorch#184389
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
pytorchmergebot pushed a commit to weishi-deng/pytorch that referenced this pull request May 21, 2026
…ap (pytorch#184389)

PR pytorch#181617 added a global test_configs.max_mm_configs=2 cap in InductorTestCase. test_origami_reduces_compile_work_vs_regular_max_autotune compares benchmark_gpu_calls between origami (topk-limited) and regular max_autotune; with both paths capped at 2 candidates the autotuner short-circuits in both branches and produces 0 vs 0, failing assertLess.

Only the linux-noble-rocm-py3.12-mi355 workflow surfaces this since it is the only runner with the origami package installed; everywhere else HAS_ORIGAMI=False and the class is skipped.

Restore unlimited max_mm_configs for this test via config.patch so the differential comparison is meaningful again.

Authored with Claude.

Pull Request resolved: pytorch#184389
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
…ap (pytorch#184389)

PR pytorch#181617 added a global test_configs.max_mm_configs=2 cap in InductorTestCase. test_origami_reduces_compile_work_vs_regular_max_autotune compares benchmark_gpu_calls between origami (topk-limited) and regular max_autotune; with both paths capped at 2 candidates the autotuner short-circuits in both branches and produces 0 vs 0, failing assertLess.

Only the linux-noble-rocm-py3.12-mi355 workflow surfaces this since it is the only runner with the origami package installed; everywhere else HAS_ORIGAMI=False and the class is skipped.

Restore unlimited max_mm_configs for this test via config.patch so the differential comparison is meaningful again.

Authored with Claude.

Pull Request resolved: pytorch#184389
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions Bot added the Stale label Jul 19, 2026
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…ap (pytorch#184389)

PR pytorch#181617 added a global test_configs.max_mm_configs=2 cap in InductorTestCase. test_origami_reduces_compile_work_vs_regular_max_autotune compares benchmark_gpu_calls between origami (topk-limited) and regular max_autotune; with both paths capped at 2 candidates the autotuner short-circuits in both branches and produces 0 vs 0, failing assertLess.

Only the linux-noble-rocm-py3.12-mi355 workflow surfaces this since it is the only runner with the origami package installed; everywhere else HAS_ORIGAMI=False and the class is skipped.

Restore unlimited max_mm_configs for this test via config.patch so the differential comparison is meaningful again.

Authored with Claude.

Pull Request resolved: pytorch#184389
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
@github-actions github-actions Bot closed this Aug 18, 2026
@github-actions
github-actions Bot deleted the jeffdaily/fix-test-origami-max-mm-configs branch September 18, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/inductor ciflow/inductor-rocm-mi200 Trigger "inductor" config CI on ROCm MI200 ciflow/inductor-rocm-mi300 Trigger "inductor" config CI on ROCm MI300/MI325 ciflow/inductor-rocm-mi355 Trigger "inductor" config CI on ROCm MI355 ciflow/trunk Trigger trunk jobs on your pull request Merged module: inductor module: rocm AMD GPU support for Pytorch open source Reverted Stale topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants