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 / LEARN53-L777 / COMMANDS.md
| 1 | # Reproducible commands (source11ad6a0) |
| 2 | |
| 3 | Actual qualification host: Spark, Linux AArch64. Development commands below use existing host tools; they are documentation, not a newly shipped build/qualification wrapper. Do not run on main/shared output. No GPU invocation. |
| 4 | |
| 5 | Source-only toolchain export/reconstruction actually run: |
| 6 | |
| 7 | ```sh |
| 8 | git -C /home/drakestapleton/workspace/omega-bridge archive 0fc7d8662cb799e7c206b17c18ea4c3ec2b8fea9 | tar -x -C /home/drakestapleton/handoffs/cuda-learn-L777/toolchain |
| 9 | cd /home/drakestapleton/handoffs/cuda-learn-L777/toolchain |
| 10 | quiet-build timeout 120 tools/bootstrap.sh --offline |
| 11 | sha256sum build/bootstrap/omc |
| 12 | ``` |
| 13 | |
| 14 | Bootstrap exit0 and compiler191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9. No executable compiler fallback. Set `OMC` to the resulting compiler only after that comparison. Caller creates a fresh private `$OUT` directory; this is not a safety-qualified installer. |
| 15 | |
| 16 | Source export actually run: |
| 17 | |
| 18 | ```sh |
| 19 | git -C /home/drakestapleton/workspace/hermes-desk/cudapp-learn-L777 archive 11ad6a0a7783f5d221de79111d6abba4ee1ae52f native/learn53 tests/learn53 docs/learn53 | tar -x -C /home/drakestapleton/handoffs/cuda-learn-L777/replay-11ad6a0 |
| 20 | ``` |
| 21 | |
| 22 | In that fresh source export, construct the following units: |
| 23 | |
| 24 | ```sh |
| 25 | cat native/learn53/task.om tests/learn53/fixtures.om tests/learn53/unit.om > "$OUT/unit.om" |
| 26 | cat native/learn53/task.om native/learn53/wire.om tests/learn53/fixtures.om tests/learn53/stream-fixtures.om tests/learn53/stream-unit.om > "$OUT/stream-unit.om" |
| 27 | cat native/learn53/task.om native/learn53/wire.om native/learn53/stream.om > "$OUT/stream.om" |
| 28 | cat native/learn53/task.om native/learn53/wire.om tests/learn53/fixtures.om tests/learn53/stream-fixtures.om tests/learn53/stream-input.om > "$OUT/stream-input.om" |
| 29 | cat tests/learn53/stream-check.om > "$OUT/stream-check.om" |
| 30 | ``` |
| 31 | |
| 32 | For each named unit, actual command pattern (`name` was expanded individually, not a delivered script): |
| 33 | |
| 34 | ```sh |
| 35 | quiet-build timeout 30 "$OMC" < "$OUT/name.om" > "$OUT/name.elf" 2> "$OUT/name-compile.log" |
| 36 | # Require exit0. An empty or failed compile is NOT an executable or a killed mutant. |
| 37 | test -s "$OUT/name.elf" |
| 38 | readelf -h "$OUT/name.elf" |
| 39 | chmod 700 "$OUT/name.elf" |
| 40 | sha256sum "$OUT/name.elf" |
| 41 | ``` |
| 42 | |
| 43 | All5 compiled and matched the worktree-built binaries byte-for-byte (`cmp`). Execute `timeout 10 "$OUT/unit.elf"` and `timeout 10 "$OUT/stream-unit.elf"`; actual rc0,77 and17 PASS lines respectively. Both test mains return fixed1 on any assertion failure, not a potentially truncated failure index. |
| 44 | |
| 45 | For real CLI data tests, emitter input modes are single bytes0..5. Commands actually run for valid0 and wrong1 (analogous2..5 retained in cli status files): |
| 46 | |
| 47 | ```sh |
| 48 | printf '\000' | "$OUT/stream-input.elf" > "$OUT/frame0.bin" |
| 49 | timeout 10 "$OUT/stream.elf" < "$OUT/frame0.bin" > "$OUT/cli-0.out" |
| 50 | "$OUT/stream-check.elf" < "$OUT/cli-0.out" |
| 51 | printf '\001' | "$OUT/stream-input.elf" > "$OUT/frame1.bin" |
| 52 | timeout 10 "$OUT/stream.elf" < "$OUT/frame1.bin" > "$OUT/cli-1.out" |
| 53 | timeout 10 "$OUT/stream.elf" < /dev/null |
| 54 | ``` |
| 55 | |
| 56 | Statuses0/1/65/65/65/77 for modes0..5; empty stdin65. Success diagnostic exactly12 bytes; failure stdout empty. `stream-check` rc0 on real valid output and rc1 on the old empty-output stub given the same valid frame. |
| 57 | |
| 58 | Each `mutant-*.diff` was applied to a private copy of task.om, concatenated with the **unchanged** final fixture/unit files and compiled through the same compiler/ELF checks. Then `timeout 10 mutant-N.elf`; actual rc1 and nonzero FAIL assertions, not compiler failure or timeout. Original binaries remain unchanged. Compiler logs, ELF headers, patches, binary identities and complete77-line outputs are retained. |
| 59 | |
| 60 | Runtime dependency observation actually run from fresh export: |
| 61 | |
| 62 | ```sh |
| 63 | strace -f -e trace=execve,openat,read,write,ioctl -o out/stream-syscalls.log timeout 10 out/stream.elf < out/public-frame.bin > out/stream.out |
| 64 | out/stream-check.elf < out/stream.out |
| 65 | readelf -l -d out/stream.elf |
| 66 | ``` |
| 67 | |
| 68 | Both execution/check exit0. The timeout parent uses host libraries; after exec of the evaluated native ELF, observed calls are stdin reads and the fixed stdout write. No dynamic section. These trace/log files are new observations, not copied historical receipts from the toolchain export. |
| 69 | |
| 70 | Unchanged legacy regression command, worktree rooted at public main80f3a24: |
| 71 | |
| 72 | ```sh |
| 73 | quiet-build timeout 600 make -j2 OUT_DIR=build/baseline test |
| 74 | ``` |
| 75 | |
| 76 | Actual exit0 and33 host targets. No legacy source, Makefile, gate or dependency was modified. This is regression evidence only; native migration, seeded host automation and integrated consuming-graph gates remain open. |