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/15e106c220b1339b # 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] Verified native kernel learning and bounded optimization programme Open · #52 · open 2026-10-23 19:42 UTC Imported from GitHub aien-dev/CUDApp#52, by drakestapleton drakestapleton wrote on 2026-10-23 19:42 UTC ## Outcome and scope Create an evidence-backed path from a fixed GPU task contract to a generated or transformed .om kernel, independent validation, a measured native consumer result, and an optional learning update. This is a finite CUDA++ research workstream under #26 and the current architecture execution plan. It does not replace the existing integration/release programme. The project is CUDA++, hosted in `aien-dev/CUDApp`. Reviewed 2026-10-23. These issues are implementation specifications, not claims that the proposed capabilities already exist or have passed on hardware. ## What was inspected Main snapshot: `80f3a2492eef315106feebfdffcb32de39be7d95` . - `src/omega_blackwell_codegen.h/.c`: bounded native IR, explicit control fields, register bundles and allocator, code encoding and allocation-free interfaces. - `src/omega_blackwell_encoder.c`: fixed native instruction fixtures and code digest checks. Identity/fixture checks do not prove arbitrary generated code correct. - `src/omega_gpu_cmdlist.h`: conservative wait/cache operations, explicit independence marking, per-launch completion checks and uncertainty latching. - `src/omega_gpu_decode_graph.h`: whole-token graph, session ownership, cache assumptions and documented host/device numerical differences. - `ROADMAP.md`, current open issues and PRs, and active branch histories. Main still contains C and .osc implementations. The seeded .om direction is a delivery requirement, not a statement that migration is complete. ## Preserve existing work and ownership Owner Reviewed work to reconcile before implementing #5 Canonical backend/consumer identity and final integrated qualification #15 `roadmap/15-reproducible-host`, `2bf8b781219ac179336d5e7a876d63e6fb5d1873`: host qualification work exists #16 `roadmap/16-numerical-contracts`, `2da3fa1b2392bcab593bbb5f71a36b04a6d289b1`: contract comparator and trace tests exist #17 `roadmap/17-native-benchmark`, `65948c9c9420391782939e3492b9ed310ec774c7`: native graph/request collection exists; batch-one graph adapter and unknown-counter handling are explicit #24 `roadmap/24-cooperative-reservations`, `65e7ae4b8b52d51664153e9cf02b752473165fac`: reservation work exists #48 `feat/zero-channel-native`: `native/weightpack/weightpack.om` is an existing bounded native codec; reuse its owner Recovery `recovery/orphaned-work-20261023-l755`, `22965981baf78b3ae8768444f071f9b2c5410a55`: recovery inventory is provenance, not product qualification These are reviewed snapshots. Resolve current heads and receipts again before changing code. Preserve active contributions and their historical licensing/provenance; follow current repository policy for integrated changes. Existing runtime owners remain #6/#11/#12 (concurrency/recovery), #9 (general math), #10 (independent disassembler), #13 (repeatability), #14/#17 (measurement), #19 (dependency synchronization), #22 (SASS schedules), #35 (checked tensor lowering), #37/#39 (capabilities), and #48-#51 (weight representations). Do not duplicate these systems. ## Research findings and design decisions Research retrieval used the existing Undermind CUDA++ runtime study , a targeted July-October 2026 kernel-learning search, full-text questions on four papers, and primary-source checks. The older search goal described the then-MIT revision; current repository licensing has changed. The literature is a research input, not implementation authority. Research Useful mechanism Limit retained in this programme RESOLVE, Oct 5 Schedule perturbation, reduced witnesses, explicit proof chain Native-original links remain tested unless separately proved; real algebra is not an FP error bound or race-freedom proof. H100/NVBit does not establish CUDA-free GB10 support AlphaCu, Oct 7 Explicit transformation choices and qualified microkernels Abstract/metadata reviewed only; no transplanted correctness or speedup claim KernelZero, Sep 27 Correctness-first kernel curriculum and alternating proposer/coder learning Parameter training differs from inference search; A100 CUDA/Triton results do not establish .om transfer or affordable Spark training KernelOPT, revised Oct 6 Recheck assembled models and retain valid baseline Avoid mixing version-specific counts. Its 1.03 gate permits bounded slowdown, not a required speed gain; define our own policy MetaKernelBench, Oct 4 Measure whether retained experience helps Transfer can regress; same-problem cross-DSL results are not novel-task generalization AReaL-TIK, Sep 28 Evidence/lineage records and consistent rollout/update numerics Reuse requires the right policy snapshot and probability semantics; no GB10 result D2K-Bench, Oct 2 Distinguish design guidance from implemented optimization Guidance is an experimental input, not proof a design was realized ## Delivery sequence - Reconcile branch/source ownership and finish prerequisite native .om migration/qualification slices. Preserve evidence before removing replaced legacy code. - Establish independent task semantics and full-cost baselines through existing #15/#16/#17 owners. - Add explicit transformation proposals above #35/#22, with native byte checks and bounded concurrency stress. - Pilot one reduced witness through the existing Omega checker. Keep this optional proof research from blocking unrelated qualified runtime work. - Integrate only validated candidates through existing native graphs and deterministic shape-aware selection. Require final consumer checks. - Evaluate reusable experience and a kernel-specialist curriculum under capped budgets. Keep at most the already-authorized bounded RSI work active; no unbounded self-improvement loop. - Run the rollout/update consistency experiment only after native training and objective semantics are ready. ## Child work The linked task list below tracks the eight bounded deliverables. Each issue has its own scope, dependencies, implementation steps, acceptance gates, negative controls and research limits. - #53 - Build a contract-bound native kernel task corpus and independent evaluator - #54 - Search explicit .om kernel transformations over qualified native microkernels - #55 - Test native GPU candidates under bounded schedule perturbation - #56 - Pilot reduced-concurrency witnesses with explicit proof and binary-test boundaries - #57 - Qualify shape-aware kernel selection against complete native model workloads - #58 - Retain kernel optimization evidence and measure whether reuse helps - #59 - Feed native kernel tasks into correctness-first .om specialist training - #60 - Test bitwise rollout/update consistency before reusing training log probabilities Task Immediate prerequisites #53 #15/#16/#17; aien-dev/omega-mv#653 #54 #53, #35, #22 and #10 #55 #53, #13, #22; qualify native perturbation feasibility first #56 #53/#55, #35 and existing Omega semantics/checker support #57 #53/#54, #16/#17/#19/#24; candidate correctness first #58 Applicable #53-#57 receipts and existing Omega reuse store #59 #53/#54 and qualified aien-train native training prerequisites #60 #53, #16/#17/#35 and qualified native rollout/update paths Host/schema work may proceed independently where its real prerequisites are available. Hardware-dependent acceptance remains explicit. ## Cross-project interfaces Use Omega learning #652 , task framework aien-dev/omega-mv#653, trace/reuse aien-dev/omega-mv#651 and aien-dev/omega-mv#658, compiler/translation aien-dev/omega-mv#623, aien-dev/omega-mv#624 and aien-dev/omega-mv#625, native training aien-dev/omega-mv#606, aien-train #3 /#4 , and RSI #67 /#68 . CUDA++ provides GPU-domain adapters and receipts. Those repositories retain their existing compiler, trainer, store, independent judge and release owners. ## Completion Track implementation, host/simulator qualification, real GB10 qualification, independent review and integrated consumer adoption separately. A paper result, successful compile, test fixture or artifact digest cannot fill a stronger evidence row. Freeze budgets and holdouts before experiments. Report negative results and every failed attempt. Close the tracker only when each child has an explicit evidenced disposition, accepted changes pass the final consumer gates, and no required final-state legacy implementation remains in the delivered scope. ## 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. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:08 UTC Recovered GitHub comment. Original comment `6373849040` ## CUDA-LEARN implementation progress: public native-host #53 slice Published source/evidence: `learn/53-native-task-L777` at `2a89cd300de152cb0d66d290567658a2e1497bb8` . Executable/test input commit is `11ad6a0a7783f5d221de79111d6abba4ee1ae52f`; subsequent commit adds evidence/docs only. - Seeded `.om` bounded canonical task parser and independently computed output checker for unsigned32 add, fixed-order sum and small matmul, eight explicitly registered shape families. - Public data-only native replay entry. No generated host code, GPU code, process launch, model or network execution. - Native core 77/77 and frame 17/17 checks pass. Wrong/skipped outputs, sample-answer reuse on changed input, strides/tails, padding/canaries, changed tolerances, candidate result text, unsupported target and non-public pool controls reject. - Four successfully compiled evaluator mutants fail their intended assertions. Fresh immutable-source export reproduces all five native binaries byte-for-byte. Existing unchanged legacy host suite passes33 targets, separately labelled. - Source-only compiler reconstruction verified SHA256 `191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9`. Exact source/tool/binary identities, commands, original failures, raw results and syscall observations: receipt . This is partial native-host domain qualification, not #53 completion or a GPU/speed result. The public stream does not authenticate its task or evaluator and its diagnostic is not a promotion receipt. Independent source/native replay review is running under L778; no independent-review PASS claimed yet. PR creation/release remains with the existing sole Merge Desk; branch is reviewable now. Remaining gates and exact retained prerequisite heads are in the dependency matrix : qualified Omega653/L775-L776 framework/custody/result-accounting interface; seeded #15 host/build path, #16 numerical/FP policy and #17 real full-cost collector/baseline; selected measured hot operator; independent GPU byte/launch and actual consuming-graph gates. L775/L776 continuation remains queued/unacknowledged with TICK-OFF, not silently replaced or restarted. Existing owner inbox/board has the exact requests. No protected final tasks accessed, no candidate search/training begun, no active job or service changed. #54-60 retain their dependency gates and remain NOT_RUN. No legacy consumer was cut over, so legacy removal is not claimed or performed prematurely. #52/#53 remain OPEN; no auto-closing keywords. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:08 UTC Recovered GitHub comment. Original comment `6373945939` ## Reviewed implementation is now in draft PR #61 PR #61 is OPEN and DRAFT at `4337fb2b8f81ba661b23868012210b2fc71daef3`, targeting main. The sole existing Merge Desk created it; this chat independently read back the exact head, draft status, title and body. Nothing was merged. Independent native-host review is complete and published: original report , verified disposition and limits . No Critical/Important/Minor defect found in this bounded slice. Parent verified all9 active source/test files against `11ad6a0a7783f5d221de79111d6abba4ee1ae52f`,77/77+17/17 raw results and binary hashes, and re-executed the reviewer's additional `.om` probe. Product/test executable inputs are unchanged; later commits add documents and immutable evidence, including review probe sources. At the last check, hosted CodeQL C/C++ analysis was still IN_PROGRESS (Python analysis SUCCESS); no overall CI-green claim. Native tests and legacy-host regression evidence remain separately labelled. Full #53 and #52 remain OPEN. Omega653 protected framework/custody/accounting and seeded #15/#16/#17 native qualification/numerical/collector interfaces, hot-operator/full-cost baseline, GPU and actual consumer gates remain prerequisite work with their existing owners. #54-60 remain dependency-gated; no training, performance, proof, production activation or legacy retirement is claimed. Exact remaining gates: dependency matrix . did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:08 UTC Recovered GitHub comment. Original comment `6375078717` CUDA-LEARN53 continuation is now in draft PR #61 at `f08064661b65feb65b9f88f1d83e4c20069100f6`. Frozen executable/test source: `94ada80cd8acf2c31441ab1dcee98f896ce884c4`. Implemented the eight-task compiled public CUL1 catalog and a thin native adapter using the existing Omega653 core `84d03c5523f39ca1045d1c313c5f62597779462b` via exact source lock. This replaces the stale prerequisite assumption that no component interface was available; it does not replace the upstream framework or its owners. Actual native-host results: catalog83/83; canonical adapter160/160; unchanged original77/77+17/17. Upstream185 checks reproduced its exact ELF first. All four new binaries reproduced from immutable source. All eight emitted task manifests passed native byte checks; empty/extra/invalid-ID refusals emitted no payload. Three compiled negative controls rejected with2/11/4 failed assertions (ignored outcome, omitted task, ignored output length). Exact-source receipt and raw evidence . API and limitations . L783 independent continuation review is dispatched; findings pending. L778's earlier review is not claimed to cover these new files. PR stays DRAFT; no merge, release, production activation or issue closure. The LT/LPin/LC records in tests are explicitly SYNTHETIC unit fixtures, not genuine candidate/training records or measured baseline costs. These are all public development tasks, not disjoint sealed pools. Full #53 still needs owned native process/custody/source-metadata/cost interfaces, seeded #15/#16/#17 integration, hot operators, GB10 and real consumers. No model/GPU/search/training work ran. #54–60 remain gated; public numerical fixtures are not evidence of their acceptance. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:09 UTC Recovered GitHub comment. Original comment `6375185497` Independent L783 review is now verified and published in draft PR #61 at `3d43aaa9e807a4f219e5fa5aaade43fba9e4c8c6`; active source remains `94ada80cd8acf2c31441ab1dcee98f896ce884c4`. No Critical/Important/Minor findings in the bounded component. Parent verified all17 active source/lock/test files against the Git pin, the review artifact manifest, all eight native task exports/refusals and compiled negative controls. Independently executed suite totals are185+83+160+77+17 = 522 checks, all passing; compiled mutants fail2/11/4 assertions. Original report and parent disposition preserve the evidence and scope limits. The review completion summary contained an invalid41-character source token; it was rejected, and the report's correct40-character pin was established through exact source bytes. A separate original-core binary composition difference was reproduced and explained, not silently equated. This clears only the bounded draft increment's review. It does not authenticate synthetic unit metadata/costs, create genuine training records, qualify protected pools, GPU/model execution, a native sandbox or full baseline costs, or satisfy full #53/#653. No executable source changed after review. PR remains DRAFT and these issues remain OPEN; production activation remains with its existing owner. Existing Merge Desk is updating PR metadata, not merging it. Sign in to comment