Skip to content

[inductor][refactor] Drop the dead num_stages axis from ROCm exhaustive mm configs - #192286

Closed
desertfire wants to merge 1 commit into
gh/desertfire/754/basefrom
gh/desertfire/754/head
Closed

desertfire wants to merge 1 commit into
gh/desertfire/754/basefrom
gh/desertfire/754/head

Conversation

@desertfire

@desertfire desertfire commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

ROCmConfigHeuristic._filter_configs overwrites num_stages on every config with
self.default_num_stages -- this is intentional, and both the origami selection
path and its LDS pre-filter are written to match that post-filter state. But
exhaustive_configs also enumerated for num_stages in [1, default_num_stages],
so half of the generated configs were byte-identical to the other half once
filtering ran, and num_stages=1 was never actually tried. The duplicates were
silently discarded later by the dedup key in _finalize_mm_configs, so this only
wasted work and made the search space look like it covered an axis it did not.

Halves the exhaustive candidate count before dedup with no change in the set of
configs actually benchmarked.

Authored with the assistance from an AI coding agent.

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

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit a2545ba with merge base 100c32b (image):
💚 Looks good so far! There are no failures yet. 💚

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

@desertfire desertfire changed the title [inductor] Drop the dead num_stages axis from ROCm exhaustive mm configs [inductor][refactor] Drop the dead num_stages axis from ROCm exhaustive mm configs Aug 19, 2026
@desertfire

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 19, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: Approvers from one of the following sets are needed:

  • Metamates (aditvenk, AmesingFlank, amirafzali, angelayi, anshul-si, ...)
  • Greenlight Review Bot (pytorchgreenlight)
  • Core Reviewers (mruberry, lezcano, Skylion007, ngimel, peterbell10, ...)
  • Core Maintainers (soumith, gchanan, ezyang, malfet, albanD, ...)
Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchmergebot 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

orrangetabby17 pushed a commit to orrangetabby17/pytorch that referenced this pull request Sep 2, 2026
…ve mm configs (pytorch#192286)

ROCmConfigHeuristic._filter_configs overwrites num_stages on every config with
self.default_num_stages -- this is intentional, and both the origami selection
path and its LDS pre-filter are written to match that post-filter state. But
exhaustive_configs also enumerated `for num_stages in [1, default_num_stages]`,
so half of the generated configs were byte-identical to the other half once
filtering ran, and num_stages=1 was never actually tried. The duplicates were
silently discarded later by the dedup key in _finalize_mm_configs, so this only
wasted work and made the search space look like it covered an axis it did not.

Halves the exhaustive candidate count before dedup with no change in the set of
configs actually benchmarked.

Authored with the assistance from an AI coding agent.

Pull Request resolved: pytorch#192286
Approved by: https://github.com/jgong5, https://github.com/jeffdaily
ghstack dependencies: pytorch#192285
Sanskaaar1 pushed a commit to Sanskaaar1/pytorch that referenced this pull request Sep 8, 2026
…ve mm configs (pytorch#192286)

ROCmConfigHeuristic._filter_configs overwrites num_stages on every config with
self.default_num_stages -- this is intentional, and both the origami selection
path and its LDS pre-filter are written to match that post-filter state. But
exhaustive_configs also enumerated `for num_stages in [1, default_num_stages]`,
so half of the generated configs were byte-identical to the other half once
filtering ran, and num_stages=1 was never actually tried. The duplicates were
silently discarded later by the dedup key in _finalize_mm_configs, so this only
wasted work and made the search space look like it covered an axis it did not.

Halves the exhaustive candidate count before dedup with no change in the set of
configs actually benchmarked.

Authored with the assistance from an AI coding agent.

Pull Request resolved: pytorch#192286
Approved by: https://github.com/jgong5, https://github.com/jeffdaily
ghstack dependencies: pytorch#192285
@github-actions
github-actions Bot deleted the gh/desertfire/754/head branch October 31, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/torchtitan Run TorchTitan integration tests ciflow/trunk Trigger trunk jobs on your pull request Merged module: inductor module: rocm AMD GPU support for Pytorch topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants