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