interplane.Get Omega
Read in your language

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

[KSTITCH-1] Verified IR composition of load, dequant, MMA and epilogue components

Open · #157 · open 2026-10-28 11:15 UTC

Imported from GitHub aien-dev/CUDApp#157, by drakestapleton

drakestapleton wrote on 2026-10-28 11:15 UTC

Goal

Make new quant formats and tile/warp configurations reusable verified components, not copied complete GPU generators. Compose at the existing typed GPU IR/realization boundary before register allocation and SASS emission. Never paste final SASS byte sequences together; this can break register lifetimes, branches, scoreboards and memory ordering.

Existing seams / avoid duplicate owners

CUDApp main b759afc3f5e46f152ffb06b39882ffa28cacaf96 and omega-mv main 6999fa9e6dae4847c155ef4eacaece74f491d3ca inspected 2026-10-28. Reinspect heads, active branches and complete source/receipts before editing.

  • PR #143 merged seeded .om encoder+cubin; PR #155 merged single-source 63-form sm_121 spec and round-trip tests (HOST_TESTED; not an all-op chip qualification).
  • Existing transitional IR, allocator and emitters: src/omega_blackwell_codegen.{h,c}, src/omega_bw_em.h, src/omega_blackwell_codegen_moe{,2}.c. The row-pipelined variant has explicit SB_B/SB_RD scoreboard behavior; module boundaries cannot erase it.
  • #35 owns semantic lowering/realization identity; #54 owns typed transformation proposals; #22 owns scheduling and native-byte validation; #19 owns inter-kernel dependence. This issue is within-kernel component composition, not a new IR/compiler/driver or a competing search engine.

Delivery slices

  1. Native .om versioned component contract: typed inputs/outputs, virtual register bundle/alignment, lane/warp ownership, uniform/predicate state, memory read-write/alias ranges, barrier/scoreboard token production/consumption, scope, numerical/reduction modes, resource formulas and target capability guards.
  2. Implement a bounded composer using the existing Omega semantic/task and CUDApp IR interfaces: select load → optional dequant → MMA/accumulate → epilogue components, remap virtual registers, validate effects, resolve branches, globally allocate registers, schedule, check dependencies/resources, then emit with the seeded .om encoder. Existing C emitters remain parity oracles until cutover.
  3. Start with a known-good FP8-to-BF16/HMMA projection or grouped expert case using only already encoded ops. Reproduce exact existing output and baseline code where semantics are identical. Then substitute exactly one component (scale handling, load strategy or epilogue) and measure.
  4. Link QSCHEMA-1 for format descriptors; unsupported FP4 native components refuse until proven chip/byte gates. Generate explicit component lineage, input/output contracts, compiler/spec hash, target and final kernel digest for the #57 selector and KCACHE issue.
  5. Give structured bounded diagnostics to the existing #54 proposer; do not let proposed components bypass checks.

Acceptance / negative gates

  • At least two composed configurations, including one changed component, build from the native .om path with independent numerical reference, simulator, native disassembler/byte and real GB10 controls.
  • Mutants (register collision/alignment, missing async wait, stale data/alias, wrong scale/zp, resource overbudget, branch/predicate mismatch, invalid barrier scope) are caught before GPU admission or by the stated independent check.
  • Same semantic contract plus different component set yields distinct, reproducible realization identity; no invalid reuse from the cache.
  • No silently unsupported ISA: SM121 warp-level MMA and SM100 tcgen05/TMEM remain separately capability-gated.
  • Benchmark whole-kernel cost and at least one Q36 projection; preserve baseline/no-gain outcome and do not treat instruction count alone as a win.

Delivery rules. New first-party production code/tests are native seeded .om; C sources can serve as migration/differential oracles until qualified cutover under #79. Preserve immutable receipts, one writer per shared file, no second GPU session/driver/IR/compiler. No silent CUDA/PTX/cuBLAS dependency. Keep the live 35B, driver and hardware scheduling unchanged; chip tests require an authorized GB10 window. Label HOST_TESTED/SIMULATED/CHIP_EXERCISED/WHOLE_MODEL_QUALIFIED separately; NOT_RUN/BLOCKED cannot become PASS. Record exact source/seed/compiler/target/binary/model hashes, commands/exits, positive and mutation results, baseline/variant raw timings.

