Skip to content

[OPUS] [FlyDSL] [JIT] [Bugfix] Fix metadata-only setup.py and empty rocminfo handling - #6260

Closed
yuychang wants to merge 24 commits into
ROCm:mainfrom
yuychang:k3/jit-build-fixes
Closed

yuychang wants to merge 24 commits into
ROCm:mainfrom
yuychang:k3/jit-build-fixes

Conversation

@yuychang

@yuychang yuychang commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fixes three host-side build/JIT problems; no kernel change
    • setup.py: metadata-only runs skip installs, aiter_meta/ staging and kernel prebuild
    • chip_info.py: get_gfx_runtime() and get_cu_num() answer per device, with a Torch fallback
    • jit/core.py: loading a .so without the running arch raises when a rebuild would not cover it
  • The torch_to_c_types fix that was here moved to [HIP] [Bugfix] Accept generic torch.Stream in torch_to_c_types #7101

Motivation

Case On main With this PR
PREBUILD_KERNELS=1 pip install . metadata step fails: No module named 'jit' dry run: Would install amd-aiter-0.1.0
setup.py egg_info deletes an aiter_meta/ it did not stage keeps an existing one
rocminfo exits with empty stdout get_gfx_runtime() raises, though Torch sees the GPU falls back to Torch
Mixed-arch / mixed-CU node first rocminfo arch for all devices; get_cu_num() asserts per-device, cached per device
.so lacks running arch, GPU_ARCHS omits it warns, rebuilds with the same GPU_ARCHS, fails later RuntimeError at load, with a hint
  • "Fails later" on main: pybind raises ModuleNotFoundError after the rebuild; ctypes fails at the first launch

