Parent: #52. Research snapshot: 2026-10-23.
Problem and code seam
A faster isolated kernel can slow a model through layout conversion, workspace, dispatch or synchronization costs. CUDA++ already records entire decode paths through src/omega_gpu_decode_graph.* and src/omega_gpu_cmdlist.*. Its current native benchmark branch collects graph observations and marks unknown counters explicitly.
#17 remains the benchmark owner; #5 remains canonical consumer integration; #35 remains realization identity. This issue adds bounded selection/admission of validated alternative kernels through those existing paths, with no new serving runtime.
Dependencies
Require #53, #16, #17 and independently validated candidates from #22 or #54. Reuse #24 buffer ownership, #19 dependency records and existing specialized kernels. Do not manufacture new fusion work already owned by #18/#20/#21/#23 or bypass the separate representation/quality decisions in #48/#49/#50/#51.
Work
- Define candidate applicability keys: semantic contract, dtype/layout, shape/tails, alignment, alias rights, hardware profile, resource budget, compiler/kernel identity and numerical mode. Keys must reflect actual dispatch determinants, not only tensor dimensions.
- Choose among qualified candidates with a deterministic bounded rule. Unknown domains select a qualified .om baseline or explicitly refuse. Do not run optimization searches inside a production request.
- Bind the selected kernel, launch profile and required transformations to a receipt. Account for conversion, packing, upload, cache invalidation, workspace, barriers and setup, including costs paid outside the timed kernel.
- Freeze representative supported workloads, aggregation weights, regression limits, correctness thresholds and minimum benefit before final evaluation. Compare paired runs of complete prefill/decode/request paths and any relevant training consumer.
- Report every workload and every task, including fallback/no-gain cases. Include p50/p95 latency, throughput where meaningful, memory, launches and full lifecycle cost. A large win on one workload cannot hide violation of a declared limit on another.
- Keep candidate registration, qualification, selection and production activation distinct. Existing independent review and release coordinator own activation. A malformed/stale receipt must never switch the consumer.
- Test invalidation after compiler, target, numerical contract or buffer-lifetime changes. Cached selection may be reused only when its entire applicability identity remains valid.
Acceptance
- At least one candidate is exercised through the actual native consuming graph, with the chosen path proven by artifact identity.
- Boundary shapes, odd tails, alias mismatches, low-memory admission and stale profile cases select/refuse correctly.
- Deliberately faster-but-wrong and microbenchmark-fast-but-model-slower candidates fail the relevant admission gate.
- Paired full-workload results meet predeclared constraints; measured overhead and unfavorable results remain visible.
- A candidate that fails qualification cannot change the selected default.
- Replacing an incumbent invalidates dependent evidence correctly; rollback is to a qualified .om artifact with preserved provenance.
- No hardware or model-level PASS is inferred from a host formatter fixture.
Research interpretation
KernelOPT motivates optimizing within an existing compiler/runtime structure and rechecking the assembled model. Its paper's gamma=1.03 is a tolerated slowdown bound, not a 3% speedup requirement, and must not become CUDA++ policy automatically. Its reported device is H200, with tolerance-based checks and substantial search cost. Use its structural lesson, not its CUDA/Triton stack or numerical tolerances. AReaL-TIK motivates aggregate improvement subject to individual workload limits.
Delivery contract
Final first-party implementation, tests, build and automation for this work must be seeded .om, following aien-dev/omega-mv#599. Existing C, Rust, Python, JavaScript and .osc implementations are migration inputs and comparison evidence, not permanent wrappers or fallbacks. Qualify each .om replacement, cut its consumers over, remove the replaced active implementation and dependency, and retain immutable history/receipts. A qualified baseline can remain an algorithm choice implemented in .om. Missing seed-language, host-service or compiler features go to their existing owners; do not invent a second compiler/runtime.
Reuse #5's canonical backend, #10's independent decoding, #15/#16/#17's test/numerical/measurement work, and existing memory/session/driver boundaries. Reconcile current main and active branches before coding. No NVIDIA userspace dependency in the final execution path. This finite research workstream does not supersede release priorities or authorize live-service replacement.
Publish exact source/compiler/runtime/model/target/config identities, candidate code and launch digests, commands, raw outcomes and expected-failure controls. Distinguish host, simulator, compiled native host, GB10 and integrated-consumer evidence. Missing hardware is NOT_RUN. Use existing reservations/quietlock and bounded memory; leave active GPU jobs alone. Closing requires the issue's stated gates on the final artifact plus independent review, or an explicit reproducible NO-GO for an experiment. Never close solely on generated code, a branch push, or a merged PR.
2026-10-28 dual-pipeline specialization (extends this existing selector)
New issue dependencies: #156 quant descriptor/physical layout; #157 verified composable kernels; #158 content-keyed cache and prewarm; #159 indexed MoE work. Keep selector owner here: do not create another dispatch implementation.
Add a deterministic, prequalified dispatch among:
- small M: current direct GEMV/warp-level register-fed MMA or verified overlapped-load realization, minimize packing/setup and register pressure;
- large M: tiled/packed GEMM with staged loads/reuse and verified warp-level MMA; use TMA only if supported by the exact device target and independently CHIP_EXERCISED.
- Baseline fallback for unsupported tails/layouts/scale modes/resources. SM121
sm_121awarp-level block-scaled FP4 is a possible separately gated experiment; SM100tcgen05/TMEM assumptions must not be projected onto GB10. No assumed TMA availability.
Policy keys include M/N/K, batch/token routing, dtype/quant scale/zero-point layout, memory residency, workspace budget, pack amortization, stages, warps, tile, alignment/tails, numerical mode, machine feature profile, encoder identity and validated artifact hash. A fixed M cutoff is only a candidate, not the final selector. Source evidence: merged Tilelab PR #154 observed both wins and losses by shape. Existing #54 supplies qualified candidates, not a new tuner in the live request.
Additional acceptance:
- Predeclare representative M=1/small decode, mixed batch and large prefill/GEMM shape families using real Q36 contracts. Measure preprocessing, repack, compile, upload, dispatch, barriers and execution; warm and cold.
- At least one small-M and one large-M approved realization have independent tensor/logit tests and native GB10 source-to-code receipts; unsupported TMA/tcgen05 variants refuse.
- Schedule/solver selects identical candidate on replay for same contract and profile; wrong-feature, false cache hit, stale code, resource-limit, packing-cost and faster-microbenchmark/slower-model mutants are rejected.
- Default changes only after paired full-model performance/correctness under #17; report inconclusive and regressions; fallback remains qualified.