Consume verified quant/physical descriptors #156; emit unique realizations for safe prewarm #158 and candidate selection #57. MoE #159 may register group-specific components only after independent proof/behavior gates. Reuse existing #35 semantics, #54 transformations, #22 scheduling and merged #155 encoder; one owner for the whole IR pipeline.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:13 UTC

Recovered GitHub comment by @aien-spark on 2026-10-28T12:23:24Z. Original comment 6468877839

IMPLEMENTED / HOST EXERCISED, not QUALIFIED: signed native component implementation 8bfc7083cb2a90506816f92f6854c829e5bf20ac, draft unlabelled PR #166. Baseline b759afc3f5e46f152ffb06b39882ffa28cacaf96 (freshly fetched); unchanged repaired encoder85c059cc15edf704c9833fe4832f18c052ee83b3; pinned production omc SHA256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f. Composer is actual seeded Omega over existing unsolved eight-cell IR before one global allocator; native direct/changed weight-first, rowpipe and dense/mapped staged emitters execute. Consolidated host gate: eight direct, fourteen rowpipe, five staged whole IR/width/allocation/code parity cases plus complete independent nvdisasm PASS; typed/MMA, reserved, malformed, resource exhaustion, SB_RD/SB_B and branch mutation controls PASS. Source and output hashes: tests/components/host-receipt.json. Independent numerical scalar/warp execution and physical GB10/full-model acceptance NOT_RUN; shared runtime/build/bridge cutover belongs to Main integration, canonical staged admission remains refused pending numerical/integration checks. No GPU/window authority, device run, merge, or deployment. #157 and mission #26 remain open.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:13 UTC

Recovered GitHub comment by @aien-spark on 2026-10-28T12:34:40Z. Original comment 6469108152

HOST numerical evidence added, superseding the prior numerical NOT_RUN status: signed head d0bba3ad22e00ee06cc02af2a6bf7f571e226139 on draft166. Consolidated run PASS for every native-produced frame:8direct/14rowpipe/5staged, including changed weight-first and staged dense/mapped. Existing sim_gemv/parity and sim_point2 reused by substituting native IR/allocation at the generator callback, not an interpreter or reference rewrite. Direct/rowpipe existing double oracle: zero bad outputs; staged existing emulation: bit-identical600-output cases, both fragment orders, empty/multiple segments/tails, actual YMAP movement. Every case successfully executes FFMA->FADD wrong-result mutant and detects numerical disagreement; existing unknown-op refusal preserved. Whole-byte/IR/allocation/nvdisasm and prior refusal controls rerun PASS. Production modules/realization schema/encoder/compiler unchanged. Full transcripts/verifier hashes: tests/components/host-receipt.json. Canonical family3 remains refused pending Main shared integration and required physical gates; device/fullmodel/latency/graph replay NOT_RUN, no GPU/service/merge/deployment.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:13 UTC

Recovered GitHub comment by @aien-spark on 2026-10-28T12:37:39Z. Original comment 6469170234

Final signed draft166 head b58e80c7f916a333e45e344000c812ea98530339. Public-path correction: README now repository-relative + immutable public source URLs; runner uses PATH/OMEGA_OMC, no private default. Final public artifact scan has no private host paths. Portable consolidated host gate rerun PASS: every8direct/14rowpipe/5staged native IR/allocation frame numerically executed with existing independent oracle seams, every successful wrong-result mutant detected, unknown-op refusal preserved, whole IR/allocation/code C reference and full nvdisasm PASS. Source/verifier hashes and numerical transcripts updated in current host-receipt.json; no historical commit/receipt rewrite. Production Omega modules, compiler/encoder and canonical bytes unchanged. Physical/fullmodel/shared integration still pending; family3 admission remains refused, issue remains open.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:13 UTC

