Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/issues/5fafb7a9df4e7777 # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # [CUDA-LEARN P1] Search explicit .om kernel transformations over qualified native microkernels Open · #54 · open 2026-10-23 19:43 UTC Imported from GitHub aien-dev/CUDApp#54, by drakestapleton drakestapleton wrote on 2026-10-23 19:43 UTC Parent: #52. Research snapshot: 2026-10-23. ## Problem and current boundary CUDA++ already owns low-level IR, register allocation, instruction encoding and native library entry points. `src/omega_blackwell_codegen.h` exposes per-instruction predicates, control words, subregister bundles and reconvergence registers. Unrestricted source generation can miss these constraints or produce attractive code that cannot be realized on sm_121. #35 owns checked tensor-operation lowering. #22 owns bounded SASS schedule search. This issue adds the structured proposal layer above them; it does not create another IR, encoder or scheduling engine. ## Dependencies Use #53's fixed task contracts, #16 numerical modes, #17 measurements, #10 independent decoding and #35 realization records. Start with the existing generator's legal native capabilities. Unsupported tensor instructions, new synchronization mechanisms or new hardware profiles require their existing owners to qualify them first. ## Implementation - Define a versioned transformation-plan record referencing the existing semantic operation and lowering identity. Every action records its preconditions, parameters, parent artifact, expected effect, affected buffers/operations and numerical implications. - Initially allow a small reviewed set: legal tile/configuration selection, layout choice where conversion is accounted for, bounded fusion of already supported operations, and invocation of #22's schedule proposals. Unknown actions refuse. - Maintain a catalog of qualified microkernel realizations, with immutable code/target identity, dtype/layout/shape domain, register/shared-memory requirements and evidence. Reuse #35's registry/records. A matching opcode name or a paper's B200 feature is insufficient to qualify GB10. - Check action compatibility before generation: layout and alias preservation, reduction order, masking, register bundles, barrier scopes, resource ceilings and launch constraints. Re-run checks after composition; individually legal passes can compose illegally. - Supply the proposer with bounded structured diagnostics and measured bottleneck facts. Never let it relax task contracts or select its own test outcomes. Keep diagnostic feedback separate from holdout results. - Compare fixed deterministic configurations, budget-matched random/legal search, existing #22 schedule search, and LLM-guided structured search. Hold candidate count, compute budget and validation obligations comparable; report every cost. - Freeze an accepted plan and replay it from semantic input to exact native artifact. Reject stale evidence when compiler, microkernel, target facts or numerical requirements change. ## Acceptance and controls - At least one current native kernel family has a deterministic baseline plan and replayable candidate plans. - No raw model-generated instruction stream reaches hardware outside the normal admission pipeline. - Mutants break tile divisibility, tail masks, alias rights, resource bounds, register-bundle alignment and microkernel identity; each is rejected at its intended stage. - A plan that passes individual transformations but violates a composed numerical or dependency contract is rejected. - Search is bounded in candidates, wall time, tokens and GPU time; interruption preserves an auditable partial result. - An accepted candidate passes independent validation and its complete consuming workload. No improvement is a valid experimental result. - Proposal generation can be replaced without changing validation policy, enabling fair model/controller comparisons. ## Research interpretation AlphaCu describes explicit transformations and binding hardware-sensitive work to validated microkernels. Only its abstract/metadata were available in this review; do not treat its headline correctness as a proof or its device results as GB10 results. AReaL-TIK supports retaining implementations, actions and audit records, while D2K-Bench motivates testing whether guidance was actually realized. These mechanisms are hypotheses to test locally. ## 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 bounded component stitching extension CUDApp #157 owns the missing within-kernel component contract/composer: typed dequant, load, MMA, epilogue and barrier pieces, composed in existing IR before global register allocation and hazard-aware scheduling. This issue retains the bounded transformation planner/search/admission; #157 does not add a second transformation framework. The proposer may select registered component IDs with verified target/shape/quant contracts from #156 ; #22 validates composition hazards and SASS. #158 handles artifact cache identity; #57 handles actual model workload selection. Test cross-component register, scoreboard, shared-memory and numerical violations and reject them despite individually valid modules. Use seeded .om product path only. No comments. Sign in to comment