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/4084c0167ea49c80 # 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 # [OM-GPU-RETIRE] Replace CUDApp C SASS encoder/session/kernels and tests with qualified native .om Open · #79 · open 2026-10-25 02:19 UTC Imported from GitHub aien-dev/CUDApp#79, by drakestapleton drakestapleton wrote on 2026-10-25 02:19 UTC ## Verified code state CUDApp main `3f9c154c` (2026-10-24) holds 1,008 tracked files, including 111 .c, 138 .h, 81 .om and 8 .osc (whole repo); the active-path subset includes `src/omega_blackwell_codegen*.c/h`, `src/omega_blackwell_encoder.c`, `src/omega_gpu_*.c/h`, `src/omega_blackwell_submit.c`, `m16/`, `nvrm/`, `tests/*.c` and `omega/slices/launch.osc`. These are first-pass filenames, not a verified execution closure. CUDApp #5 owns canonical motor; #26 owns research/roadmap; Omega #638 CPU-to-GPU language path, Omega #650 compiler trust, and Core #742 live 35B baseline remain authoritative. ## Work to implement and remove - Inventory actual active C ABI functions, driver/user-space ioctls, SASS encoding/decoding, QMD descriptors, FP8/BF16/GDN/MoE/attention execution, session/allocator/memory ordering, kernel launches, error/recovery and current test evidence, including hosted/external driver boundaries. - On the existing .om seed/IR codegen owner branch, qualify one native sm_121 kernel from handwritten .om against old C output and independent CPU/simulator oracle, including rejection of intentionally corrupted encodings. Expand by kernel family without creating a second compiler or driver. - Migrate native command lists, shader/weight cache, memory alloc and synchronization, host/device handoff, register allocation and test suites into existing first-party .om runtime/backend. Preserve golden inference, cache-coherency negative tests, batching, cancellation and recovery. Distinguish external NVIDIA open kernel module/GSP firmware as hardware floor, NOT project C logic. - Qualify existing CUDApp #18 fusion, SEM-MOE #78 compressed decode and current model serving as consumers only when owner-ready, keeping default 35B resident path unchanged until separately accepted. - After equivalent .om consumer passes, delete each superseded `src/*.c/h`, `m16/` and `nvrm/` first-party implementation, old .osc slices, active first-party C test runner and their Makefile/static-link dependencies; preserve third-party interface headers only if genuinely third-party and disclosed. No permanent C reference fallback. ## Acceptance - Per-file compiled-source and transitive consumer inventory with exact main/branch SHAs, owner, planned deletion. - Native .om sm_121 kernel, orchestration/allocator/driver-client parity, test/negative receipts and independent review. - One full qualified production-shaped FP8 35B or smaller model execution with exact end-to-end gate and no CUDA userspace; existing live service never modified by unqualified candidates. - Actual active first-party C/handwritten legacy source and all linker/build/test dependencies removed after controlled cutover, checked by architecture #316. - Self-hosted source-to-machine binary + signed evidence/rollback; GPU runs only in approved quiet windows, other tests NOT_RUN when unavailable. ## Migration rules Finite delivery child of architecture #300 , SEM-0 #315 , and the zero-legacy release audit #316 . Final project-authored source, tests and build/runtime glue = qualified seeded .om, not wrappers around C/Rust/.osc/shell. Preserve source history and immutable evidence through Git history but remove superseded implementation and its transitive first-party production dependencies from active trees. OS, vendor-signed firmware, protocol vectors and third-party independent oracles are separately inventoried rather than misrepresented. Follow plan authority, repository AGENTS.md, current owner worktree/lease and release desk; no unauthorized GPU, live-server, reboot, firmware or visibility changes. ## 2026-10-28 native component/quant/cache migration consumers New GPU implementation lanes #156 , #157 , #158 , #159 and enhanced selector #57 must use seeded handwritten `.om` for new first-party product logic. Existing C codegen/API paths are inspected differential or migration inputs; do not build a new permanent C implementation to bypass unimplemented Omega constructs. Reuse merged `.om` encoder/cubin PR #143 and authoritative spec PR #155 ; record any missing compiler/IR capabilities as bounded dependencies. Qualify old/new bytes, semantics and actual chip/consumer before retiring old code. Canonical integration blocker #106 remains separate. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:12 UTC Recovered GitHub comment by @aien-spark on 2026-10-27T08:10:47Z. Original comment `6436873250` Progress on this issue: draft #143 (pending) moves the sm_121 instruction encoder and the cubin writer into seeded `.om` (twin for omega-mv: aien-dev/omega-mv#892). CUDApp `src/` at #143 (`wc -l`) Lines Hand-written C/H 36,085 (139 files) of which out of the default hosted build (migration-pending oracle: encoder 568, cubin 337) 905 `.om` in the default hosted build (`om/`) 1,038 Generated omega-bridge binding 187 `.om` in `native/` (not linked into libcudapp) 5,596 Evidence: .om vs C byte-identical on 243 corpus kernels and 869 cubin calls; mutants red; GB10 chip gate passed with both encoders, and the 70 kernels it dumped are identical (`evidence/CUDAPP-OM-ENCODER/` on #143). Freestanding builds still use C. Most of CUDApp is still C. Sign in to comment