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/blob/main/docs/speculation/REPRODUCE.md # 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 / docs / speculation / REPRODUCE.md` 70 lines · 3165 bytes Raw Blame History Rendered 1 # Native reconstruction 2 3 Use Linux AArch64 and a fresh output directory. These are disclosed development 4 commands using existing host tools, not a new first-party runtime or installer. 5 No Python is needed. The native programs use only stdin/stdout and process exit. 6 7 Reconstruct the compiler from immutable `aien-dev/omega-bridge` revision 8 ``0fc7d8662cb799e7c206b17c18ea4c3ec2b8fea9``, following its existing 9 `tools/bootstrap.sh --offline`. Its seed input is Omega revision 10 ``29b12760f4c962606411d6bf25032aedef063301``. Require compiler SHA-256: 11 12 ``` 13 `191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9` 14 ``` 15 16 Set `OMC` to that reconstructed executable and `OUT` to an existing private 17 output directory. Export the exact source revision from the receipt with 18 `git archive`, then assemble these ordered translation units in the export: 19 20 | Program | Ordered `.om` inputs | 21 | --- | --- | 22 | policy-test | native/speculation/policy; tests/speculation/support, policy-test | 23 | cost-test | native/speculation/policy, costs; tests/speculation/support, cost-test | 24 | report-test | native/speculation/policy, report; tests/speculation/support, report-test | 25 | oracle-test | native/speculation/policy; tests/speculation/support, oracle-test | 26 | replay | native/speculation/policy, costs, report, replay | 27 | packet-fixture | native/speculation/policy; tests/speculation/support, packet-fixture | 28 | reply-test | native/speculation/policy; tests/speculation/support, reply-test | 29 30 For example: 31 32 ```sh 33 cat native/speculation/policy.om tests/speculation/support.om tests/speculation/policy-test.om > "$OUT/policy-test.om" 34 quiet-build timeout 30 "$OMC" < "$OUT/policy-test.om" > "$OUT/policy-test.elf" 2> "$OUT/policy-test.compile.log" 35 # Require compiler exit 0 before execution. 36 test -s "$OUT/policy-test.elf" 37 readelf -h "$OUT/policy-test.elf" 38 chmod 700 "$OUT/policy-test.elf" 39 quiet-build timeout 10 "$OUT/policy-test.elf" 40 sha256sum "$OUT/policy-test.elf" 41 ``` 42 43 Apply the same compile/check/run sequence to each unit. The native fixture 44 emitter reads one selector byte: 1 policy, 2 cost collector, 3 paired report. 45 It emits explicitly synthetic records. For the policy replay: 46 47 ```sh 48 printf '\001' | "$OUT/packet-fixture.elf" > "$OUT/policy.bin" 49 "$OUT/replay.elf" < "$OUT/policy.bin" > "$OUT/policy.reply" 50 "$OUT/reply-test.elf" < "$OUT/policy.reply" 51 ``` 52 53 Selectors `\002` and `\003` exercise the other modes. Preserve input, output, 54 stderr, exit status and executable hashes. An empty or truncated message must 55 return 65 with no stdout. Synthetic input must retain evidence class 1 in the 56 reply. It cannot satisfy a request requiring device evidence. 57 58 The receipt records compiled behavioral controls. Each applies one change to a 59 private copy of product source, compiles successfully, and runs the unchanged 60 tests, which must return 1. A compile error, crash or timeout does not count as 61 a killed behavioral control. 62 63 Existing regression command, separately from new native tests: 64 65 ```sh 66 quiet-build make -j2 OUT_DIR=build/regression test 67 ``` 68 69 These 33 legacy host targets are regression evidence. They are not new seeded 70 tests, full-model correctness or GPU qualification.