Recovered GitHub comment by @aien-spark on 2026-10-28T13:23:15Z. Original comment 6470139482

Scope and dependencies

Addresses CUDApp #157 toward #26; this does not close physical acceptance.

Signed source: b32afbb7afcec09ad64282f5d2053ed251186b85. Native typed load/dequant/MMA-contract/accumulate/epilogue components compose the existing eight-cell unsolved Blackwell IR before one global native allocator. Includes original direct FP8 projection, changed weight-first component, grouped rowpipe, and dense/mapped staged large-M. Original FFMA arithmetic is retained; this is not an unqualified tensor-core replacement.

Consumes the unchanged repaired pure function-mode encoder/spec from draft #168, signed 1c5a8398d93b49e6765c2e3752aaad8611027d0d. This supersedes the earlier whole-program-only PR #160 dependency/evidence; frozen #160 is not changed. Caller owns the 3001-word semantic state; every output instruction and padding NOP comes only from checked sp_enc. Production compiler remains SHA256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f.

Canonical realization bytes/schema remain at 2e93f998b70852abcd425f8865d842a05dad76ea; QuantSchema dependency fe25929ce71b11703eafa72395df2dd495aa61f2. Main owns shared registration, generated bridge and production runtime caller cutover. Canonical launch ABI/cbank/zero-VA QMD hash preimages and strict admission boundaries are documented in the component README; no parallel format was introduced.

Exercised HOST evidence

Permanent Python conductor removed. Seeded Omega proc.om + cases.om + run.om performs native process/I/O/build/matrix/refusal/hash/receipt orchestration; C simulators, retained C generators/encoder, nvdisasm and sha256sum remain independent verification oracles/checkers, not production implementations.

Final native conductor exit0: 27/27 cases: 8 direct, 14 rowpipe, 5 staged. Every complete native frame matches retained independent C generation/widths/allocation/IR/code bytes; nvdisasm decodes whole outputs. Every native IR/allocation frame executes in the existing numerical oracle seams: direct/rowpipe use distinct experts/activation rows and double oracle; staged covers both fragment orders, multi/empty segments, tail rows and actual YMAP movement, bit-identical to existing emulation. Every case's FFMA-to-FADD mutant executes but disagrees numerically; unknown-op mutants refuse. Component/unit controls, reserved fields, SB_B/SB_RD/branch mutations, resource exhaustion and malformed frames also pass their required refusal/disagreement checks.

Actual complete receipt with 37 source identities, numerical transcripts and tool versions: https://github.com/aien-dev/CUDApp/blob/b32afbb7afcec09ad64282f5d2053ed251186b85/tests/components/host-receipt.json

Reproduction/integration contract: https://github.com/aien-dev/CUDApp/blob/b32afbb7afcec09ad64282f5d2053ed251186b85/om/components/README.md

Omega MCP lookup/compile/run/explain_error were actually used; compilation alone is not behavior evidence. Public owned artifacts contain no private workspace paths or retired run.py references. Both affected crumbs refreshed.

Required gates still NOT_RUN

No GPU authorization was granted. Physical whole-model projection/grouped execution, changed-component behavior on GB10, device launch-template binding and independent numerical comparison, representative large-M latency, graph replay, window/VRAM/resource qualification remain NOT_RUN. Canonical family3 admission still refuses pending required shared/physical gates. No model/service/driver/firmware change, merge or deployment occurred. Issue #157 remains open. Keep this PR draft and unlabelled.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:13 UTC

Recovered GitHub comment by @aien-spark on 2026-10-28T14:07:05Z. Original comment 6471173522

Scope and dependencies

Addresses CUDApp #157 toward #26; this does not close physical acceptance.

Signed source: 2198c509a5591fa09487e1d30f11447c719d9f98. Native typed load/dequant/MMA-contract/accumulate/epilogue components compose the existing eight-cell unsolved Blackwell IR before one global native allocator. Includes original direct FP8 projection, changed weight-first component, grouped rowpipe, and dense/mapped staged large-M. Original FFMA arithmetic is retained; this is not an unqualified tensor-core replacement.

Consumes unchanged repaired pure function-mode encoder/spec from draft #168, signed1c5a8398d93b49e6765c2e3752aaad8611027d0d. Caller owns the3001-word semantic state; every instruction and padding NOP comes only from checked sp_enc. Production compiler remains SHA2562c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f. QuantSchema source fe25929ce71b11703eafa72395df2dd495aa61f2 is consumed unchanged.

Family3 structural extension (not qualification)

The existing1152-byte canonical-v1 wire layout/version are unchanged. Strict family3 shape/resource checks now mirror the implemented staged generator. Word18 means emitted K-step unroll U (odd KS1/3, otherwise2), not shared-buffer count or physical pipeline depth. Per-warp tile=(MT,1,32LB); CTA warps are separate. Shared declarations are128-byte aligned and dominate MT128*LB; UGPR6/barrier1; existing CTA register capacity is unchanged.

New admit.om root bc_record(cfg16,canonical4096,launch32,actual8)->uint checks staged config/canonical/ABI/resource consistency against fresh successful bc_compose output. Allocated physicalGPR<=128 is separate from declaredGPR: declaration must remain divisible by8 and at least freshPeak+2; legal overdeclaration is retained. Launch offset896 and8dense/12mapped32-bit constant-bank words; mappedMT<=4. Dense ABI has three64-bit pointers, N32 and stride32; mapped adds two64-bit pointers. Exact typed sizes/count/offsets require independent loader validation, not merely a hash of an ABI prefix.

The result counters are NOT an authenticated witness. Main/NativeIntegrate own shared registration, generated bridge and runtime caller cutover, same retained cfg/IR/allocation/code/ABI/cbank/QMD snapshots and exact-candidate qualification. Actual N/stride, segment/map extents, disjointness and loop-progress checks remain mandatory. Production state NULL/count0 and all qualification gates are unchanged.

Exercised HOST evidence

Permanent Python conductor removed. Seeded Omega proc.om + cases.om + run.om performs process/I/O/build/matrix/refusal/hash/receipt orchestration and publishes the complete receipt. Existing C generators/encoder/simulators, nvdisasm and sha256sum remain independent verification oracles/checkers, not production implementations.

Final native conductor exit0: 28/28 cases:8direct,14rowpipe,6staged. Every complete frame matches independent original-C generation statistics, virtual widths, physical allocation, every existing IR cell and all encoded bytes; nvdisasm decodes whole outputs. Every native frame executes existing numerical seams and their double/reference oracle. Staged cases cover both fragment orders, multi/empty segments, tail rows, YMAP movement and U1/U2/U3. Every FFMA-to-FADD wrong-result mutant executes yet disagrees numerically; unknown-op mutants refuse. Typed/component controls, reserved fields, SB_B/SB_RD/branch mutations, resource exhaustion and malformed frames retain required refusals/disagreements. Staged canonical/launch/config/result mutations refuse, legal resource padding accepts, and a concrete checker mutant removing the GPR+2 guard is caught with expected unit exit70 in every staged case.

Complete receipt:40 source identities, numerical transcripts and tool versions; SHA256546ccda33dbf2cdceed2efdc8d8558978551d8a55e4e3647b01c3a5d2dd26fb9. https://github.com/aien-dev/CUDApp/blob/2198c509a5591fa09487e1d30f11447c719d9f98/tests/components/host-receipt.json

Reproduction/schema/integration contract: https://github.com/aien-dev/CUDApp/blob/2198c509a5591fa09487e1d30f11447c719d9f98/om/components/README.md

Omega MCP lookup/compile/run/explain_error were used. Public owned artifacts contain no private workspace paths or retired run.py references. Affected crumbs refreshed.

Required physical gates still NOT_RUN

No GPU authorization was granted. Physical whole-model projection/grouped execution, changed-component behavior on GB10, actual device launch-template binding and independent device numerical comparison, representative large-M latency, graph replay, window/VRAM/resource qualification remain NOT_RUN. Structural family3 acceptance is not physical qualification or production admission. No model/service/driver/firmware change, merge or deployment occurred. Issue #157 remains open. Keep this PR draft and unlabelled.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:13 UTC

Recovered GitHub comment by @aien-spark on 2026-10-28T17:22:19Z. Original comment 6475828425

IMPLEMENTED / HOST-EXERCISED / MERGED — not physically qualified

PR #166 merged as fb0ae56b2a9619c0fda29f29751d304e535c133b at2026-10-28T17:18:32Z. Reviewed source head: c6cc8d8bde605ac60191175228d945603eb3a256. Dependencies #160/#168 and the #164 scan fix were integrated without rewriting branch history; the guarded squash used --match-head-commit, an explicit authorized DCO body, and no bypass.

The native Omega component path includes original direct FP8 projection, a changed weight-first component, grouped rowpipe, and actual dense/mapped large-M staged generation through the existing unsolved Blackwell IR, native global allocator and unchanged checked pure encoder. The permanent Python conductor is removed. Existing FFMA arithmetic is preserved; this is not a tensor-core or hardware-performance qualification claim.

Canonical-v1 remains1152 used bytes with unchanged wire/version. Family3 structural checks and bc_record(cfg16,canonical4096,launch32,actual8) preserve source shape/resource/ABI rules and fresh allocator peak+2 headroom. Word18 is emitted K-step unroll U, not physical buffers/pipeline depth. Counters are not authenticated witnesses: same retained snapshots, exact mixed-width ABI, actual launch/map/segment/loop bounds and exact-candidate qualification remain caller obligations. Production NULL/count0 and qualification gates are unchanged.

Pinned seeded compiler source e5b32567; binary SHA256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f. Omega MCP lookup/compile/run/explain_error were used. No feature support was inferred from a newer compiler.

Final exact-head host bundle exited0: 28 native complete-frame cases (8direct/14rowpipe/6staged) with independent existing-C IR/allocation/encoding, whole-output nvdisasm, numerical oracles and mutation/refusal controls; make -j8 all; 50-target host suite; 47 artifact checks; zero-CUDA positive/negative controls. All 12 exact-head CI checks succeeded before merge. Final host receipt and review boundaries. Exact-head nonauthor-agent review.

Public component receipt: SHA256 546ccda33dbf2cdceed2efdc8d8558978551d8a55e4e3647b01c3a5d2dd26fb9. Merged contract and reproduction.

Keep #157 OPEN. Required physical whole-model projection/grouped/changed-component execution, device numerical comparison and actual launch-template binding, representative large-M latency, graph replay, GB10 window/VRAM/resource qualification are NOT_RUN: no GPU authorization was granted. Shared registration/bridge/caller integration is separately owned; this source-merge receipt does not attest that path or authorize deployment. No model/service/driver/firmware change occurred. Toward #26, this is bounded host-only source progress, not whole-mission completion.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:21 UTC

Recovered GitHub comment. Original comment 6511428150

FlintOwner 2026-10-29, IMPLEMENTED / EXERCISED host only: https://github.com/aien-dev/aien-sovereign-core-mv/pull/806, head 402025cdb5f2a4d7e8a7f88242273aa910ad1f05, stacked on Core #805. Frozen checkpoint RecursiveSI/flint@2a247be0c0aec895ccb0ac7ca92229ec6df37288. FLINT_FORWARD=1 gate PASS (92), including prior89 checks, all49 chained layers/five intermediate tensors each/final norm/all-vocabulary logits, and wrong-token + skipped-final-norm mutants. Native BF16-storage/f64-compute vs reference f32, fixed integration budget documented; no teacher forcing, no sampled generation or task quality claim. The chained CPU loader/numerics do not claim native load/dequant/MMA/epilogue GPU composition. Existing #166 contracts and closed #158 cache are unchanged, not reopened. Device consumer integration/negative gates remain NOT_RUN.

Sign in to comment