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/tree/main/evidence/C6-DISASM-OM # 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 branch `main` Branches Tags History `CUDApp / evidence / C6-DISASM-OM` `d7d5d17` C6 (DRA-475): evidence/C6-DISASM-OM: manifest, parity, controls, call sites Drake Stapleton committed 2026-11-07 ``` .. 01-corpus.log 2994 02-check.log 111963 03-bw-hazard-nvdisasm.log 24172 03b-symbols.log 299 04-red.log 1011 05-diff-negctl.log 487 05b-negctl.log 663 06-om-mutants.log 1063 07-decoder-users.log 1411 07-test-bw-hazard.log 23636 07-test-bw-ldg-mmio.log 315 07-test-gpu-attention.log 54699 07-test-gpu-elementwise.log 708 07-test-gpu-fp8.log 21191 07-test-gpu-latmeas.log 678 07-test-gpu-mathlibs.log 5437 07-test-gpu-reconv.log 1624 07-test-om-encoder.log 307 07-test-om-units.log 2729 07-test-zero-nvdisasm.log 582 MANIFEST.tsv 363478 NVDISASM-CALL-SITES.md 4031 PRODUCERS.tsv 1393 README.md 6057 device-trace-emitter-red.log 406 device-trace-emitter.log 360 s01.sh 521 s04.sh 674 s05.sh 1102 sr-sweep.sh 721 step.sh 592 test-drift.log 7305 wolfram-rows.wl 4791 zero-nvdisasm-static.log 619 ``` README.md # C6-DISASM-OM: Omega's own sm_121 disassembler in seeded Omega (CUDA++ C6, DRA-475, kanban t_`81083ab1`) Host evidence, Spark (GB10 host CPU, cores 10-11 under pool-10-11). No GPU was opened. GB10 device run: NOT_RUN by design. nvdisasm 13.0.85 (`/usr/local/cuda/bin/nvdisasm`, sha256 `bc40070d596fa49b81c0905ca1d05e457aaec071280f742997d4a0b511781b25`) is an offline ORACLE only. ## What changed - `om/disasm/sm121_dis.om`: the decoder, seeded Omega (omc `e5b32567`, sha256 `2c824805...`). Same rules as the C decoder: the 61 rows of the C `ROWS` table (opcode, fixed bits, format string packed 8 ASCII bytes per ulong), the same match rule (every bit outside the format's fields and the guard must equal the row), the IMAD-immediate names, the special-register, compare and size names. The row table was generated by Wolfram from the C table (`wolfram-rows.wl`); the transcription was checked by the SHA-256 Wolfram printed of its own output (`f1578d7a5a10c285a276037eae31ad3a029faa1ee3a6556124e31d7892484787`, equal to `head -n 514` of the row block). - `om/units.sh` lowers it with the pinned omega-bridge (`bc11b30b`; toc.om / bridge-seeded pins unchanged) into `src/cudapp_om_sm121_dis.c` + `.ident`; `src/cudapp_native.h` declares `omega_sm121_dis`. - `src/omega_sm121_disasm.c`: the public calls (`omega_sm121_disasm`, `omega_sm121_listing`, `omega_sm121_padding_start`) keep their signatures and call sites. Default build: the Omega decoder; the file only moves bytes and copies text. The hand-written C decoder is compiled only with `CUDAPP_MIGRATION_PENDING_C_DISASM` (`make CUDAPP_DISASM=c`) or in the `diff` build, as the differential oracle, the same pattern as `CUDAPP_MIGRATION_PENDING_C_ENCODER`. - Defect found and fixed in both decoders: S2R of special register 82 printed `SR82`; nvdisasm prints `SR_GLOBALTIMERLO` (the device-trace emitter uses it). 82/83 are now named, and the 96 other special registers nvdisasm names but our table does not are reported as `??` instead of guessed (`sr-sweep.sh`: all 256 values). - `tools/sm121dis/corpus.sh` writes `MANIFEST.tsv` and `PRODUCERS.tsv`; `check.sh` reports identical/differing kernels and the instruction class of every differing word; new `negctl.sh` (flipped-bit control) and `om_mutants.sh`. - Readers moved off nvdisasm: `tests/device-trace/run-emitter-checks.sh`, `tools/artifact_smoke.sh` (`NVDISASM-CALL-SITES.md` lists every call site in CUDApp and omega-mv with its class). - ZERO-NVDISASM static check, red at base `f1b50cbf` (15 lines), passes with `tools/sm121dis/oracle-allow.tsv`. ## Normalisation rules (minimal) `oracle_pairs.sh` takes nvdisasm `-b SM121 -hex`: per instruction the address, low and high 64-bit words and the text up to and including `;`. Both sides then have every run of white space collapsed to one space. Nothing else: the space before `;` (nvdisasm omits it after the last EXIT) is reproduced by our listing, not normalised away. ## Results (HOST_TESTED, Spark, 2026-11-07; logs in this directory) Check Log Result corpus + manifest (`corpus.sh`, 40 producer runs) `01-corpus.log`, `MANIFEST.tsv`, `PRODUCERS.tsv` 3,191 distinct kernels, 1,237,248 words; MANIFEST.tsv sha256 `0939127a973c165f163694a3fa4b4cb3ae398d9e80b8d8560c427eb073e2c4ce`; 789 kernels from the GPU tests, 2,402 from the hazard sweep parity, Omega decoder vs nvdisasm (`check.sh`) `02-check.log` total 3,191 / identical 3,191 / differing 0; 1,237,248 words; differing instruction classes: none; VERDICT PASS red: C oracle with planted fault (`SM121DIS_MUTANT`) `04-red.log` VERDICT FAIL as required: 3,190 of 3,191 kernels differ (the one left is EXIT-only), classes listed differential, .om vs C decoder on every corpus word `05-diff-negctl.log` agree on all 3,191 kernels; the selftest build (bit 16 flipped on the C side) aborts, exit 134 flipped-bit control (`negctl.sh`) `05b-negctl.log` 3,191 / 3,191 kernels: parity broken in exactly word 0; 3,190 still equal nvdisasm on the flipped word, 1 reported `??` (an EXIT whose bit 16 nvdisasm ignores); VERDICT PASS. (`05-diff-negctl.log`: the first, serial run hit the 19-minute hold, exit 124, not counted) .om mutants via pinned omc + bridge (`make test-sm121dis-om-mutants`) `06-om-mutants.log` 3 / 3 red: 848,916, 243,660 and 25,245 corpus words print differently `make test-bw-hazard-nvdisasm` `03-bw-hazard-nvdisasm.log`, `03b-symbols.log` PASS: 2,342 kernels, 1,031,048 instructions, 0 mismatched; 2,607 checks, 0 failed; binary links `omega_sm121_dis`, no `c_sm121_disasm` `om/units.sh --check` (make test-om-units) `07-test-om-units.log` PASS, byte for byte decoder users: test-gpu-elementwise, -fp8, -reconv, -attention, -mathlibs, -latmeas, test-bw-hazard, test-bw-ldg-mmio, test-om-encoder `07-*.log` all exit 0 `make test-zero-nvdisasm` `07-test-zero-nvdisasm.log`, `zero-nvdisasm-static.log` PASS (static clean with oracle-allow.tsv; 6 commands under strace, decoy never called); red check FAILs as required; static was FAIL at base (15 lines) device-trace emitter (`tests/device-trace/run-emitter-checks.sh`, reads with ours, NVDISASM oracle) `device-trace-emitter.log`, `-red.log` PASS, oracle text equal on 40/40; with the red decoder exit 1 SR sweep 0..255 (`sr-sweep.sh`) (scratch) 160 equal nvdisasm, 96 reported `??`, 0 printed wrong ## NOT_RUN - GB10 device run (by design: no GPU on this card). - the full `make test` (only the targets above); `make test-sm121dis` as one target (its steps ran one by one under separate pool holds with the same commands: s01/s04/s05 and step.sh here). - `tools/extract/drift.sh` against omega-mv (drift is Omega-side change; this branch changes CUDA++ only). - `tools/artifact_smoke.sh` (needs exported artifacts) and test-om-spec-encoder. - omega-mv: the same port there (listed in NVDISASM-CALL-SITES.md). - the corpus at `7919aada` (2,980), so the +211 to 3,191 is not split per generator beyond gpu_mathlibs_test's 36.