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/aienux/blob/main/evidence/own-gpu-driver/rung1/gates.sh # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. 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 `aienux / evidence / own-gpu-driver / rung1 / gates.sh` 24 lines ยท 1998 bytes Raw Blame History 1 #!/usr/bin/env bash 2 # L332 rung 1 host gates: devc tests, generated-code drift, simulator twin, differential trace, freestanding, contract mutants, GSP start-up sim + mutants. 3 set -u 4 A=$HOME/workspace/aienos-own-gpu-driver D=$HOME/workspace/aienos-devc-gpu O=/tmp/l332-k 5 cd "$D" && cargo test -q -p aienos-devc 2>&1 | tail -3 && cargo build -q --release -p aienos-devc || { echo "GATE devc build FAIL"; exit 1; } 6 DEVC=$D/target/release/aienos-devc 7 t=$(mktemp -d); "$DEVC" gen "$A/native/kernel/gpu/contract/gb10_chan.devc" "$t" >/dev/null || { echo "GATE gen FAIL"; exit 1; } 8 for f in "$t"/*; do cmp -s "$f" "$A/native/kernel/gpu/contract/gen/$(basename "$f")" && echo "drift: $(basename "$f") identical" || echo "GATE drift FAIL: $(basename "$f")"; done 9 cd "$A" 10 make -s -C native/kernel OUT=$O test-gpu-contract 2>&1 | tail -4 11 make -s -C native/kernel OUT=$O gpu-contract-trace 2>&1 | tail -2 12 make -s -C native/kernel OUT=$O gpu-contract-freestanding 2>&1 | tail -2 13 make -s -C native/kernel OUT=$O test-gpu-sim 2>&1 | tail -2 14 bash evidence/own-gpu-driver/rung1/contract_mutants.sh "$DEVC" "$A/native/kernel" /tmp/l332-km 2>&1 | tail -14 15 make -s -C native/kernel OUT=$O test-gsp-mmio 2>&1 | tail -3 16 make -s -C native/kernel OUT=$O gsp-mmio-freestanding 2>&1 | tail -2 17 bash evidence/own-gpu-driver/rung1/gsp_mmio_mutants.sh "$A/native/kernel" 2>&1 | tail -3 18 t2=$(mktemp -d); "$DEVC" gen "$A/native/kernel/gpu/contract/gb10_gsp.devc" "$t2" >/dev/null || { echo "GATE gsp gen FAIL"; exit 1; } 19 for f in "$t2"/*; do cmp -s "$f" "$A/native/kernel/gpu/contract/gen/$(basename "$f")" && echo "drift: $(basename "$f") identical" || echo "GATE drift FAIL: $(basename "$f")"; done 20 make -s -C native/kernel OUT=$O test-gsp-contract 2>&1 | tail -3 21 make -s -C native/kernel OUT=$O gsp-contract-trace 2>&1 | tail -2 22 make -s -C native/kernel OUT=$O gsp-contract-freestanding 2>&1 | tail -2 23 bash evidence/own-gpu-driver/rung1/gsp_contract_mutants.sh "$DEVC" "$A/native/kernel" 2>&1 | tail -3 24 echo "gates exit done"