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 / prepare-run.sh
| 1 | #!/bin/bash |
| 2 | set -euo pipefail |
| 3 | out=$1 |
| 4 | src=/tmp/osc-literal.1JF35k/landing-plain |
| 5 | old=$HOME/handoffs/omega-stress-repeat-20261120-WI3xzN |
| 6 | mkdir -p "$out/paged" |
| 7 | ln -s "$src" "$out/source" |
| 8 | cd "$src" |
| 9 | rev=$(git rev-parse HEAD) |
| 10 | test "$rev" = 371a882a5dc8509809abd9d4bbdf1316963f9d51 |
| 11 | test -z "$(git status --porcelain)" |
| 12 | test "$(git -C /tmp/physics-pin rev-parse HEAD)" = "$(cat physics.lock)" |
| 13 | test -z "$(git -C /tmp/physics-pin status --porcelain -uno)" |
| 14 | cp "$old/q38_stress_bench.c" "$out/" |
| 15 | nice -n 10 make -j4 PHYSICS_DIR=/tmp/physics-pin build/gpu_q38_graph_test build/gpu_q38_stroke_exact_test build/gpu_attention_test > "$out/build.log" 2>&1 |
| 16 | cc -O2 -ffp-contract=off -Isrc "$out/q38_stress_bench.c" build/libomega_gpu.a -lpthread -lm -o "$out/q38_stress_bench" |
| 17 | sha256sum build/gpu_attention_test build/gpu_q38_graph_test build/gpu_q38_stroke_exact_test build/libomega_gpu.a seed/out/omc > "$out/build.sha256" |
| 18 | (cd "$out"; sha256sum q38_stress_bench q38_stress_bench.c >> build.sha256) |
| 19 | { hostname; uname -srmo; echo "$rev"; cat physics.lock; cc --version | head -1; nvidia-smi --query-gpu=name,driver_version --format=csv; echo "$old"; } > "$out/provenance.txt" |
| 20 | for f in run.sh paged/run.sh; do sed -e "s/c9fe0f228095e70b2ff5e48f9e0a7b3fdcccf721/$rev/g" -e "s/c9fe0f228/371a882a5/g" "$old/$f" > "$out/$f"; done |
| 21 | bash "$out/run.sh" "$out" |
| 22 | bash "$out/paged/run.sh" "$out/paged" |