interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / evidence / device-trace / emitter-safety-host-20261026 / REPRODUCE.md

111 lines · 5220 bytes Raw Blame History Rendered
1# Local host-only repair evidence
2
3Read `receipt.json` for exact source, compiler, oracle, output hashes, statuses,
4negative controls, and unverified boundaries. Its source commit is a local
5isolated commit; file hashes identify the tested bytes independently of later
6publication metadata. No native AArch64 or GPU output was executed.
7
8The native commands for an appropriate AArch64 host are in
9`tests/device-trace/README-safety.md`. The existing disassembler runner is not
10green: its inherited golden describes the old pointer bug. No gate was bypassed
11and no NVIDIA-tool listing was committed to conceal that mismatch.
12
13## External oracle setup
14
15Obtain the existing `tools/omega_ref/omega_ref.c` from Omega commit
16`190130b71d0a59b93f01c515218a5509b149a145` in a separate test workspace. Check
17its SHA256 against the receipt before compiling it:
18
19```sh
20cc -O2 -g -std=gnu11 -Wall -Wextra -Werror -o omega_ref omega_ref.c -lpthread
21```
22
23Obtain the compiler source `seed/omc/omc.om` at the separate compiler revision
24in the receipt. Confirm both source and independently recorded seeded binary
25digests. The measured self-output command was:
26
27```sh
28./omega_ref check omc.om
29./omega_ref run omc.om < omc.om > compiler-self.elf 2> compiler-self.stderr
30sha256sum compiler-self.elf
31```
32
33It exited zero with empty stderr and matched the independently recorded
34`499236398aabc652e2dae27fe4bdc4c5db3d3726314356e0dbef23e3345803ec` digest.
35This is compiler-source execution by an external referee, not native compiler
36execution or seed-chain qualification.
37
38## Original versus projected units
39
40Compose the four original units as documented in the test README. The frozen
41oracle predates `const` and refuses the unmodified emitter with error 16.
42For semantic tests only, a separate copy was projected mechanically:
43
441. Collect `const NAME ulong VALUE` lines. The emitter contains only decimal
45 unsigned-long literal constants and has no shadowed constant names.
462. Remove those declaration lines.
473. In non-`note` lines, replace whole `NAME` tokens with `ulong VALUE`. Preserve
48 all other text. Do not change the original units.
49
50For each original `unit.om` and its `unit.projected.om`:
51
52```sh
53./omega_ref check unit.projected.om
54./omega_ref run unit.projected.om > unit.stdout 2> unit.stderr
55./omega_ref run omc.om < unit.om > unit.elf 2> unit.compile.stderr
56./omega_ref run omc.om < unit.projected.om > projected.elf 2> projected.compile.stderr
57cmp unit.elf projected.elf
58```
59
60All final checks/runs/compiles exited zero with empty stderr, and every `cmp`
61matched. The four original and projected ELF hashes are recorded separately.
62They are AArch64 outputs and were **not executed**. Semantic execution claims
63refer only to the explicitly projected unit under the external oracle.
64
65## Red tests and mutation controls
66
67Before production changes, the original emitter test passed while the new
68address, guard, and whole-kernel tests failed with statuses 3, 1, and 1. After
69test refinements, repeat the same composition against the exact original PR84
70source from `git show 60d6c57fc6821accce0027d65dd239355beeb543:native/blackwell/trace-emit.om`.
71The compiler accepted those final red units, and they still failed 3, 1, and 1.
72
73Apply each mutation in a disposable source copy, never in the working tree.
74The receipt lists the expected failing test and its measured status:
75
76- Restore multiply-base-low plus high-copy address instructions.
77- Restore the original `on == 1 && checks == 0` gate.
78- Accept any nonzero `checks` instead of requiring exactly 1.
79- Skip the body refusal entirely.
80- Apply the body refusal only to `on == 1`.
81- Compare predicate bits as part of EXIT instead of masking them.
82- Set bit 16 or the sign bit of a store's signed 24-bit byte offset.
83- Set the branch high displacement word, or its upper encoded bits.
84
85All ten mutated units were accepted by the compiler and reference checker,
86but failed their semantic tests. Independent review repeated the four final
87unit runs and all ten mutation runs. Two initial test gaps and compiler
88register-pressure corrections are preserved in the receipt, not hidden.
89
90## External decode and full-suite boundary
91
92A dump unit calls `gtewrap 1 2` with an empty body and writes `gbout` to stdout.
93Its original and projected forms compiled to identical ELF bytes. The projected
94oracle run produced the GPU words, decoded offline with:
95
96```sh
97nvdisasm --binary SM121 words.bin > decoded.sass
98diff -u tests/device-trace/expected.sass decoded.sass
99```
100
101The disassembler exited zero. The diff exited one: only the two address
102instructions per marker changed, as intended. The downloadable official tool
103archive and all local output hashes are in the receipt. Those binaries and
104listings stay outside the repository.
105
106`make test` was attempted on both the base and repaired source. Both failed
107building `build/omega_blackwell_engine.o`, because the x86 assembler rejects
108the existing AArch64 `ds` instructions. No host suite success is claimed.
109The instruction scheduler, GB10 memory effects, launch geometry, visibility,
110overhead, and runtime overflow still require their separate authorized native
111and hardware work. No hardware authorization was requested or inferred.