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/4a5895a2b8e05706 # 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 # Build bounded SASS schedule search with independent encoded-code validation Open · #22 · open 2026-10-22 17:08 UTC Imported from GitHub aien-dev/CUDApp#22, by drakestapleton drakestapleton wrote on 2026-10-22 17:08 UTC ## Problem CUDApp owns IR, register allocation and scheduling controls. The host warp simulator executes IR, so passing it alone cannot prove emitted machine bytes or scheduling fields are correct. ## Dependencies and scope Reuse #10's disassembler and existing fixtures/chip probes. Begin with legal basic-block reorderings in one measured hot kernel; preserve the current generator. Measure GB10 latency facts rather than copying A100 dependency tables. ## Acceptance - Define a bounded candidate space and reject data, predicate, scoreboard, fixed-latency, branch/reconvergence, register-bundle and resource violations. - Independently decode/check emitted instructions and controls, alongside IR simulation, reference outputs and repeated chip tests. - Include malformed encoding, dependency and control-field mutants; a shared encoder/decoder assumption is not independent proof. - Time candidates only after correctness passes; use paired repeated measurements, holdout shapes/inputs and explicit search budgets. - Store candidate lineage, bytes/digest, target facts, resource use and validation/timing receipts. - Freeze validated winners for reproducible deployment; retain the baseline when no robust improvement is demonstrated. Research: CuAsmRL (https://doi.org/10.48550/arXiv.2501.08071 ), evaluated on A100. Its reported gains and heuristics do not establish GB10 behavior. ## Evidence and closure Review baseline: `232332422bfdc31c8918085b50f13c1e18ab702e`; re-inspect the current tree and reuse existing work before editing. Coordinate with #5 and #6 and the serving/chip-window owner; host work can proceed independently of hardware scheduling. This issue does not authorize interrupting the live motor or switching kernel drivers. Publish exact source/pin SHAs, build and binary hashes, commands, exit codes, hardware/driver identity, raw logs and relevant negative controls under evidence/. Separate host, simulator and GB10 results. Hardware acceptance needs a real coordinated GB10 run on the final integrated artifact. Keep CUDA userspace dependencies out of the deployed runtime. Do not close on a branch push, simulator-only hardware result or PR merge alone. Experimental issues may close with a reproducible negative result and explicit decision; do not claim an optimization shipped unless its integration gates pass. ## CUDA-LEARN integration addendum ### Structured proposal interface, holdouts and exact artifact validation CUDA-LEARN #52 builds on this issue. #54 owns high-level transformation proposals; this issue owns the legal low-level schedule search. #53 provides frozen independent task semantics, #55 adds scoped native stress tests, and #57 checks full-consumer payoff. Reuse #10 and #35; do not make a second encoder, disassembler or runtime. Expose a bounded schedule-action schema with preconditions and explicit unsupported cases. Include physical register aliases/subregister bundles, predicates, branch/reconvergence, scoreboard reuse, memory effects and instruction resource constraints. Candidate validation must inspect emitted bytes and launch state; successful IR simulation alone is insufficient. No arbitrary generated machine code bypasses admission. Compare deterministic baseline, legal random/bounded search and learned proposals under matched candidate/token/compute budgets. Timing reward is allowed only after that candidate passes the required correctness gates. Keep heldout shapes/compositions sealed, record all rejected candidates, and distinguish proposal-model training from inference-time search. Receipt identity includes source and compiler, instruction bytes, control fields, QMD/launch shape, target capability facts, numerical contract, correctness coverage and complete measurement context. Any changed executable input invalidates affected receipts. A schedule winner must pass the assembled model's constraints before default selection. Final first-party code/tests/automation are seeded .om under aien-dev/omega-mv#599. Preserve the incumbent algorithm in .om if no robust gain is found; remove replaced legacy code only after the replacement and consumer cutover are qualified. CuAsmRL's A100 results remain motivation, not GB10 latency facts. ## 2026-10-28 composed-kernel scheduling seam The #157 component stitcher must submit a whole IR program here for verification/scheduling. Do not concatenate independently encoded SASS fragments. Track virtual-register bundles/liveness, cross-component memory effects, scoreboard read/write barriers, producer/consumer latency, predicates, reconvergence, shared memory and arch capability; independently check final bytes beyond common encoder/decoder assertions. Reuse existing `omega_blackwell_codegen_moe2.c` SB_B pipelined load rules as a regression case. Hardware-independent checks are HOST_TESTED only; schedule winner requires independent output+GB10 gate, raw timing under #17 , and selector qualification #57 . No comments. Sign in to comment