interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

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.
3set -u
4A=$HOME/workspace/aienos-own-gpu-driver D=$HOME/workspace/aienos-devc-gpu O=/tmp/l332-k
5cd "$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; }
6DEVC=$D/target/release/aienos-devc
7t=$(mktemp -d); "$DEVC" gen "$A/native/kernel/gpu/contract/gb10_chan.devc" "$t" >/dev/null || { echo "GATE gen FAIL"; exit 1; }
8for 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
9cd "$A"
10make -s -C native/kernel OUT=$O test-gpu-contract 2>&1 | tail -4
11make -s -C native/kernel OUT=$O gpu-contract-trace 2>&1 | tail -2
12make -s -C native/kernel OUT=$O gpu-contract-freestanding 2>&1 | tail -2
13make -s -C native/kernel OUT=$O test-gpu-sim 2>&1 | tail -2
14bash evidence/own-gpu-driver/rung1/contract_mutants.sh "$DEVC" "$A/native/kernel" /tmp/l332-km 2>&1 | tail -14
15make -s -C native/kernel OUT=$O test-gsp-mmio 2>&1 | tail -3
16make -s -C native/kernel OUT=$O gsp-mmio-freestanding 2>&1 | tail -2
17bash evidence/own-gpu-driver/rung1/gsp_mmio_mutants.sh "$A/native/kernel" 2>&1 | tail -3
18t2=$(mktemp -d); "$DEVC" gen "$A/native/kernel/gpu/contract/gb10_gsp.devc" "$t2" >/dev/null || { echo "GATE gsp gen FAIL"; exit 1; }
19for 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
20make -s -C native/kernel OUT=$O test-gsp-contract 2>&1 | tail -3
21make -s -C native/kernel OUT=$O gsp-contract-trace 2>&1 | tail -2
22make -s -C native/kernel OUT=$O gsp-contract-freestanding 2>&1 | tail -2
23bash evidence/own-gpu-driver/rung1/gsp_contract_mutants.sh "$DEVC" "$A/native/kernel" 2>&1 | tail -3
24echo "gates exit done"