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

[CUDA-LEARN P0] Build a contract-bound native kernel task corpus and independent evaluator

Open · #53 · open 2026-10-23 19:43 UTC

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

drakestapleton wrote on 2026-10-23 19:43 UTC

Parent: #52. Research snapshot: 2026-10-23.

Problem and inspected implementation

Before training or searching for kernels, CUDA++ needs tasks that cannot redefine their own correctness. At main 80f3a2492eef315106feebfdffcb32de39be7d95, src/omega_blackwell_codegen.h defines bounded IR, scalar/pair/quad registers and explicit instruction controls; src/omega_gpu_decode_graph.h documents arithmetic differences between device and host paths. Existing #16 owns numerical contracts and #17 owns measurement. Extend their schemas rather than creating another benchmark service.

Active work already exists: numerical branch 2da3fa1b2392bcab593bbb5f71a36b04a6d289b1 includes omega_gpu_numerical_contract.*; benchmark branch 65948c9c9420391782939e3492b9ed310ec774c7 includes omega_native_benchmark.* and native graph collection. These are inspected source snapshots, not claims of GB10 qualification. Their .om successors should retain useful tests and provenance.

Scope and ownership

Create a small, versioned CUDA++ kernel-task adapter for aien-dev/omega-mv#653's evaluation framework. Initial scope: integer elementwise, one reduction family with fixed order, small matmul, and one existing measured hot operator selected from #17. Register supported shapes rather than claiming any-shape coverage. Broader math stays #9; target capability profiles stay #37/#39 and aien-dev/omega-mv#628.

Each task binds semantic operation, reference identity, input generator, dtype/layout/strides, shape/tail constraints, aliasing, effects, FP contract, resource ceilings and target capabilities. Freeze task semantics before candidates are generated. Use independently implemented oracles and metamorphic relations where valid; merely running the same generator twice is not independence.

Work

  1. Version a bounded manifest and parser with deterministic serialization and explicit invalid/unsupported results. Keep semantic identity distinct from provenance and performance context.
  2. Build public development tasks, validation tasks and a sealed final evaluation pool. Split by operation composition and shape family, not only random seeds; deduplicate normalized tasks, source variants and generated descendants.
  3. Include signed-zero, cancellation, overflow/rounding boundaries, masking, ragged tails, ties and nonfinite cases only under the chosen contract. Existing finite-only comparators must explicitly refuse unsupported nonfinite inputs, not silently claim coverage.
  4. Run candidate admission, compilation, independent byte/launch validation, behavioral checks and only then timing. The candidate cannot modify the oracle, tolerances, workload list or result recorder.
  5. Record every attempt, including invalid, timeout, compile failure and no-gain outcomes. Report pass@1, budgeted success, accepted speedup across all tasks, coverage and total search cost; do not report only winners.
  6. Bound compile/run time, output sizes and workspace. The evaluator must not execute arbitrary generated host code with repository/network/credential access. Native GPU execution remains inside the existing isolated, coordinated qualification path.

Acceptance

  • One command replays a pinned task manifest and validates independently produced expected outputs.
  • Mutants for skipped writes, hard-coded sample answers, wrong strides/tails, changed tolerances and test-result spoofing fail for the intended reason.
  • Holdout task contents never appear in training artifacts or ordinary optimization feedback; access and repeated evaluation are recorded.
  • A seeded .om corpus/evaluator slice works without CUDA userspace. CPU/simulator-only runs remain labeled.
  • Paired baseline/candidate results include full denominator, uncertainty, resource use and cold/warm setup costs through #17.
  • The independent evaluator can reject a faster wrong candidate without relying on a model's judgment.

Research and limits

KernelZero motivates capability-targeted tasks and correctness-first learning, but its paper does not establish leakage-free heldout generalization for .om. D2K-Bench motivates separating algorithm, dataflow and low-level implementation guidance. Their CUDA/Triton/B200 or A100 outcomes are not GB10 evidence. This issue defines the local experiment, not a promised speedup.

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 6373848027

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 6373945134

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 6375078033

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:08 UTC

Recovered GitHub comment. Original comment 6375184787

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