You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JIT] [fix] Treat runtime GPU architecture as a compile-time constant under torch.compile - #7741
Mark get_gfx_runtime() with torch.compiler.assume_constant_result, so TorchDynamo evaluates the live GPU architecture once at trace time and treats the result as a constant instead of tracing into the rocminfo probe. This removes the runtime architecture probe as a blocker for torch.compile(fullgraph=True). The bf16/fp16 public attention cases listed below compile through the existing non-FlyDSL fallback backends. FlyDSL FP8 attention remains outside this claim: on FlyDSL 0.5.0 with PyTorch 2.13 and MI350X, tracing still fails in FlyDSL's own architecture probe.
Motivation
With FlyDSL installed, torch.compile(fullgraph=True) over aiter.flash_attn_varlen_func fails on the first call:
torch._dynamo.exc.Unsupported: Attempted to call function marked as skipped
Explanation: Dynamo does not know how to trace the builtin `posix.stat.`
The call chain is flash_attn_varlen_func -> flydsl_flash_attn_varlen_fwd (aiter/ops/flydsl/fmha_kernels.py) -> get_gfx_runtime() -> _detect_native() -> _gpu_info_output() -> executable_path("rocminfo") -> shutil.which -> posix.stat. Dynamo ignores functools.lru_cache wrappers and traces the wrapped function, so warming the cache in eager mode does not help. The probe runs before the FlyDSL eligibility checks, so it also blocks requests that would otherwise fall through to CK, such as fp16.
Changes
aiter/jit/utils/chip_info.py: decorate get_gfx_runtime() with torch.compiler.assume_constant_result beneath the existing functools.lru_cache. The function already returns one process-wide cached value, so baking it into the graph does not change behavior. Build tooling imports chip_info where PyTorch can be absent, so the import falls back to an identity decorator. This mirrors the ImportError fallback in torch_guard.torch_compile_guard.
op_tests/test_build_targets_architecture.py: add a fullgraph=True regression test that runs with cold and warm probe caches.
The pattern already exists in AITER. torch.compiler.assume_constant_result marks device- and config-derived values as compile-time constants in aiter/ops/gemm_op_a6w6.py (_compiled_is_gfx950_device, _compiled_gemm_a6w6_configs), aiter/ops/gemm_op_a6w4.py, aiter/ops/gemm_op_a4w6.py, aiter/ops/triton/attention/sol_attn_pool.py, and aiter/ops/triton/attention/sol_tilt.py.
Eager behavior, GPU_ARCHS handling (runtime detection still ignores it), the AITER_AOT_REPLAY path, exact identities such as gfx1250-strict, and get_gfx_runtime_for_device() are unchanged.
Testing
Unit tests added or updated
Performance benchmarks run
Tested on MI250X
Tested on MI300X
Tested on MI350X (gfx950). Performance is not applicable: no kernel or dispatch change, and the eager path returns the same cached value.
Documentation
Docstrings updated
User guide updated
Performance guide updated
No documentation change is needed, with the reason stated below
get_gfx_runtime() keeps its documented contract; only its behavior under tracing changes.
Before this change, Dynamo traces the runtime architecture probe through shutil.which and subprocess.run. With torch.compile(fullgraph=True), this fails on posix.stat, even after an eager warm-up, because Dynamo ignores the lru_cache wrapper. The constant-result marker makes Dynamo evaluate get_gfx_runtime() at trace time and insert the architecture without an architecture guard. This removes that probe as a tracing blocker; the validated public attention cases use the existing non-FlyDSL fallback backends. It does not establish fullgraph support for FlyDSL FP8 attention.
The compiled graph assumes that the architecture remains fixed. Eager caching is unchanged, but cache_clear() does not invalidate existing compiled code; a changed architecture requires a fresh trace. The docstring now states this contract and explains the expected Dynamo warning about the lru_cache wrapper. Since the previous reviewed revision, 90d2c308, the only source changes are this documentation and test cleanup: each probe cleanup is registered once, and Dynamo is reset after the test, including on failure. Each cold/warm subtest still resets Dynamo and clears the probe caches before tracing. No kernel or dispatch logic changed in these two follow-up commits.
Validation and unverified scope
Local environment: amdsiloai/pytorch-xdit-staging:b69c7a4-temp, PyTorch 2.13.0+git3369fa2, HIP 7.18.26443, FlyDSL 0.5.0, Triton 3.8.0, one AMD Instinct MI350X (gfx950). GPU runs used /opt/brr/brr run --gpus 1 inside Docker.
Test cleanup validation: python -m pytest -q op_tests/test_build_targets_architecture.py passed with 31 tests, 52 subtests, and one expected Dynamo lru_cache warning. This run used the final test implementation before the docstring-only addition; no executable helper code changed afterward.
Final file contents: python -m black --check aiter/jit/utils/chip_info.py op_tests/test_build_targets_architecture.py (26.3.0) and python -m ruff check --no-cache aiter/jit/utils/chip_info.py op_tests/test_build_targets_architecture.py (0.15.7) both passed in Docker.
Earlier regression evidence at 90d2c308: the architecture test file passed with 31 tests. At the test-only parent, 33e6ca847, the new regression failed in both warm=False and warm=True subtests because Dynamo could not trace posix.stat.
Earlier public API validation at 90d2c308: torch.compile(fullgraph=True) with Inductor, triton.cudagraphs=False, three fresh inputs per case, and exact (rtol=0, atol=0) eager comparisons passed all 8 cases: flash_attn_varlen_func for (bf16, 128, 128), (fp16, 128, 128), and (bf16, 192, 128), each with return_lse True and False, plus flash_attn_func bf16 128 with both return_lse values. These cases fall through to non-FlyDSL backends. The first case failed on the baseline with posix.stat. These public API checks were not rerun for the documentation and cleanup commits.
Earlier no-PyTorch validation at 90d2c308: chip_info imported with PyTorch unavailable, strict AOT replay returned gfx1250-strict, the offline build target was [("gfx1250-strict", 256)], and no torch module loaded. This check was not rerun for the documentation and cleanup commits.
Remaining FP8 failure reproduced at 90d2c308: public causal varlen attention with FP8 e4m3, head dimension 128, fullgraph=True, and backend="eager" fails in FlyDSL's own architecture probe at _thread.allocate_lock inside subprocess.check_output. Removing the constant-result marker restores the earlier posix.stat failure. This confirms the separate blocker on FlyDSL 0.5.0 and PyTorch 2.13.
GitHub checks at this update: Black, Ruff, Check Repository Dependency, Aiter Test Gate, and OPUS Tests (MI350X DPX) passed. The latest Aiter wheel-build job was still queued; CI was not yet complete.
Unverified locally: gfx942/MI300X, gfx1250 hardware, the Windows hipinfo/Torch fallback, PyTorch versions other than 2.13, and compiled runs with CUDA graphs enabled. Other compiled callers of get_gfx_runtime() were not exercised individually. FlyDSL FP8 fullgraph execution has the known failure above.
PR-specific question
What changes in dependency, cache or compilation behavior, and how did you verify both a clean build and an existing-cache path?
Dependency: none added. The torch.compiler import falls back to an identity decorator when PyTorch is unavailable; the earlier no-PyTorch check covers that path. JIT build behavior and cache keys are unchanged: build paths use get_gfx() and GPU_ARCHS, which this PR does not modify.
Compilation: Dynamo evaluates get_gfx_runtime() at trace time and inserts the result without an architecture guard. Python cache clearing does not update an existing graph. The test clears the get_gfx_runtime, _detect_native, and _gpu_info_output caches before each subtest, then compiles once with cold caches and once after an eager warm-up. Both cases fail before the marker and pass with it; the cleanup revision also passed both cases. Final cleanup clears all three probe caches and resets Dynamo.
Build-cache evidence comes from the earlier public API validation at 90d2c308: the first run used a fresh worktree with an empty aiter/jit/build and built the required modules, then a rerun passed with those artifacts cached. The two follow-up commits change only documentation and test cleanup, so the build-cache checks were not repeated.
Changed op tests
op_tests/test_build_targets_architecture.py adds TestRuntimeArchitecture.test_runtime_arch_fullgraph_with_cold_and_warm_caches. It compiles an architecture-dependent branch with torch.compile(backend="eager", fullgraph=True), checks the exact architecture string and tensor result against eager, and covers both cold and warm probe caches. The CPU tensor and eager compiler backend isolate Dynamo tracing from kernel compilation. The test still needs a live GPU for real architecture detection and skips without one.
The existing tests exercise eager detection and mocks; they do not trace the real probe and cannot detect this graph break. The added cleanup registers each probe once and resets Dynamo after the test, while retaining the per-subtest resets needed for independent cold/warm cases. The final test implementation passed in the full architecture test file: 31 tests and 52 subtests.
ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm
vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all
All standard extended tests (excludes ci:atom_full)
Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 7741 --add-label <label>
One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.
PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.
Reviews:
A reviewer is usually assigned within one working day after the PR is ready for review (see Code Review Process). If nobody has responded for about a week, mention the area contact listed in CONTACTS.md. Want to help review? See REVIEWERS.md.
lauri9
changed the title
Fix/jit runtime arch fullgraph
[fix] Treat runtime GPU architecture as a compile-time constant under torch.compile
Nov 25, 2026
github-actionsBot
changed the title
[fix] Treat runtime GPU architecture as a compile-time constant under torch.compile
[JIT] [fix] Treat runtime GPU architecture as a compile-time constant under torch.compile
Dec 2, 2026
PASS — current-SHA answers are present and structurally specific
Show the author's self-review answers
Behavior and intent
Before this change, Dynamo traces the runtime architecture probe through `shutil.which` and `subprocess.run`. With `torch.compile(fullgraph=True)`, this fails on `posix.stat`, even after an eager warm-up, because Dynamo ignores the `lru_cache` wrapper. The constant-result marker makes Dynamo evaluate `get_gfx_runtime()` at trace time and insert the architecture without an architecture guard. This removes that probe as a tracing blocker; the validated public attention cases use the existing non-FlyDSL fallback backends. It does not establish fullgraph support for FlyDSL FP8 attention.
The compiled graph assumes that the architecture remains fixed. Eager caching is unchanged, but `cache_clear()` does not invalidate existing compiled code; a changed architecture requires a fresh trace. The docstring now states this contract and explains the expected Dynamo warning about the `lru_cache` wrapper. Since the previous reviewed revision, `90d2c308`, the only source changes are this documentation and test cleanup: each probe cleanup is registered once, and Dynamo is reset after the test, including on failure. Each cold/warm subtest still resets Dynamo and clears the probe caches before tracing. No kernel or dispatch logic changed in these two follow-up commits.
Validation and unverified scope
Local environment: `amdsiloai/pytorch-xdit-staging:b69c7a4-temp`, PyTorch `2.13.0+git3369fa2`, HIP `7.18.26443`, FlyDSL 0.5.0, Triton 3.8.0, one AMD Instinct MI350X (gfx950). GPU runs used `/opt/brr/brr run --gpus 1` inside Docker.
- Test cleanup validation: `python -m pytest -q op_tests/test_build_targets_architecture.py` passed with 31 tests, 52 subtests, and one expected Dynamo `lru_cache` warning. This run used the final test implementation before the docstring-only addition; no executable helper code changed afterward.
- Final file contents: `python -m black --check aiter/jit/utils/chip_info.py op_tests/test_build_targets_architecture.py` (26.3.0) and `python -m ruff check --no-cache aiter/jit/utils/chip_info.py op_tests/test_build_targets_architecture.py` (0.15.7) both passed in Docker.
- Earlier regression evidence at `90d2c308`: the architecture test file passed with 31 tests. At the test-only parent, `33e6ca847`, the new regression failed in both `warm=False` and `warm=True` subtests because Dynamo could not trace `posix.stat`.
- Earlier public API validation at `90d2c308`: `torch.compile(fullgraph=True)` with Inductor, `triton.cudagraphs=False`, three fresh inputs per case, and exact (`rtol=0, atol=0`) eager comparisons passed all 8 cases: `flash_attn_varlen_func` for (bf16, 128, 128), (fp16, 128, 128), and (bf16, 192, 128), each with `return_lse` True and False, plus `flash_attn_func` bf16 128 with both `return_lse` values. These cases fall through to non-FlyDSL backends. The first case failed on the baseline with `posix.stat`. These public API checks were not rerun for the documentation and cleanup commits.
- Earlier no-PyTorch validation at `90d2c308`: `chip_info` imported with PyTorch unavailable, strict AOT replay returned `gfx1250-strict`, the offline build target was `[("gfx1250-strict", 256)]`, and no `torch` module loaded. This check was not rerun for the documentation and cleanup commits.
- Remaining FP8 failure reproduced at `90d2c308`: public causal varlen attention with FP8 e4m3, head dimension 128, `fullgraph=True`, and `backend="eager"` fails in FlyDSL's own architecture probe at `_thread.allocate_lock` inside `subprocess.check_output`. Removing the constant-result marker restores the earlier `posix.stat` failure. This confirms the separate blocker on FlyDSL 0.5.0 and PyTorch 2.13.
- GitHub checks at this update: Black, Ruff, Check Repository Dependency, Aiter Test Gate, and OPUS Tests (MI350X DPX) passed. The latest Aiter wheel-build job was still queued; CI was not yet complete.
Unverified locally: gfx942/MI300X, gfx1250 hardware, the Windows `hipinfo`/Torch fallback, PyTorch versions other than 2.13, and compiled runs with CUDA graphs enabled. Other compiled callers of `get_gfx_runtime()` were not exercised individually. FlyDSL FP8 fullgraph execution has the known failure above.
PR-specific question
> What changes in dependency, cache or compilation behavior, and how did you verify both a clean build and an existing-cache path?
Dependency: none added. The `torch.compiler` import falls back to an identity decorator when PyTorch is unavailable; the earlier no-PyTorch check covers that path. JIT build behavior and cache keys are unchanged: build paths use `get_gfx()` and `GPU_ARCHS`, which this PR does not modify.
Compilation: Dynamo evaluates `get_gfx_runtime()` at trace time and inserts the result without an architecture guard. Python cache clearing does not update an existing graph. The test clears the `get_gfx_runtime`, `_detect_native`, and `_gpu_info_output` caches before each subtest, then compiles once with cold caches and once after an eager warm-up. Both cases fail before the marker and pass with it; the cleanup revision also passed both cases. Final cleanup clears all three probe caches and resets Dynamo.
Build-cache evidence comes from the earlier public API validation at `90d2c308`: the first run used a fresh worktree with an empty `aiter/jit/build` and built the required modules, then a rerun passed with those artifacts cached. The two follow-up commits change only documentation and test cleanup, so the build-cache checks were not repeated.
Changed op tests
`op_tests/test_build_targets_architecture.py` adds `TestRuntimeArchitecture.test_runtime_arch_fullgraph_with_cold_and_warm_caches`. It compiles an architecture-dependent branch with `torch.compile(backend="eager", fullgraph=True)`, checks the exact architecture string and tensor result against eager, and covers both cold and warm probe caches. The CPU tensor and eager compiler backend isolate Dynamo tracing from kernel compilation. The test still needs a live GPU for real architecture detection and skips without one.
The existing tests exercise eager detection and mocks; they do not trace the real probe and cannot detect this graph break. The added cleanup registers each probe once and resets Dynamo after the test, while retaining the per-subtest resets needed for independent cold/warm cases. The final test implementation passed in the full architecture test file: 31 tests and 52 subtests.
PR state
PASS — pull request is marked ready for review
Copilot findings
PASS — no active Copilot finding lacks a substantive author reply
ADVISORY — Copilot did not review the current head SHA
Code and op-test hygiene
PASS — no committed artifact or conflict marker detected
Required CI
PASS — Black: passed
PASS — Ruff: passed
PASS — Repository dependency: passed
FAIL — Aiter Test Gate: failed
Required CI failed; fix it before requesting human review.
Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.
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
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.
Summary
Mark
get_gfx_runtime()withtorch.compiler.assume_constant_result, so TorchDynamo evaluates the live GPU architecture once at trace time and treats the result as a constant instead of tracing into therocminfoprobe. This removes the runtime architecture probe as a blocker fortorch.compile(fullgraph=True). The bf16/fp16 public attention cases listed below compile through the existing non-FlyDSL fallback backends. FlyDSL FP8 attention remains outside this claim: on FlyDSL 0.5.0 with PyTorch 2.13 and MI350X, tracing still fails in FlyDSL's own architecture probe.Motivation
With FlyDSL installed,
torch.compile(fullgraph=True)overaiter.flash_attn_varlen_funcfails on the first call:The call chain is
flash_attn_varlen_func->flydsl_flash_attn_varlen_fwd(aiter/ops/flydsl/fmha_kernels.py) ->get_gfx_runtime()->_detect_native()->_gpu_info_output()->executable_path("rocminfo")->shutil.which->posix.stat. Dynamo ignoresfunctools.lru_cachewrappers and traces the wrapped function, so warming the cache in eager mode does not help. The probe runs before the FlyDSL eligibility checks, so it also blocks requests that would otherwise fall through to CK, such as fp16.Changes
aiter/jit/utils/chip_info.py: decorateget_gfx_runtime()withtorch.compiler.assume_constant_resultbeneath the existingfunctools.lru_cache. The function already returns one process-wide cached value, so baking it into the graph does not change behavior. Build tooling importschip_infowhere PyTorch can be absent, so the import falls back to an identity decorator. This mirrors theImportErrorfallback intorch_guard.torch_compile_guard.op_tests/test_build_targets_architecture.py: add afullgraph=Trueregression test that runs with cold and warm probe caches.The pattern already exists in AITER.
torch.compiler.assume_constant_resultmarks device- and config-derived values as compile-time constants inaiter/ops/gemm_op_a6w6.py(_compiled_is_gfx950_device,_compiled_gemm_a6w6_configs),aiter/ops/gemm_op_a6w4.py,aiter/ops/gemm_op_a4w6.py,aiter/ops/triton/attention/sol_attn_pool.py, andaiter/ops/triton/attention/sol_tilt.py.Eager behavior,
GPU_ARCHShandling (runtime detection still ignores it), theAITER_AOT_REPLAYpath, exact identities such asgfx1250-strict, andget_gfx_runtime_for_device()are unchanged.Testing
Tested on MI350X (gfx950). Performance is not applicable: no kernel or dispatch change, and the eager path returns the same cached value.
Documentation
get_gfx_runtime()keeps its documented contract; only its behavior under tracing changes.Dependencies
Breaking Changes
None.
PR Self-Review
Reviewed revision
e2ce134
Behavior and intent
Before this change, Dynamo traces the runtime architecture probe through
shutil.whichandsubprocess.run. Withtorch.compile(fullgraph=True), this fails onposix.stat, even after an eager warm-up, because Dynamo ignores thelru_cachewrapper. The constant-result marker makes Dynamo evaluateget_gfx_runtime()at trace time and insert the architecture without an architecture guard. This removes that probe as a tracing blocker; the validated public attention cases use the existing non-FlyDSL fallback backends. It does not establish fullgraph support for FlyDSL FP8 attention.The compiled graph assumes that the architecture remains fixed. Eager caching is unchanged, but
cache_clear()does not invalidate existing compiled code; a changed architecture requires a fresh trace. The docstring now states this contract and explains the expected Dynamo warning about thelru_cachewrapper. Since the previous reviewed revision,90d2c308, the only source changes are this documentation and test cleanup: each probe cleanup is registered once, and Dynamo is reset after the test, including on failure. Each cold/warm subtest still resets Dynamo and clears the probe caches before tracing. No kernel or dispatch logic changed in these two follow-up commits.Validation and unverified scope
Local environment:
amdsiloai/pytorch-xdit-staging:b69c7a4-temp, PyTorch2.13.0+git3369fa2, HIP7.18.26443, FlyDSL 0.5.0, Triton 3.8.0, one AMD Instinct MI350X (gfx950). GPU runs used/opt/brr/brr run --gpus 1inside Docker.python -m pytest -q op_tests/test_build_targets_architecture.pypassed with 31 tests, 52 subtests, and one expected Dynamolru_cachewarning. This run used the final test implementation before the docstring-only addition; no executable helper code changed afterward.python -m black --check aiter/jit/utils/chip_info.py op_tests/test_build_targets_architecture.py(26.3.0) andpython -m ruff check --no-cache aiter/jit/utils/chip_info.py op_tests/test_build_targets_architecture.py(0.15.7) both passed in Docker.90d2c308: the architecture test file passed with 31 tests. At the test-only parent,33e6ca847, the new regression failed in bothwarm=Falseandwarm=Truesubtests because Dynamo could not traceposix.stat.90d2c308:torch.compile(fullgraph=True)with Inductor,triton.cudagraphs=False, three fresh inputs per case, and exact (rtol=0, atol=0) eager comparisons passed all 8 cases:flash_attn_varlen_funcfor (bf16, 128, 128), (fp16, 128, 128), and (bf16, 192, 128), each withreturn_lseTrue and False, plusflash_attn_funcbf16 128 with bothreturn_lsevalues. These cases fall through to non-FlyDSL backends. The first case failed on the baseline withposix.stat. These public API checks were not rerun for the documentation and cleanup commits.90d2c308:chip_infoimported with PyTorch unavailable, strict AOT replay returnedgfx1250-strict, the offline build target was[("gfx1250-strict", 256)], and notorchmodule loaded. This check was not rerun for the documentation and cleanup commits.90d2c308: public causal varlen attention with FP8 e4m3, head dimension 128,fullgraph=True, andbackend="eager"fails in FlyDSL's own architecture probe at_thread.allocate_lockinsidesubprocess.check_output. Removing the constant-result marker restores the earlierposix.statfailure. This confirms the separate blocker on FlyDSL 0.5.0 and PyTorch 2.13.Unverified locally: gfx942/MI300X, gfx1250 hardware, the Windows
hipinfo/Torch fallback, PyTorch versions other than 2.13, and compiled runs with CUDA graphs enabled. Other compiled callers ofget_gfx_runtime()were not exercised individually. FlyDSL FP8 fullgraph execution has the known failure above.PR-specific question
Dependency: none added. The
torch.compilerimport falls back to an identity decorator when PyTorch is unavailable; the earlier no-PyTorch check covers that path. JIT build behavior and cache keys are unchanged: build paths useget_gfx()andGPU_ARCHS, which this PR does not modify.Compilation: Dynamo evaluates
get_gfx_runtime()at trace time and inserts the result without an architecture guard. Python cache clearing does not update an existing graph. The test clears theget_gfx_runtime,_detect_native, and_gpu_info_outputcaches before each subtest, then compiles once with cold caches and once after an eager warm-up. Both cases fail before the marker and pass with it; the cleanup revision also passed both cases. Final cleanup clears all three probe caches and resets Dynamo.Build-cache evidence comes from the earlier public API validation at
90d2c308: the first run used a fresh worktree with an emptyaiter/jit/buildand built the required modules, then a rerun passed with those artifacts cached. The two follow-up commits change only documentation and test cleanup, so the build-cache checks were not repeated.Changed op tests
op_tests/test_build_targets_architecture.pyaddsTestRuntimeArchitecture.test_runtime_arch_fullgraph_with_cold_and_warm_caches. It compiles an architecture-dependent branch withtorch.compile(backend="eager", fullgraph=True), checks the exact architecture string and tensor result against eager, and covers both cold and warm probe caches. The CPU tensor and eager compiler backend isolate Dynamo tracing from kernel compilation. The test still needs a live GPU for real architecture detection and skips without one.The existing tests exercise eager detection and mocks; they do not trace the real probe and cannot detect this graph break. The added cleanup registers each probe once and resets Dynamo after the test, while retaining the per-subtest resets needed for independent cold/warm cases. The final test implementation passed in the full architecture test file: 31 tests and 52 subtests.