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_prefill_attn256_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_prefill_attn256_chip.sh` 36 lines ยท 3086 bytes Raw Blame History 1 #!/bin/bash 2 # run_gpu_prefill_attn256_chip.sh EVIDENCE_DIR [PHYSICS_DIR] 3 # Qwen3.8-27B chip gate for omega_gpu_prefill_attn256_api (omega-mv#545: causal prefill attention, head_dim 256, 24 q / 4 kv 4 # heads, prep launch = the decode kernel's prologue, attend launch on tensor cores). 5 # Caller holds the GB10 lock: flock /tmp/aien-gb10.lock tools/run_gpu_prefill_attn256_chip.sh EVID 6 # 0. host proofs first (never hardware results): --host-only (codegen budgets, refusals, layout, reference sanity) and 7 # --sim (warp-simulator parity on 7 points, rows bit-equal to the decode program, mutants) 8 # and the encoder control-word check (tests/bw_encode_control_test.c: every opcode carries its scheduled waits) 9 # 1. baseline: the already-proven decode attention chip test at its quick points (chip and session path work first) 10 # 2. main: parity, rows bit-identical to m decode calls, next decode step identical, second call identical, out_scale, 11 # device entry, mutants, timing of 2048-token chunks at contexts 2k, 8k, 32k 12 # 3. informational: --timing-only --max-pos 131072 (the chunk that ends at context 128k) 13 # Verdict line last: "GPU_PREFILL_ATTN256_CHIP: PASS|FAIL". Steps 0 and 2 decide; 1 and 3 are recorded. 14 set -u 15 EVID="${1:?evidence dir}"; PHYS="${2:-$HOME/workspace/physics-own30b-k}" 16 HERE="$(cd "$(dirname "$0")/.." && pwd)" 17 mkdir -p "$EVID" 18 cd "$HERE" || exit 2 19 { 20 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) physics_lock=$(cat physics.lock 2>/dev/null | head -1)" 21 uname -a; nvidia-smi --query-gpu=name,driver_version --format=csv,noheader 2>/dev/null; free -g | head -2 22 } > "$EVID/device.txt" 23 make PHYSICS_DIR="$PHYS" -j10 build/gpu_prefill_attn256_test build/gpu_decode_attn256_test build/bw_encode_control_test > "$EVID/build.log" 2>&1 || { echo "GPU_PREFILL_ATTN256_CHIP: FAIL build"; exit 1; } 24 T=./build/gpu_prefill_attn256_test 25 fail=0 26 ./build/bw_encode_control_test 2>&1 | tee "$EVID/encode-control.log"; [ "${PIPESTATUS[0]}" = 0 ] || fail=1 27 $T --host-only 2>&1 | tee "$EVID/host-only.log"; [ "${PIPESTATUS[0]}" = 0 ] || fail=1 28 $T --sim 2>&1 | tee "$EVID/sim.log"; [ "${PIPESTATUS[0]}" = 0 ] || fail=1 29 ./build/gpu_decode_attn256_test --reps 5 --only "context 301" --out "$EVID/receipt-baseline-decode.json" 2>&1 | tee "$EVID/baseline-decode.log" 30 echo "baseline exit ${PIPESTATUS[0]} (recorded)" | tee -a "$EVID/baseline-decode.log" 31 $T --reps 9 --out "$EVID/receipt-main.json" 2>&1 | tee "$EVID/main.log"; [ "${PIPESTATUS[0]}" = 0 ] || fail=1 32 $T --reps 5 --timing-only --max-pos 131072 --out "$EVID/receipt-maxpos131072.json" 2>&1 | tee "$EVID/maxpos131072.log"; echo "max-pos 131072 exit ${PIPESTATUS[0]} (informational)" | tee -a "$EVID/maxpos131072.log" 33 34 echo "end $(date -u +%FT%TZ)" >> "$EVID/device.txt" 35 (cd "$EVID" && sha256sum *.json *.log device.txt > SHA256SUMS) 36 if [ $fail = 0 ]; then echo "GPU_PREFILL_ATTN256_CHIP: PASS"; else echo "GPU_PREFILL_ATTN256_CHIP: FAIL"; exit 1; fi