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 / docs / speculation / REPRODUCE.md

70 lines · 3165 bytes Raw Blame History Rendered
1# Native reconstruction
2
3Use Linux AArch64 and a fresh output directory. These are disclosed development
4commands using existing host tools, not a new first-party runtime or installer.
5No Python is needed. The native programs use only stdin/stdout and process exit.
6
7Reconstruct 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```
13191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9
14```
15
16Set `OMC` to that reconstructed executable and `OUT` to an existing private
17output 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
30For example:
31
32```sh
33cat native/speculation/policy.om tests/speculation/support.om tests/speculation/policy-test.om > "$OUT/policy-test.om"
34quiet-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.
36test -s "$OUT/policy-test.elf"
37readelf -h "$OUT/policy-test.elf"
38chmod 700 "$OUT/policy-test.elf"
39quiet-build timeout 10 "$OUT/policy-test.elf"
40sha256sum "$OUT/policy-test.elf"
41```
42
43Apply the same compile/check/run sequence to each unit. The native fixture
44emitter reads one selector byte: 1 policy, 2 cost collector, 3 paired report.
45It emits explicitly synthetic records. For the policy replay:
46
47```sh
48printf '\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
53Selectors `\002` and `\003` exercise the other modes. Preserve input, output,
54stderr, exit status and executable hashes. An empty or truncated message must
55return 65 with no stdout. Synthetic input must retain evidence class 1 in the
56reply. It cannot satisfy a request requiring device evidence.
57
58The receipt records compiled behavioral controls. Each applies one change to a
59private copy of product source, compiles successfully, and runs the unchanged
60tests, which must return 1. A compile error, crash or timeout does not count as
61a killed behavioral control.
62
63Existing regression command, separately from new native tests:
64
65```sh
66quiet-build make -j2 OUT_DIR=build/regression test
67```
68
69These 33 legacy host targets are regression evidence. They are not new seeded
70tests, full-model correctness or GPU qualification.