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
omega-mv / evidence / q38-stress-gb10-20261120T143359Z / paged / run.sh
| 1 | #!/bin/bash |
| 2 | set -euo pipefail |
| 3 | out=$1 |
| 4 | cd "$out/../source" |
| 5 | test "$(git rev-parse HEAD)" = 371a882a5dc8509809abd9d4bbdf1316963f9d51 |
| 6 | test -z "$(git status --porcelain)" |
| 7 | printf '%s CLAIM Codex Q38 and attention stress, 371a882a5, exclusive GPU and quiet timing window, 15 minute lease. Contact via board.\n' "$(date -u +%FT%TZ)" >> ~/handoffs/BOARD.md |
| 8 | spark-window open codex-paged-stress-371a882a5 --gb10 exclusive --quiet exclusive --lease 15 --wait > "$out/window.txt" |
| 9 | wid=$(spark-window id) |
| 10 | monitor= |
| 11 | cleanup() { |
| 12 | if [ -n "$monitor" ]; then kill "$monitor" 2>/dev/null || true; wait "$monitor" 2>/dev/null || true; fi |
| 13 | spark-window close "$wid" > "$out/close.log" |
| 14 | cp ~/yardsticks/windows/"$wid"/{open,close}.json "$out/" |
| 15 | printf '%s RELEASE Codex Q38 and attention stress %s.\n' "$(date -u +%FT%TZ)" "$wid" >> ~/handoffs/BOARD.md |
| 16 | } |
| 17 | trap cleanup EXIT |
| 18 | nvidia-smi --query-gpu=timestamp,utilization.gpu,clocks.sm,temperature.gpu,power.draw --format=csv,nounits -l 1 > "$out/telemetry.csv" & |
| 19 | monitor=$! |
| 20 | run() { |
| 21 | name=$1; shift |
| 22 | printf '%s %s start\n' "$(date -u +%FT%TZ)" "$name" >> "$out/results.txt" |
| 23 | set +e |
| 24 | spark-window run /usr/bin/time -v -o "$out/$name.time" "$@" > "$out/$name.log" 2>&1 |
| 25 | code=$? |
| 26 | set -e |
| 27 | printf '%s %s exit %d\n' "$(date -u +%FT%TZ)" "$name" "$code" >> "$out/results.txt" |
| 28 | return "$code" |
| 29 | } |
| 30 | run timing ./build/gpu_attention_test --timing --out "$out/timing.json" |
| 31 | run sweep ./build/gpu_attention_test --sweep --out "$out/sweep.json" |
| 32 | for h in 64 128; do run "split-$h" ./build/gpu_attention_test --split-timing --hd "$h" --out "$out/split-$h.json"; done |