Changes

  • setup.py
    • _is_metadata_only() classifies the command line with setuptools' own parser
      • Option values (--output-dir build) are never read as commands; clean --all bdist_wheel still builds
    • BaseError falls back to DistutilsError, so setuptools 45-58.x still loads
    • aiter_meta/ is removed after a run that staged it, or after clean ran (not clean --help)
  • aiter/jit/utils/chip_info.py
    • _gpu_info_archs() lists every arch rocminfo/hipinfo reports, keeping gfx1250-strict intact
    • One arch and one CU count: cached once per node; otherwise read through Torch and cached per device
    • Current device differs from get_gfx(), CU_NUM unset, GPU_ARCHS native or unset:
      • get_build_targets() targets every CU count GFX_CU_NUMS_MAP lists for get_gfx()
    • get_asic_revision() is cached per arch
  • aiter/jit/core.py
    • _needs_arch_rebuild() rebuilds only when the --offload-arch list covers the running arch
    • Otherwise it raises RuntimeError naming the .so path, the arch and GPU_ARCHS
    • The ctypes path runs the same check after a cold build, not only for a cached .so
  • aiter/aot/flydsl/dry_run.py: pins _gpu_info_archs to the target arch, as it already pinned _detect_native
  • Tests: two new files in op_tests/ (moved from tests/, since main dropped pytest -q tests, [CI] Remove focused regression tests from aiter-test.yaml #8352)
    • aiter_test.sh runs them through pytest (no __main__); split_tests.sh finds them
    • Three existing op tests updated (see Changed op tests)

Performance

  • Cached call with HIP initialized; min of 5 x 200k calls, one process per revision
  • Author-measured against main 6fe1bfc on MI355X, ROCm 7.2.4; the table is not re-run at head
Hardware Workload Before (main) After Change
MI355X get_gfx_runtime(), uniform node 0.016 us 0.015 us none
MI355X get_cu_num(), uniform node 0.016 us 0.014 us none
MI355X mixed node, no rocminfo, or Windows without CU_NUM n/a about 0.24 us per-device read
  • Re-run at e4201a913 vs main 4ba20eba9b (MI355X, ROCm 10.0.0, two runs per side)
    • get_gfx_runtime(): head 0.018 / 0.014 us, main 0.016 / 0.016 us
    • get_cu_num(): head 0.014 / 0.014 us, main 0.016 / 0.015 us
    • Within run-to-run noise; the mixed-node row (about 0.24 us) has no log and is unmeasured at head

Testing

  • Unit tests added or updated
  • Performance benchmarks run
  • Tested on MI250X
  • Tested on MI300X (unit tests only, see below)
Hardware Head Files run Result
MI300X (gfx942) 48123d97b the 5 changed op test files 87 passed, worktree clean after
MI355X (gfx950) 5b075f8b6 the same 5 files 87 passed, 67 subtests passed
MI355X (gfx950) 535602a7c the same 5 files 86 passed, 67 subtests passed
  • MI300X (gfx942), per file at 48123d97b
File Passed
test_build_targets_architecture.py 29 (54 subtests)
test_jit_arch_guard.py 8
test_opus_co_profile.py 6 (13 subtests)
test_chip_info_fallback.py 16
test_setup_metadata_only.py 28
  • MI300X setup: one idle GPU, torch 2.11.0+rocm7.2, FlyDSL 0.5.0, run from a checkout of the exact head
  • Not run on MI300X: full build or wheel install, .github/scripts/aiter_test.sh

Documentation

  • Docstrings updated
  • User guide updated
  • Performance guide updated
  • No documentation change is needed

Dependencies

  • No new third-party dependencies added

Breaking Changes

  • get_gfx_runtime(), get_cu_num(), get_asic_revision() keep .cache_clear()
    • They lose cache_info() and __wrapped__; none is used in-tree or in SGLang
  • With an empty rocminfo, import aiter reads the arch through Torch, which initializes HIP in that process
  • Loading a .so without the running arch under a GPU_ARCHS that omits it now raises RuntimeError
    • Migration: set GPU_ARCHS to include the running arch
    • native also works, except on a mixed-arch Windows node (it means the first arch hipinfo reports)

PR Self-Review

Reviewed revision

48123d97be51df06df80290e5a95c5a22716b98e

Behavior and intent

  • Metadata-only setup.py runs no longer install, stage or prebuild; only clean removes aiter_meta/
  • Both chip_info functions answer for the current device and fall back to Torch instead of raising
  • A JIT module that cannot run on the current GPU fails at load with a GPU_ARCHS hint, not at first launch

Validation

  • At 554f219e9, MI355X (gfx950), ROCm 7.2.4; not re-run at head
Command Result
pytest -q tests op_tests/test_build_targets_architecture.py 291 passed; 1 failure also fails on main
validate-kernel-pr on test_build_targets_architecture.py all stages pass (74/74); INCONCLUSIVE: no shape grid
PREBUILD_KERNELS=1 pip install --no-build-isolation --no-deps --dry-run . Would install amd-aiter-0.1.0
setup.py clean with a stale aiter_meta/ removed
  • Earlier author runs (at 10580d99c)
    • setup.py egg_info passes on setuptools 58.5.3 and 45.0.0
    • Mutants that cache node-wide fail test_switching_devices_switches_runtime_info
    • torch.compile(fullgraph=True) over get_cu_num() still compiles
    • PREBUILD_KERNELS=0 python3 setup.py clean --all bdist_wheel on a git archive tree ships aiter_meta/
    • Empty AITER_JIT_DIR builds and matches Torch; a reused JIT dir imports without a rebuild
    • FlyDSL AOT --check reports 12 ok
  • Title tags [OPUS] and [FlyDSL] come from one-line edits the chip_info change needs
    • test_opus_co_profile.py loads _asic_revision; dry_run.py pins _gpu_info_archs
    • .github/instructions/aiter-ops-flydsl.instructions.md exempts such one-line edits from "One Backend Per PR"
    • Neither kernel backend changes

Unverified

  • Windows, and a real mixed-arch node
  • Full build and pip install --dry-run at head; MI300X cold-build and existing-cache smoke
  • Downstream CI: ci:all for the jit/core.py change was not requested
  • chip_info and jit/core.py owner sign-off is pending (amd-ruitang3 and the other jit/core.py owners)
  • GPU_ARCHS=native on a mixed-arch node
    • Codegen targets (OPUS dispatch tables included) follow the first rocminfo arch only, as on main
    • Set GPU_ARCHS explicitly there
  • The guard runs at first module load; a later switch to a GPU of another arch reuses the handle, as on main
  • The JIT_LIB_EXT / IS_WINDOWS pin in the guard tests was not run on Windows

PR-specific question

What changes in dependency, cache or compilation behavior,
and how did you verify a clean build and an existing cache?

  • No dependency or compile-flag change; metadata-only runs skip the Triton and FlyDSL installs
  • setuptools' own setup_requires fetch in legacy python setup.py egg_info is unchanged and out of scope
    • The PEP 517 flow pip uses does not do it
  • _needs_arch_rebuild() rebuilds only when GPU_ARCHS covers the running arch; otherwise it raises at load
  • Clean-build and existing-cache checks are listed under Validation

Changed op tests

  • op_tests/test_build_targets_architecture.py
    • Mocks moved to _gpu_info_archs (the old ones would read the real tool)
    • The Linux no-fallback test asserts the rethrow without HIP
    • Still the canonical precedence test; the new files cover per-device behavior
  • op_tests/test_jit_arch_guard.py
    • test_needs_arch_rebuild runs its uncovered-arch cases under GPU_ARCHS=native
    • New load-time guard test: raises naming module, .so path, arch and GPU_ARCHS
      • A covering or native GPU_ARCHS rebuilds; a covered arch neither raises nor rebuilds
    • New cold-cache test: a fresh ctypes build that misses the running arch raises
      • It fails without the added call in build_ctypes_module
  • op_tests/test_opus_co_profile.py: the AST loader also loads _asic_revision
  • op_tests/test_chip_info_fallback.py (new)
    • Torch fallback for empty/missing/mixed rocminfo, per-device caching
    • Mixed-node build targets and per-arch get_asic_revision()
    • The cache_clear test fails with the extra clear removed
  • op_tests/test_setup_metadata_only.py (new): command classification and aiter_meta/ handling
    • Two rows run egg_info and dist_info with PREBUILD_KERNELS=1; both fail without the setup.py guard

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
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 6260 --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.

yuychang added a commit to yuychang/aiter that referenced this pull request Oct 14, 2026
@yuychang
yuychang marked this pull request as ready for review October 14, 2026 14:14
@yuychang
yuychang requested review from a team and a balanced review from Copilot October 14, 2026 14:14
@github-actions github-actions Bot changed the title [HIP] [JIT] Fix metadata-only setup.py, empty rocminfo and torch.Stream handling [HIP] [JIT] [Build] Fix metadata-only setup.py, empty rocminfo and torch.Stream handling Oct 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The torch-based fallbacks query device 0 rather than the selected device, potentially supplying incorrect architecture and compute-unit metadata.

2 open findings
What changed in this PR

Fixes metadata generation and broadens GPU detection and stream handling in the build and JIT infrastructure.

Changes:

  • Skip kernel prebuilding during metadata-only setup commands.
  • Add GPU architecture and compute-unit detection fallbacks.
  • Accept generic torch.Stream objects when converting arguments.
File Description
setup.py Guards prebuilding during metadata generation.
csrc/​cpp_itfs/​torch_utils.py Converts generic torch streams to native handles.
aiter/​jit/​utils/​chip_info.py Adds architecture and compute-unit fallbacks.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread aiter/jit/utils/chip_info.py Resolved
Comment thread aiter/jit/utils/chip_info.py Resolved
yuychang added a commit to yuychang/aiter that referenced this pull request Oct 14, 2026
Copilot AI balanced review requested due to automatic review settings October 14, 2026 14:44
yuychang added a commit to yuychang/aiter that referenced this pull request Oct 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Reported testing covers one environment; shared GPU detection and native-stream conversion still warrant human confirmation across supported configurations.

0 open findings

2 resolved since last review

🧠 Review effort: Balanced

- On Windows setup.py probes for ROCm through aiter/jit/utils/cpp_extension.py, which the test's copy lacks
- Set AITER_TRITON_ONLY=1 for that subprocess on Windows only, which skips the probe
- aiter_meta/ handling does not depend on it, and Linux still checks that egg_info never imports jit/
- Reading the current device added about 0.22 us to every get_gfx_runtime()/get_cu_num() call, even on uniform nodes
- One arch from rocminfo/hipinfo, or AITER_AOT_REPLAY, now caches the arch once for the node
- One CU count from rocminfo, or CU_NUM, now caches the CU count once for the node
- Mixed nodes and the Torch fallback for empty or missing rocminfo stay per device
- The CU check runs in the calling copy of chip_info, since the custom op's body may belong to the other copy
- The check runs rocminfo, so a torch.compile trace skips it and keeps the per-device key
- cache_clear() also drops the node-wide answers, which dry_run() relies on to swap in its target arch
- gfx950, min of 5 x 200k calls: get_gfx_runtime 0.236 -> 0.015 us, get_cu_num 0.235 -> 0.014 us (base 0.016)
- torch.compile(fullgraph=True) over get_cu_num() still compiles with eager and inductor, cold or warm
- tests/test_chip_info_fallback.py adds a uniform node that stops reading the device after its first answer
- It also adds a uniform-arch node with mixed CU counts, whose CU count must stay per device
@aiter-bot

aiter-bot commented Oct 29, 2026 •

Copy link
Copy Markdown

DRAFT — evaluation paused

PR Self-Review

Revision af218071d48e · mode shadow

This pull request is a draft, so readiness evaluation is paused and no verdict applies. Evaluation resumes when it is marked ready for review and the required CI completes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Shared chip_info caching affects JIT rebuilds, kernel dispatch, and torch.compile, requiring owner review while gfx942, mixed-node, and Windows validation remain unverified.

No open issues 🎉

Review effort: Balanced

- Resolve the chip_info.py conflict with ROCm#6767: _gpu_info_archs and _gfx_from_text use _GFX_ARCH_PATTERN.
- Without it gfx1250-strict was detected as gfx1250 again, so _needs_arch_rebuild would loop on strict .so files.
- Point main's strict-runtime test at _gpu_info_archs, which get_gfx_runtime now reads instead of _detect_native.
- Clear the _gpu_info_archs cache in the strict-identity test, since _detect_native now reads it.
- The metadata-only change removed aiter_meta/ only after a run that staged it, so clean stopped clearing it.
- An interrupted build leaves aiter_meta/ in the checkout; main cleared it on the next clean, which CI runs.
- Remove it after a staging run or any run whose commands include clean; egg_info and dist_info still keep it.
- tests/test_setup_metadata_only.py covers both: egg_info keeps an existing aiter_meta/, clean removes it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Shared architecture/CU caching changes affect runtime dispatch and JIT rebuild decisions, requiring GPU, torch.compile, and Windows validation that could not be independently performed in this source-only review.

No open issues 🎉

Review effort: Balanced

…ixed-arch nodes

- _needs_arch_rebuild() asks for a rebuild only when the --offload-arch list the build passes covers the running arch
- Without that, a mixed node's device 1 rebuilt for hipinfo's first arch and failed the reload with ModuleNotFoundError
- get_build_targets() no longer pairs get_gfx() with the CU count of a device that runs another arch
- On such a device it targets every CU count GFX_CU_NUMS_MAP lists for get_gfx(), as GPU_ARCHS would
- get_asic_revision() is cached per arch, not once for the first device's arch
- Tests mock a mixed gfx950/gfx942 node for all three; the opus AST loader also loads _asic_revision
- Remove aiter_meta/ after clean only when clean ran (dist.have_run), not when it is listed in dist.commands
- `setup.py clean --help` lists clean but runs nothing, and used to delete a staged aiter_meta/

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The architecture guard accepts a cached gfx950-only extension on a gfx942 GPU despite missing compatible device code; it must reject the extension with an actionable error, and tests must verify that rejection.

1 open issue

Review effort: Balanced

Comment thread aiter/jit/core.py Resolved
…running arch

- _needs_arch_rebuild() warned and returned False, so get_module() loaded a .so without device code for the running GPU
- That failed only at the first kernel launch; it now raises RuntimeError that names the GPU_ARCHS fix
- Tests expect the error for an explicit GPU_ARCHS that misses the running arch and for Windows' native fallback

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Shared JIT and device-detection changes affect all operators, while gfx942 and Windows fallback behavior remain unverified and relevant owner review is still needed.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

- The .so may have just been built with the current GPU_ARCHS, so "prebuilt" pointed at the wrong cause
- The error now prints the .so path and the GPU_ARCHS value that would not rebuild for the running arch
- The check stays at load time; the FlyDSL AOT dry run bypasses only _needs_arch_rebuild for cross-arch replay
- _is_metadata_only builds a setuptools Distribution, which reads pyproject.toml from the working directory
- setuptools_scm then wrote aiter/_version.py into the checkout under test, which made validate-kernel-pr see a dirty tree
- An autouse fixture chdirs each test into its tmp_path; all 26 tests pass and no file is left behind
@yuychang

yuychang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

gfx942 (MI300X) validation: all targets pass; INCONCLUSIVE only because an infra PR has no shape grid.

chip_info returns the same arch/CU results as base in every mode that works on base, and falls back to gfx942 / 304 CUs where base crashes (missing or empty rocminfo). JIT builds from an empty cache target gfx942.

New commits for gfx942: e525991 (clearer load error), eac690b (test isolation).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Shared architecture detection and all-op JIT/cache changes require chip_info/JIT owner review and targeted hardware validation, with Windows, gfx942, and real mixed-node behavior still unverified.

No open issues 🎉

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Shared chip_info and JIT changes affect all ops and may initialize HIP during import, while owner review and validation on gfx942, Windows, and real mixed-device nodes remain outstanding.

No open issues 🎉

Review effort: Balanced

…cover the load-time guard

- test_needs_arch_rebuild mocked the running arch but not GPU_ARCHS, which CI runners export as gfx950
- The guard added in this PR raises when GPU_ARCHS omits the running arch, so the test failed on every MI35X shard 4 run
- Run its uncovered-arch cases under GPU_ARCHS=native, where a rebuild covers the running arch, as the test intends
- Add a test for the guard: it raises naming the module, the .so path, the arch and GPU_ARCHS
- The same test checks that a GPU_ARCHS with the arch, or native, rebuilds, and that an unusable one rebuilds
- It also checks that a covered arch neither raises nor rebuilds, whatever GPU_ARCHS says
- The file passes under GPU_ARCHS unset, gfx942, gfx950 and native; the new test fails with the guard disabled
- One conflict in setup.py: main added aiter.plugin to the package lists this branch splits by run type
- Keep the metadata-only, develop and staged-aiter_meta branches and add aiter.plugin to the last two
- The metadata-only branch stays at ["aiter"]: it records top-level names only, and its test runs on a one-package tree
- Preserve per-device CU cache clearing alongside upstream CDNA4 XCD-count validation.
…o PR CI runs them

- git mv tests/test_chip_info_fallback.py and tests/test_setup_metadata_only.py to op_tests/
- split_tests.sh scans op_tests maxdepth 1; main's CI no longer runs tests/ except the plugin files
- Both files compute the repo root as parents[1], which is unchanged
…est in aiter_test.sh

- Both files are pytest-style with no __main__, so python3 <file> would exit 0 without running a case
- Add them to the pytest-only case arm next to the other function-style op_tests
@yuychang

Copy link
Copy Markdown
Contributor Author

MI300X (gfx942) results, PR head e4201a913. One idle MI300X, torch 2.11.0+rocm7.2, FlyDSL 0.5.0, run from a checkout of the exact PR head.

  • All 5 test files this PR changes pass on gfx942, 83 tests in total: op_tests/test_build_targets_architecture.py 29, test_jit_arch_guard.py 7, test_opus_co_profile.py 6, test_chip_info_fallback.py 15, test_setup_metadata_only.py 26.
  • Not covered: the .github/scripts/aiter_test.sh change (CI script, not run here), and a full build or wheel install; only the listed tests were run.
  • The PR changes Python and CI files only (aiter/jit/core.py, chip_info.py, aot/flydsl/dry_run.py, setup.py), so no perf comparison.
  • Note: my earlier run at 9513746e7, before the tests moved to op_tests/, gave the same 83 passes.

- build_ctypes_module now calls _needs_arch_rebuild after build_module, so a fresh build under a GPU_ARCHS
- that omits the running arch raises at load, as the pybind path does through get_module(), not at first launch
- Add a cold-cache test: the fake build covers gfx950 only, running gfx942 raises, running gfx950 returns the path
- The test fails without the added call (checked on a /tmp copy)
- Build the dummy module name from JIT_LIB_EXT and pin IS_WINDOWS to False in the arch guard tests
- GPU_ARCHS=native is then not resolved through hipinfo; not verifiable on Windows here
…NELS=1

- Add egg_info and dist_info rows that export PREBUILD_KERNELS=1, so the METADATA_ONLY guard in setup.py is exercised
- Without the guard both rows fail with No module named 'jit' (checked on a /tmp copy)
- Create the dist_info output dir first, as setuptools rejects a missing one
…test

- Satisfy ruff SIM905 for the key list added with the cold ctypes build case
…get_cu_num.cache_clear

- aiter/jit/core.py imports chip_info as a top-level module, so the torch custom op may run a second copy of it
- get_cu_num.cache_clear() cleared only the aiter.jit.utils copy, leaving the other copy's _device_cu_num stale
- Clear both copies and add a test that fails without the change
…s whatever name the caller has

- get_cu_num.cache_clear() now names chip_info and aiter.jit.utils.chip_info itself, plus the running module
- A cache_clear() called on the top-level copy therefore also clears the packaged copy's cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build ci:atom ci:mi300x Run MI300X standard and OPUS CI on PRs ci:sglang ci:vllm ci:windows Trigger Windows smoke test on PR FlyDSL JIT OPUS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants