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/omega-mv/blob/main/tools/run_gpu_q38_graph_chip.sh # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / tools / run_gpu_q38_graph_chip.sh` 34 lines ยท 2634 bytes Raw Blame History 1 #!/bin/bash 2 # run_gpu_q38_graph_chip.sh EVIDENCE_DIR [PHYSICS_DIR] 3 # sc #642 chip gate for omega_gpu_q38_graph (one Qwen3.8-27B decode token as one command list). 4 # Caller holds the GB10 lock: flock /tmp/aien-gb10.lock tools/run_gpu_q38_graph_chip.sh EVID 5 # 0. host proofs first (never hardware results): glue-kernel codegen + sim (gpu_cmdlist_test), the graph's --host-only 6 # 1. main: A (the APIs one call at a time, host glue) vs C (one list) vs B (one launch per submission), a 2-layer 7 # synthetic model (GDN then attention) on random weights, vocab 248320, tokens at positions 0..2; token identical, 8 # logits and x within tolerance, B == C bit for bit, the four graph mutants caught; REPS timed tokens. 9 # 2. LAYERS=4 MASK=0x8 (three GDN layers then attention, the checkpoint's period) as a second shape. 10 # Verdict line last: "GPU_Q38_GRAPH_CHIP: PASS|FAIL". 11 set -u 12 EVID="${1:?evidence dir}"; PHYS="${2:-$HOME/workspace/physics-own30b-k}" 13 HERE="$(cd "$(dirname "$0")/.." && pwd)" 14 mkdir -p "$EVID" 15 cd "$HERE" || exit 2 16 { 17 echo "start $(date -u +%FT%TZ) omega=$(git rev-parse HEAD) branch=$(git rev-parse --abbrev-ref HEAD) dirty=$(git status --porcelain | wc -l) physics=$PHYS physics_commit=$(git -C "$PHYS" rev-parse HEAD)" 18 uname -a; nvidia-smi --query-gpu=name,driver_version --format=csv,noheader 2>/dev/null; free -g | head -2 19 } > "$EVID/device.txt" 20 git diff HEAD > "$EVID/worktree.diff" 21 make PHYSICS_DIR="$PHYS" -j10 build/gpu_q38_graph_test build/gpu_cmdlist_test build/bw_encode_control_test > "$EVID/build.log" 2>&1 || { echo "GPU_Q38_GRAPH_CHIP: FAIL build"; exit 1; } 22 T=./build/gpu_q38_graph_test 23 sha256sum "$T" build/gpu_cmdlist_test build/libomega_gpu.a > "$EVID/binaries.sha256" 24 fail=0 25 ./build/bw_encode_control_test 2>&1 | tee "$EVID/encode-control.log"; [ "${PIPESTATUS[0]}" = 0 ] || fail=1 26 ./build/gpu_cmdlist_test --host-only > "$EVID/glue-host.log" 2>&1 || fail=1; tail -1 "$EVID/glue-host.log" 27 ./build/gpu_cmdlist_test --sim > "$EVID/glue-sim.log" 2>&1 || fail=1; tail -1 "$EVID/glue-sim.log" 28 $T --host-only 2>&1 | tee "$EVID/host-only.log"; [ "${PIPESTATUS[0]}" = 0 ] || fail=1 29 [ $fail = 0 ] || { echo "GPU_Q38_GRAPH_CHIP: FAIL host proofs"; exit 1; } 30 $T --reps "${REPS:-10}" 2>&1 | tee "$EVID/main.log"; [ "${PIPESTATUS[0]}" = 0 ] || fail=1 31 $T --layers 4 --mask 0x8 --reps "${REPS:-10}" 2>&1 | tee "$EVID/layers4.log"; [ "${PIPESTATUS[0]}" = 0 ] || fail=1 32 echo "end $(date -u +%FT%TZ) fail=$fail" >> "$EVID/device.txt" 33 (cd "$EVID" && sha256sum *.log *.txt *.diff *.sha256 > SHA256SUMS) 34 if [ $fail = 0 ]; then echo "GPU_Q38_GRAPH_CHIP: PASS"; else echo "GPU_Q38_GRAPH_CHIP: FAIL"; exit 1; fi