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 / shader-pilot / host-foundation-20261026 / REPRODUCE.md

126 lines · 6460 bytes Raw Blame History Rendered
1# Host-reference receipt, not native/GPU qualification
2
3`receipt.json` names the immutable executable/test source commit and all source,
4compiler and ELF digests. `streams.tsv` preserves observed export/checker results.
5All new executable product and behavioral test source is `.om`. The development
6referee below is existing external Omega code, not a new implementation or
7fallback in CUDApp. No generated AArch64 ELF was executed on this x86_64 machine.
8
9## External referee and compiler source
10
11In a separate scratch directory, export `tools/omega_ref/omega_ref.c` from
12Omega commit `190130b71d0a59b93f01c515218a5509b149a145`. Check its source hash in
13the receipt. Compile it using the measured GCC version and flags:
14
15```sh
16cc -O2 -g -std=gnu11 -Wall -Wextra -Werror -o omega_ref omega_ref.c -lpthread
17```
18
19The local debug build's binary hash is recorded, but debug paths may make a
20different build directory produce a different referee binary. Source identity
21and recorded build options must not be confused with binary reproducibility.
22
23Export `seed/omc/omc.om` at compiler revision
24`7505b3a3e3cf5ee46933e3a89a021b4289037983`. Its independently recorded seeded
25binary SHA256 is `499236398aabc652e2dae27fe4bdc4c5db3d3726314356e0dbef23e3345803ec`.
26Do not use a sidecar rewritten by a new birth as the expected digest.
27
28```sh
29./omega_ref check omc.om
30./omega_ref run omc.om < omc.om > compiler-self.elf 2> compiler-self.stderr
31sha256sum omc.om compiler-self.elf
32```
33
34Both commands exited 0, stderr was empty, and the output matched the recorded
35seeded binary digest. This is compiler-source execution by a referee, not native
36compiler execution, diverse compilation, or a complete seed-chain qualification.
37
38## Compose and compile
39
40Use the exact source commit in the receipt, preferably a fresh `git archive`.
41Compose the common source and three entry points as in
42`docs/shader-pilot/README.md`. For each `UNIT` (`core`, `export`, `stream-check`):
43
44```sh
45./omega_ref check "$UNIT.om"
46./omega_ref run omc.om < "$UNIT.om" > "$UNIT.elf" 2> "$UNIT.compile.stderr"
47```
48
49All commands exited 0 with empty stderr. An independent immutable Git export
50reproduced the three ELF files byte-for-byte. Do not execute them on x86_64.
51Semantic runs in this receipt instead use:
52
53```sh
54./omega_ref run core.om
55printf '\002\001' | ./omega_ref run export.om > task2.cul1
56printf '\003\001' | ./omega_ref run export.om > task3.cul1
57printf '\002\002' | ./omega_ref run export.om > vector2.bin
58printf '\003\002' | ./omega_ref run export.om > vector3.bin
59cmp vector2.bin vector3.bin
60```
61
62The core prints `SHADER_PILOT_CORE_PASS`, exit 0. Every export is repeated with
63identical bytes and exit 0. Both code streams match the previously recorded
64unchanged vector hash, not an independently decoded or executed GPU result.
65
66Prefix a valid export with its original two-byte request and feed it to
67`./omega_ref run stream-check.om`: expected exit 0. For each selection, remove
68the last payload byte or append one byte: expected 65. Flip bit0 of the first
69or last payload byte: expected 1. Substitute ID3 for the ID2 task: expected65
70for the original short task, and mismatch1 after extending it to task3 length.
71The core also rejects corruption at every byte offset of both candidates.
72
73Exporter refusal matrix, all with empty stdout:
74
75- Empty, one-byte, three-byte, and a valid two-byte prefix plus a long suffix:65.
76- Every one-byte ID except2/3, with selector1:77.
77- Every one-byte selector except1/2, with ID2:77.
78- Closed stdin:74. Redirect valid request stdout to `/dev/full`:74.
79
80These are process status observations, not a claim of a native sandbox or wall
81timeout. Callers must bound wall time independently; a pipe without EOF can wait.
82
83## Red tests and wrong implementations
84
85The initial core test failed with `SHADER_PILOT_CORE_FAIL`, exit1, using explicit
86unimplemented `spload`/`spmatch` stubs. The added profile tests similarly rejected
87an always-true `spprofile` stub. An exporter stub returning77 with no payload was
88rejected on the valid request by status and by stream-check exit65. The final
89complete core test was also compiled and rerun against all-unimplemented stubs;
90it still fails rather than silently becoming a passing test.
91
92`receipt.json` contains exact replacement strings for every measured mutation.
93Apply each once in a disposable source copy, compose it with the unchanged
94entry point, require successful compiler/reference checks, then run it.
95
96Eight core mutations each print `SHADER_PILOT_CORE_FAIL` to stderr and exit1:
97omitted task scan, omitted last code byte, short task/code accepted, stale
98catalog selection, omitted stride/shape guard, and omitted canonical reload.
99Two exporter mutations instead produce the deliberately wrong externally
100observable result: a three-byte request succeeds with payload, or a task request
101emits instruction bytes. The unchanged refusal/output expectations detect both.
102Compiler acceptance alone did not validate any mutant.
103
104The original unchanged #53 evaluator/core and catalog tests also ran under the
105external referee, with their original PASS lines preserved. This does not rerun
106their historical native compiler or establish native regression qualification.
107
108## Timings and other failed checks
109
110Raw timing rows in `receipt.json` are **MEASURED** reference-process startup,
111parsing, compiler interpretation and ELF output. They are not native compile
112latency, a cache-hit speedup, GPU time or a graphics frame result. The timed
113series followed earlier validation compiles; no first-sample cold-cache claim
114is made. The original GNU-time attempt failed because `/usr/bin/time` was absent.
115The measured fallback was explicitly Bash `time`, `TIMEFORMAT='%R,%U,%S'`;
116peak RSS was not collected. No summary statistic or performance comparison is
117claimed. Every timed process emitted the same successful ELF.
118
119Both before and after this change, `make test` exited2 on existing AArch64
120`ds` assembly in `omega_blackwell_engine.c:393,558` under the x86 assembler.
121The figure check exited1 for the known stale `stack.svg`. `crumb verify .`
122exited1 only for existing trace documentation/tests; newly added pilot crumbs
123were current. These failures were not hidden, weakened or repaired outside scope.
124The standalone `.om` tests still need the existing #15 native-build owner to
125integrate them. Native AArch64, GPU, independent instruction/launch validation,
126cache/pipeline/first-use/graphics work remain NOT_RUN.