interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / crates / site-builder / data / cudaplusplus.json

166 lines · 12487 bytes Raw Blame History
1{
2 "source": {
3 "repo": "https://interplane.io/drakestapleton/CUDApp",
4 "readme": "cp:README.md",
5 "how": "cp@:62ea5a214d46f36e88cb7b892cecebf1f3e8a172/docs/HOW_WE_DID_IT.md",
6 "how_branch": "docs/how-we-did-it",
7 "how_commit": "62ea5a2",
8 "main_commit": "fc90713",
9 "omega_doc": "om@:89aad7c99b4fced80f92b656d2a3f350699456f0/docs/OMEGA.md",
10 "omega_branch": "docs/what-omega-is",
11 "omega_commit": "89aad7c",
12 "checked": "2026-10-22",
13 "ledger": "L402",
14 "visibility": "public",
15 "owner_ledger": "L395"
16 },
17 "claim": "CUDA++ is the GPU half of Omega, plus the motor.",
18 "claim_rest": [
19 "It runs on the GB10 in my DGX Spark. Hardware scope: GB10 only. The NVIDIA open kernel module 580.173.02 and NVIDIA-signed firmware remain in the path. It is its own open source project, under the Apache License 2.0 with the LLVM exception, in the repository aien-dev/CUDApp.",
20 "On 2026-10-21 the 35 billion parameter model Aien served on the Spark then (Qwen3.6-35B-A3B) ran on this code. That model was retired on 2026-11-06 and no model is served on the Spark today."
21 ],
22 "purpose_title": "Useful work on a machine I own.",
23 "purpose": "I want each answer to need fewer bytes moved, fewer operations and fewer joules, so useful work runs on a machine a person owns. Every result is reported as work per answer, against the machine's own ceiling. Hardware execution is qualified only where a receipt says so.",
24 "purpose_link": "om@:89aad7c99b4fced80f92b656d2a3f350699456f0/docs/OMEGA.md",
25 "source_note": "The repository is public: https://interplane.io/drakestapleton/CUDApp. Its audit is https://interplane.io/drakestapleton/CUDApp/blob/main/docs/AUDIT.md (Status CLEAN).",
26 "audit_link": "cp:docs/AUDIT.md",
27 "hops": [
28 {
29 "step": "Write a kernel",
30 "cuda": "Language and kernel builder",
31 "ours": "The kernel builder, called from C. Omega's own languages reaching the GPU is Omega bar C1, built on this toolchain.",
32 "status": "PARTIAL",
33 "note": "C calls only. Bar C1 PARTIAL, HOST_TESTED: the seeded Omega encoder (om/encoder/bw_enc_sm121.om) dropped LDG.E load offsets; fixed 2026-11-07 in CUDApp 870fd16c, receipt CUDApp evidence/ldg-offset-20261107/README.md (CUDApp main f1b50cbf), chip NOT_RUN",
34 "links": [["kernel builder", "cp:src/omega_blackwell_codegen.c"], ["bar C1", "/omega/#c1"]],
35 "box": "cp:README.md#cuda-piece-by-piece"
36 },
37 {
38 "step": "Compile to machine code",
39 "cuda": "Compiler",
40 "ours": "My own sm_121 encoder and register allocator: 59 instruction kinds, launch descriptors. On CUDApp main the default encoder is the seeded Omega one, om/encoder/bw_enc_sm121.om.",
41 "status": "PARTIAL",
42 "note": "CHIP_TESTED 2026-10-21: every kernel the 35B server ran (retired model) was encoded by it, receipt omega evidence/WHAT-OMEGA-IS-20261021/live-serve-no-cuda.txt. Since then: dropped LDG.E offset found and fixed 2026-11-07 (CUDApp 870fd16c, HOST_TESTED, chip NOT_RUN); M16 requalification FAIL on CUDApp main b774723f on 2026-11-06 (GpuWindow receipt r2-m16, Linear DRA-158)",
43 "links": [["encoder", "cp:src/omega_blackwell_encoder.c"]],
44 "box": "om@:89aad7c99b4fced80f92b656d2a3f350699456f0/evidence/WHAT-OMEGA-IS-20261021/live-serve-no-cuda.txt"
45 },
46 {
47 "step": "Talk to the driver",
48 "cuda": "Driver API",
49 "ours": "My own client for the open kernel module's ioctls, written from its MIT headers.",
50 "status": "PARTIAL",
51 "note": "M16 FAIL 2026-11-06 on CUDApp main b774723f: the requalification script's own build failed (nvrm/nvrm.c: omega_ampere_qmd.h not found), so the GPU was never opened (GpuWindow receipts r2-m16 and r3-nvrm, Linear DRA-158). M16 at CUDApp main f1b50cbf: NOT_RUN. The earlier M16 PASS, CHIP_TESTED, is the box receipt (committed 2026-09-26)",
52 "links": [["nvrm client", "cp/:nvrm"], ["open headers", "cp/:third_party/nvidia-open-580.173.02"]],
53 "box": "cp:evidence/m16-blackwell-native-path-requalification-receipt.json"
54 },
55 {
56 "step": "Run work",
57 "cuda": "Runtime",
58 "ours": "Session, command lists and job engine: device, memory, upload, launch.",
59 "status": "PARTIAL",
60 "note": "one device, one process; no streams or events yet",
61 "links": [["command lists", "cp:src/omega_gpu_cmdlist.c"]],
62 "box": "cp:README.md#cuda-piece-by-piece"
63 },
64 {
65 "step": "Libraries",
66 "cuda": "Math kernels",
67 "ours": "Matrix multiply (BF16, FP8, 4 bit, ternary), a general GEMM (gemm_ex), FFT and random numbers, decode and prefill attention, frozen-order reductions.",
68 "status": "PARTIAL",
69 "note": "CHIP_TESTED: general GEMM (gemm_ex) 902 checks PASS (receipt CUDApp evidence/GEMM-GENERAL-00c9cf9/chip.log, window 20261031T115238Z), FFT and RNG 268 checks PASS (receipt CUDApp evidence/MATHLIBS-RNG-FFT-2026-10-27/chip-stdout.txt). The 208-shape GEMM sweep on the chip: NOT_RUN. No sort yet",
70 "links": [["reductions receipt", "cp/:evidence/E1-CLOSURE"], ["GEMM chip receipt", "cp/:evidence/GEMM-GENERAL-00c9cf9"], ["FFT and RNG chip receipt", "cp/:evidence/MATHLIBS-RNG-FFT-2026-10-27"]],
71 "box": "cp:ROADMAP.md#1-nvidia-software-on-the-spark-today"
72 },
73 {
74 "step": "Feed the math cores",
75 "cuda": "Scheduling and data movement",
76 "ours": "The motor, the ++ in CUDA++: one schedule built before anything runs, movement engines that check every weight part, and the stroke, many conversations on one read of the weights.",
77 "status": "PASS",
78 "note": "CHIP_TESTED 2026-10-21, retired model: live on port 18091 with the 35B (retired 2026-11-06); batching measured a factor of 1.80 to 1.98 over the same conversations taken in turn (https://interplane.io/drakestapleton/aien-sovereign-core-mv/tree/9c62690a252ab1c0b75eb8933c550316b5c50d52/evidence/q36-batch-20261021); on branches, not on omega main yet",
79 "links": [["design", "om@:89aad7c99b4fced80f92b656d2a3f350699456f0/docs/OMEGA.md#6-cuda-the-motor"]],
80 "box": "sc@/:9c62690a252ab1c0b75eb8933c550316b5c50d52/evidence/q36-batch-20261021"
81 },
82 {
83 "step": "Kernel driver",
84 "cuda": "Kernel driver research",
85 "ours": "Aien's own GB10 driver. Its simulator gates pass; it has not run on the chip yet.",
86 "status": "IN PROGRESS",
87 "note": "ledger L332",
88 "ledger": "L332",
89 "links": [["simulator gates receipt", "ax@:ce74e10c13ff3bd0fa22855efd93c65a0633f4ac/evidence/own-gpu-driver/rung1/gates-20261021T2300Z.txt"], ["L332 on /now/", "/now/#L332"]],
90 "box": "ax@:89360c060102e4242187cda6156d696452e38181/docs/GPU_DRIVER.md"
91 },
92 {
93 "step": "Inside the GPU",
94 "cuda": "Firmware boundary",
95 "ours": "The signed GSP firmware runs as shipped. The chip checks its signature and boots nothing else. CUDA++ never ships it.",
96 "status": "AS SHIPPED",
97 "note": "Signature checked by the chip",
98 "links": [],
99 "box": "cp:ROADMAP.md#1-nvidia-software-on-the-spark-today"
100 }
101 ],
102 "how_lead": "I build this with AI coding agents, on one DGX Spark, in four weeks. The work covers a driver client, machine-code encoding, command lists and chip checks.",
103 "steps": [
104 {
105 "title": "1. The driver client, from the open kernel module's headers",
106 "text": "The open kernel module defines its ioctls in public headers. I copied 67 of those headers unchanged (MIT) and wrote my own client against them: client, device, address space, memory, command ring, compute object, doorbell, completion.",
107 "links": [["nvrm client", "cp/:nvrm"], ["the 67 headers", "cp/:third_party/nvidia-open-580.173.02"], ["driver requalification receipt", "cp:evidence/m16-blackwell-native-path-requalification-receipt.json"]],
108 "box": "cp@:62ea5a214d46f36e88cb7b892cecebf1f3e8a172/docs/HOW_WE_DID_IT.md#step-1-talk-to-the-kernel-module-without-libcuda"
109 },
110 {
111 "title": "2. Learning the instruction encoding",
112 "text": "I compiled small probe kernels of my own and read their machine code back as an offline oracle. I changed one detail at a time to learn the instruction fields, cross-checked with open-source compiler references, and checked the output on the chip. Those references and their licences are recorded in THIRD_PARTY.md. The tensor-core arithmetic was measured on the chip over 2,048 cases until one model matched every output bit.",
113 "links": [["encoder", "cp:src/omega_blackwell_encoder.c"], ["tensor-core probe", "cp:tests/gpu_tc_probe_test.c"], ["third-party notices", "cp:THIRD_PARTY.md"]],
114 "box": "cp@:62ea5a214d46f36e88cb7b892cecebf1f3e8a172/docs/HOW_WE_DID_IT.md#step-2-learn-the-machine-code-the-reverse-engineering"
115 },
116 {
117 "title": "3. Building command lists",
118 "text": "A launch on Blackwell is a short list of commands in the channel ring. I used the command order from the open-source driver reference credited in THIRD_PARTY.md and the method offsets from the open headers, built my own command lists, and measured them: about 24 to 31 microseconds per extra dependent launch.",
119 "links": [["command lists", "cp:src/omega_gpu_cmdlist.c"], ["launch cost receipt", "cp/:evidence/OWN30B-LAUNCH-COST-20261014T0120Z"]],
120 "box": "cp@:62ea5a214d46f36e88cb7b892cecebf1f3e8a172/docs/HOW_WE_DID_IT.md#step-3-launch-work-like-the-driver-does"
121 },
122 {
123 "title": "4. Built up, nothing counts until the chip agrees",
124 "text": "2026-09-26 vector add on the GB10. 2026-10-02 numerics closed on the chip. 2026-10-13 my own probes measured the tensor cores at 115.14 TFLOPS and memory reads at 195.1 GB/s. 2026-10-21 a 35B model served on this code on my own GPU stack. 2026-11-06 that model was retired.",
125 "links": [["numerics receipt", "cp/:evidence/E1-CLOSURE"], ["ceiling receipt", "cp/:evidence/OWN30B-T3-TC-PEAK-BW-5faa0f70-20261013T2236Z"]],
126 "box": "cp@:62ea5a214d46f36e88cb7b892cecebf1f3e8a172/docs/HOW_WE_DID_IT.md#step-4-build-up-checking-everything"
127 }
128 ],
129 "did_not": [
130 "The repository includes the unchanged MIT-licensed open kernel module headers, with their attribution. The audit records the source and licensing boundary.",
131 "The instruction probes are my own small kernels. Offline tools and open-source references used to check them are credited in THIRD_PARTY.md.",
132 "The GPU firmware runs as shipped, with its signature checked by the chip. CUDA++ does not distribute it.",
133 "The exercised hardware scope is the GB10 in my DGX Spark. Other hardware needs its own execution receipts."
134 ],
135 "did_not_box": "cp@:62ea5a214d46f36e88cb7b892cecebf1f3e8a172/docs/HOW_WE_DID_IT.md#what-we-did-not-do",
136 "pain_lead": "I am documenting the CUDA++ developer workflow. A row is marked complete only with its receipt and the command that shows it.",
137 "pains": [
138 {
139 "title": "Developer workflow and reproduction commands",
140 "text": "Being written in docs/PAIN_POINTS.md and a README section of CUDA++: each supported workflow, its current limits and the command that demonstrates it.",
141 "status": "IN PROGRESS",
142 "ledger": "L400",
143 "links": [["L400 on /now/", "/now/#L400"]],
144 "box": "s:crates/site-builder/data/cudaplusplus.json"
145 }
146 ],
147 "swap_lead": "Installation, activation and rollback of the CUDA++ user-space path and experimental GB10 driver, with one command each way.",
148 "swaps": [
149 {
150 "title": "User-space activation: cudapp swap",
151 "text": "A planned user-space compatibility entry point on the CUDA++ runtime (L401). One command activates it and one rolls it back. The swap tool is in the CUDApp repository at swap/cudapp. Not built yet: NOT_RUN.",
152 "status": "IN PROGRESS",
153 "ledger": "L401",
154 "links": [["L401 on /now/", "/now/#L401"]],
155 "box": "s:crates/site-builder/data/cudaplusplus.json"
156 },
157 {
158 "title": "Kernel driver: cudapp swap kernel",
159 "text": "Packaging, activation and rollback for Aien's own GB10 driver. L401 builds the packaging; L332 builds the driver, whose simulator gates pass and which has not run on the chip yet.",
160 "status": "IN PROGRESS",
161 "ledger": "L401",
162 "links": [["L401 on /now/", "/now/#L401"], ["L332 on /now/", "/now/#L332"], ["driver simulator gates receipt", "ax@:ce74e10c13ff3bd0fa22855efd93c65a0633f4ac/evidence/own-gpu-driver/rung1/gates-20261021T2300Z.txt"]],
163 "box": "ax@:89360c060102e4242187cda6156d696452e38181/docs/GPU_DRIVER.md"
164 }
165 ]
166}