Repository navigation
Fix stale TopK availability checks - #5210
Merged
coderfeli merged 1 commit intoSep 2, 2026
Merged
Conversation
FlyDSL is required after ROCm#5116, so the removed helper breaks test collection and silently disables decode dispatch. Co-authored-by: Cursor <[email protected]>
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
PR title tags & labels: |
coderfeli
approved these changes
Sep 2, 2026
Fyzyukk
pushed a commit
to Fyzyukk/aiter
that referenced
this pull request
Sep 3, 2026
FlyDSL is required after ROCm#5116, so the removed helper breaks test collection and silently disables decode dispatch. Co-authored-by: Cursor <[email protected]>
yifehuan
pushed a commit
that referenced
this pull request
Sep 17, 2026
…4961) * [OPUS] Reapply Task1 and Task2 on upstream/main Reapply the final Task1 Torch-owned split-K workspace and Task2 caller-resolved exact-kid interface state on top of upstream/main@a43694f1.\n\nThis is a squashed final-state review commit; obsolete intermediate Task1/Task2 implementations are intentionally not replayed. The resulting task files match the validated merge candidate. * [OPUS] Consolidate task documentation * [OPUS] Document Task1 and Task2 validation workflow * [OPUS] Preserve upstream MXScale tuned config * [OPUS] Guard C ABI priming on tensor device * [OPUS] Drop Task1 and Task2 validation docs * [OPUS] Optimize Task2 Python dispatch hot paths * [OPUS] Adapt upstream gfx1250 split-K fixes (#4246) Reapply upstream commit 1b741c0 on top of the unified public API, canonical exact-kid registry, and caller-owned Torch workspace design. Adopt the policy-tag N-D TDM API, clusterlaunch grid round-up, compile-time gfx1250 reducer dispatch, mixed-arch device guards, tuned configs, and the final decision to leave the fused family unregistered. * [OPUS] Document gfx942 and gfx1250 validation plan * [OPUS] Optimize A16 C ABI launch path Reuse thread-local tensor descriptors and avoid redundant error calls so MI308 workspace performance stays within repeat noise. Record the full correctness and ABBA validation results. Co-authored-by: Cursor <[email protected]> * [OPUS] Isolate A16W16 caller policy Move the architecture heuristics and tuned-candidate validation into a dedicated policy module while keeping exact execution in the family launcher. Preserve the upstream skinny-to-Torch fallback when no valid tuned row exists. * [OPUS] Split public GEMM and BMM adapters * [OPUS] Consolidate launch policy and repair tune routes * Minimize OPUS integration changes * Remove generated HTML reports * Reconcile OPUS branch with latest upstream * Trim redundant OPUS tests and benchmarks * Focus OPUS tests on representative regressions * Drop redundant OPUS interface tests * Optimize A16 eager dispatch and remove legacy workspace registry * Add OPUS validation coverage and update documentation * Add MI308X gfx942 OPUS validation guide * Remove MI308X OPUS validation guide * Remove branch-only OPUS test files * Fix OPUS lint failures * Fix gfx950 MXFP8 split-K Cvoid compilation * Format MXFP8 split-K regression test * Fix no-argument OPUS A16W16 test entry * Fix OPUS compatibility and tuning paths * [OPUS] Integrate PR #4903 gfx1250 CO kernels with exact-kid dispatch - port 219 prebuilt gfx1250 BF16 A16W16 CO kernels - register CO kernels in the canonical exact-kid registry - emit host launchers and load packaged CO images at runtime - preserve caller-owned workspace and the current launch-plan architecture - add CO manifest, builder, packaging support, tuning routes, and tests - avoid restoring the legacy shape dispatcher and C++ workspace allocation * [OPUS] Remove obsolete dsv4pro BF16 tuning config Match PR #4903 by removing the complete duplicate dsv4pro table instead of retaining its unmatched Triton rows. * [OPUS] Align BF16 tuning tables with PR #4903 Restore the remaining dsv3 and dsv4 tuning updates from PR #4903 so the shipped gfx1250 routes match the original CO integration results. * [OPUS] Address PR 4961 must-fix review Separate public exact-kid dispatch from GEMM and MoE family implementations, and restore the established general A8W8 API boundary. Tighten fixed-contract attribute access while retaining the develop adapter required by the aiter_tensor_t ABI and HIP stream propagation. Add gfx1250 CO exact-kid numerical and loader-path coverage. * [OPUS] Keep family modules in the flat package Move the A16, A8, and MoE family implementations back beside dispatch.py and restore all callers to the original module paths. This avoids changing CK tuner and MoE imports solely for package nesting. * [OPUS] Address PR 4961 should-fix review Reuse shared architecture constants in launch planning and policy. Add deterministic source and artifact fingerprints for packaged gfx1250 CO kernels, with CPU verification in the integration suite and OPUS test entry point. * [OPUS] Fix Python style checks * Fix MXFP8 BMM policy review issues * Address OPUS A16W16 review feedback * Refresh OPUS CO source provenance The opus.hpp update restores comment formatting only. Refresh the source fingerprint while keeping the verified artifact digest unchanged. * Simplify OPUS tuned GEMM integration * Remove OPUS A16W16 C ABI launch path * [FlyDSL] Remove stale TopK availability checks (#5210) FlyDSL is required after #5116, so the removed helper breaks test collection and silently disables decode dispatch. Co-authored-by: Cursor <[email protected]> * Drop unrelated setup.py comment change * Revert "Drop unrelated setup.py comment change" * Drop comment-only packaging diffs * Remove SHA markers from OPUS policy parity test * Fix gfx942 split-K launch validation for short K * Size gfx942 workspace from converged split-K * Add OPUS A8W8 tuning and exact BMM replay * Gate OPUS A8W8 tuner to gfx950 * Keep OPUS CO build tooling and artifacts aligned with upstream Restore gen_co files to the merged upstream version and remove the added provenance check, CI invocation, and dedicated test. Keep the exact-kid CO integration and its existing registry, loader, and contract coverage. Validation: 7 CPU integration tests passed; all 219 CO records match the current registry. GPU tests were not run for this tooling cleanup. * Restore upstream OPUS JIT configuration Reuse upstream cluster-launch handling and CO path define spelling. The extra JSON escaping produced the same evaluated compiler flag. Validation: 30 architecture/version gate comparisons and 7 CPU CO integration tests passed; Ruff and Black passed. No GPU tests were run. * [OPUS] Fix launch validation and compatibility follow-ups - converge A16 split-K before workspace sizing across architectures\n- validate MXFP8 saved rows and prefetch constraints before launch\n- restore gfx942 compatibility redirects while keeping exact APIs strict\n- distinguish direct/workspace compiled-table availability\n- align gfx1250 cluster candidate and default-build coverage * [OPUS] Consolidate redundant regression coverage Keep exhaustive heuristic, shipped-config, artifact identity, and hardware launch coverage while collapsing duplicate planner, route, compatibility, and tuner cases into their maintained owners. Validated with Black, Ruff, Python syntax checks, git diff --check, and 98 focused CPU/meta tests plus 22 subtests. GPU tests were not run locally. * [OPUS] Simplify A16W16 merge resolution Keep exact-kid launch validation isolated from main's production benchmark path and remove duplicate shape-driven wrappers. * [OPUS] Remove A16 tuned sweep from test entry * [CI] Retrigger failed workflows * [OPUS] Simplify and activate test coverage * [OPUS] Preserve A16 benchmark data initialization --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: vorapolsiloai <[email protected]>
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.
Summary
aiter.ops.flydsl.utilsmoduleop_tests/test_topk_per_row.pycollection in the standard-test suiteContext
#5116 removed the optional FlyDSL availability helper and made FlyDSL imports unconditional. #5011 landed later with two references to the removed helper:
ModuleNotFoundErrorThis was observed in the MI35X standard-test failure on #4761. The failure occurs before any GPU kernel executes.
Test plan
PYTHONPYCACHEPREFIX=/tmp/aiter-topk-fix-pycache python3 -m py_compile aiter/ops/topk.py op_tests/test_topk_per_row.pygit diff --checkaiter.ops.flydsl.utilsoris_flydsl_availableremainMade with Cursor