Repository navigation
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/199248
Note: Links to docs will display an error until the docs builds have been completed. ⏳ 1 Pending, 2 Unrelated FailuresAs of commit 65b5c7c with merge base 67148e2 ( 🟢 GREEN LIGHT - PR approved to be merged without human review:
reason: 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. |
Contributor
Author
|
@pytorchbot merge |
Collaborator
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 |
cyyever
pushed a commit
to BakeLab/pytorch
that referenced
this pull request
Oct 11, 2026
…i-structured test (pytorch#199248) `test_max_autotune_cutlass_backend_sparse_semi_structured_mm` fails with `KeyError: 'high'` because it reads the autotune local cache with the legacy precision string. pytorch#189955 changed `PersistentCache` to key timings by `fp32_matmul_precision_key()`, so with the module's `torch.set_float32_matmul_precision("high")` the bucket is now `"cuda:tf32,mkldnn:tf32"`. That PR updated `test_codecache.py` but missed this lookup. The test now indexes the cache with the same helper the cache writes with. OSS CI did not catch this because nothing runs the test on hardware where it executes. It is gated to sm_8x exactly; the only OSS job that runs `test_cutlass_backend.py` is `h100-cutlass-backend`, where it skips, and the A10G inductor jobs exclude the file. It fails in fbcode, where the file runs on A100. Test Plan: On an A100 (sm_80), with CUDA 13.0 `nvcc` on PATH: ``` python test/inductor/test_cutlass_backend.py -k test_max_autotune_cutlass_backend_sparse_semi_structured_mm ``` Fails with `KeyError: 'high'` before this change and passes after. This PR was authored with the assistance of an AI coding assistant (Claude). Pull Request resolved: pytorch#199248 Approved by: https://github.com/pytorchgreenlight
pytorchmergebot
pushed a commit
that referenced
this pull request
Oct 14, 2026
…ed test (#200861) `test_max_autotune_cutlass_backend_sparse_semi_structured_mm` fails with a `KeyError` on its inputs key because it reads the autotune local cache with a key the cache no longer writes. #194649 made `PersistentCache` store timings under `create_benchmark_cache_key(inputs_key, ...)`, which appends the benchmark policy (`:benchmark_policy=eager` by default), but this lookup still uses the bare inputs key. The test now builds the key with the same helper, inside the `config.patch` block because the policy depends on `max_autotune`. This is the only test that reads `LocalCache` directly. OSS CI did not catch it for the same reason it missed #199248: the test is gated to sm_8x exactly, and no OSS job runs `test_cutlass_backend.py` on that hardware. It fails in fbcode, where the file runs on A100. Test Plan: On an A100 (sm_80), with CUDA 13.0 `nvcc` on PATH: ``` python test/inductor/test_cutlass_backend.py -k test_max_autotune_cutlass_backend_sparse_semi_structured_mm ``` Fails with `KeyError: "[('cuda', 'torch.float16', 32, 32, 32, 1, 0), ...]"` before this change and passes after, including with an empty `TORCHINDUCTOR_CACHE_DIR`. This PR was authored with the assistance of an AI coding assistant (Claude). Pull Request resolved: #200861 Approved by: https://github.com/pytorchgreenlight
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
test_max_autotune_cutlass_backend_sparse_semi_structured_mmfails withKeyError: 'high'because it reads the autotune local cache with the legacyprecision string. #189955 changed
PersistentCacheto key timings byfp32_matmul_precision_key(), so with the module'storch.set_float32_matmul_precision("high")the bucket is now"cuda:tf32,mkldnn:tf32". That PR updatedtest_codecache.pybut missedthis lookup. The test now indexes the cache with the same helper the cache
writes with.
OSS CI did not catch this because nothing runs the test on hardware where it
executes. It is gated to sm_8x exactly; the only OSS job that runs
test_cutlass_backend.pyish100-cutlass-backend, where it skips, and theA10G inductor jobs exclude the file. It fails in fbcode, where the file runs
on A100.
Test Plan:
On an A100 (sm_80), with CUDA 13.0
nvccon PATH:Fails with
KeyError: 'high'before this change and passes after.This PR was authored with the assistance of an AI coding assistant (Claude).
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo