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/b4014ff03087708b # 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 P2] Retain kernel optimization evidence and measure whether reuse helps Open · #58 · open 2026-10-23 19:43 UTC Imported from GitHub aien-dev/CUDApp#58, by drakestapleton drakestapleton wrote on 2026-10-23 19:43 UTC Parent: #52. Research snapshot: 2026-10-23. ## Problem Saving the fastest source alone loses why it worked, where it failed and which verified intermediate enabled it. Conversely, accumulated notes can mislead future searches when hardware, shapes or numerical requirements change. CUDA++ needs experimentally useful optimization experience, not an unmeasured growing prompt. Reuse aien-dev/omega-mv#651 and aien-dev/omega-mv#658's semantic reuse/trace ownership and aien-dev/spark-rsi-mv#67's bounded independent evaluation. This issue owns CUDA++-specific records and transfer experiments, not another memory store or judge. ## Input records and boundaries Consume #53, #54, #55, #56 and #57 receipts. Record task/target identity, proposed action, expected effect, parent artifact, changed code, compilation/resource evidence, validity checks, measured workloads, cost, failure reason and applicability conditions. Separate verified-but-not-promoted alternatives from invalid candidates and from promoted incumbents. Store compact reproducible facts and bounded procedures. Do not treat a model's explanation as evidence. Retain raw receipts through existing storage policy; do not copy private weights or arbitrary model traces into public issues. ## Work - Implement a versioned .om adapter to the existing record/store interfaces. Preserve semantic versus provenance identities and content-addressed artifact links. - Extract a bounded reusable procedure only when an action is replayable with explicit preconditions. Keep uncertainty and failed applicability examples with it. - Retrieve by actual target, dtype/layout, shape family, numerical contract and bottleneck facts. Reject incompatible or stale entries before generation. - Evaluate no-memory, raw-receipt and distilled-procedure variants under matched total budgets. Use heldout shape/composition families, randomized task order and separate training/evaluation pools. - Test transfer between native kernel families and, only when independently supported, between device profiles. Same-problem syntax translation does not establish new-problem transfer. - Account for creation, validation, storage, retrieval, prompt expansion, retries, revalidation and maintenance. Report break-even reuse count when estimable and all assumptions; do not credit only reduced online tokens. - Give entries expiry/invalidation conditions and a mechanism to quarantine misleading evidence. Preserve historical provenance rather than silently rewriting a failure as success. ## Acceptance - A retained record replays its action against the exact parent and detects changed inputs. - An intermediate that passes correctness but loses on latency can be stored without becoming the incumbent. - Stale-target, wrong-shape, incorrect numerical-contract and poisoned-claim controls are rejected or isolated. - Transfer evaluation reports task-level wins, regressions, correctness and total cost, not only aggregate improvement. - At least one full experiment reaches a predeclared GO/NO-GO decision for enabling retrieval. - Reuse cannot bypass independent qualification or expose the sealed final task pool. - A measured negative outcome disables the experiment's default use while preserving useful evidence. ## Research and limitations MetaKernelBench measures same-problem cross-DSL knowledge transfer and reports substantial regressions alongside gains. It does not show universally beneficial optimization memory or novel-task generalization. AReaL-TIK motivates an implementation/action/audit history and keeping useful verified intermediates. Neither source establishes a net lifecycle saving on GB10. The experiment must decide whether CUDA++ benefits under its own cost and correctness constraints. ## Priority Run after reliable task/evidence production. Preserve the existing bounded RSI allocation; do not make a general self-improvement programme a dependency for runtime release. ## 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. No comments. Sign in to comment