Repository navigation
[inductor] Fix EXHAUSTIVE search space check in tuned_mm - #192285
desertfire wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/192285
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 beb66fe with merge base 100c32b ( 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. |
|
@pytorchbot merge |
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 |
Merge failedReason: 2 jobs have failed, first few of them are: B200 Smoke Tests / linux-jammy-cuda13.0-py3.12-gcc11-sm100 / test (smoke_b200, 1, 1, linux.dgx.b200), B200 Smoke Tests / linux-jammy-cuda13.2-py3.12-gcc11-sm100 / test (smoke_b200, 1, 1, linux.dgx.b200) Details for Dev Infra teamRaised by workflow job |
|
@claude , is the inductor/test_torchinductor_opinfo failure related? |
|
Claude finished @desertfire's task in 3m 20s —— View job No — the
|
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 3 checks: B200 Smoke Tests / linux-jammy-cuda13.0-py3.12-gcc11-sm100 / test (smoke_b200, 1, 1, linux.dgx.b200), B200 Smoke Tests / linux-jammy-cuda13.2-py3.12-gcc11-sm100 / test (smoke_b200, 1, 1, linux.dgx.b200), trunk / linux-jammy-rocm-py3.10-mi350 / test (default, 4, 8, linux.rocm.gpu.gfx950.1) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…ve mm configs (#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: #192286 Approved by: https://github.com/jgong5, https://github.com/jeffdaily ghstack dependencies: #192285
) max_autotune_gemm_search_space is a Literal["DEFAULT", "EXHAUSTIVE"], and every other comparison site in inductor tests it against "EXHAUSTIVE". tuned_mm compared against lowercase "exhaustive", so is_exhaustive was always False and the escape hatch it guards never fired: on shapes where decompose_k applies at threshold_multiple=2 the plain mm template was dropped even under EXHAUSTIVE, where the user has explicitly asked for every choice to be considered. Authored with the assistance of an AI coding agent. Pull Request resolved: pytorch#192285 Approved by: https://github.com/eellison
…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
…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
Stack from ghstack (oldest at bottom):
max_autotune_gemm_search_space is a Literal["DEFAULT", "EXHAUSTIVE"], and every
other comparison site in inductor tests it against "EXHAUSTIVE". tuned_mm
compared against lowercase "exhaustive", so is_exhaustive was always False and
the escape hatch it guards never fired: on shapes where decompose_k applies at
threshold_multiple=2 the plain mm template was dropped even under EXHAUSTIVE,
where the user has explicitly asked for every choice to be considered.
Authored with the assistance of an AI coding agent.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo