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/benchmarks-mv/blob/main/prime-drag-race/evidence/2026-10-05-campaign/postmerge-2041f24/postmerge-chip.sh # benchmarks-mv Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `benchmarks-mv / prime-drag-race / evidence / 2026-10-05-campaign / postmerge-2041f24 / postmerge-chip.sh` 40 lines ยท 3165 bytes Raw Blame History 1 #!/bin/bash 2 # Post-merge check of the combined omega main (after #307): correctness, kernel gate, one short timed 3 # run. Screens for an obvious regression only; the parity claim stays on receipt `1a3eafe9`. 4 set -u 5 SHA=$1; E=$2 6 R=$HOME/workspace/primes-race/benchmarks/prime-drag-race/target/release/prime_race 7 N=$E/bins/gb10_native; M=$E/bins/gb10_native_mutant 8 TAGS="algorithm=other,faithful=no,bits=1" 9 BIG="999999..`1000001`,`1048575`..`1048577`,`2097151`..`2097153`,`4194303`..`4194305`,`8388607`..`8388609`,`10000000`,`16777215`..`16777217`,`127667399`..`127667402`" 10 export PR_GB10_SPIN_US=2000 11 log(){ echo "$(date -u +%H:%M:%SZ) $*"; } 12 log "chip start $SHA; load $(cat /proc/loadavg)" 13 FAILS="" 14 v(){ local n=$1 b=$2 i=$3 nm=$4; shift 4 15 PR_GB10_CTA_BUDGET=$b $R verify --impl $i --name $nm --declare $TAGS "$@" > $E/verify/$n.txt 2>&1; local rc=$? 16 tail -1 $E/verify/$n.txt; log "$n rc=$rc"; return $rc; } 17 v default-b128 128 $N gb10-native || FAILS="$FAILS default-b128" 18 v big-b1024 1024 $N gb10-native --limits "$BIG" || FAILS="$FAILS big-b1024" 19 v mutant-b1024 1024 $M gb10-native-mutant --limits "100000,`1000000`,`10000000`" 20 grep -q 'label_mismatch\|EXEC_FAILED\|usage' $E/verify/mutant-b1024.txt && FAILS="$FAILS mutant-wrongreason" 21 grep -q 'FAIL limit' $E/verify/mutant-b1024.txt || FAILS="$FAILS mutant-notcaught" 22 ( cd $E/omega && PHYSICS_DIR=$HOME/workspace/primes-race/physics sh tools/run_gpu_elementwise_chip.sh $E/eltwise ) > $E/eltwise/gate.txt 2>&1; rc=$? 23 log "elementwise chip gate rc=$rc: $(tail -2 $E/eltwise/gate.txt | tr '\n' ' ' | cut -c1-160)" 24 [ $rc -eq 0 ] || FAILS="$FAILS eltwise-gate" 25 log "verify summary: fails=[${FAILS}]" 26 [ -z "$FAILS" ] || { log "STOP: no timed run"; echo "VERDICT FAIL$FAILS" > $E/VERDICT; exit 1; } 27 log "short timed run (budget 128, spin 2000, table auto, audit 5, warmup 1, 5 x >=5 s)" 28 PR_GB10_CTA_BUDGET=128 $R run --impl gb10-native=$N --declare gb10-native=$TAGS \ 29 --source gb10-native=aien-dev/omega@$SHA \ 30 --build "gb10-native=make PHYSICS_DIR= prime-race-gb10 (cc -O3 -mcpu=native; libomega_gpu omega CFLAGS -O2); env PR_GB10_CTA_BUDGET=128 PR_GB10_SPIN_US=2000" \ 31 --trials 5 --warmup 1 --limit `1000000` --min-seconds 5 --audit-passes 5 \ 32 --evidence-dir $E/runs --runner-commit aien-dev/benchmarks@`d66cd2a0d7556de2d4afff1b6c1ec368cec54693` \ 33 --quiet-flag-file $HOME/workspace/.spark-quiet > $E/runs/short.txt 2>&1; rc=$? 34 grep -E 'median|receipt:' $E/runs/short.txt | cut -c1-140; log "short run rc=$rc" 35 MED=$(grep -o 'median *[0-9.]*' $E/runs/short.txt | head -1 | awk '{print $2}') 36 REC=$(grep -o 'receipt: .*' $E/runs/short.txt | head -1 | sed 's/receipt: //') 37 V=FAIL; [ $rc -eq 0 ] && [ -n "$MED" ] && V=$(awk -v m=$MED 'BEGIN{print (m >= 0.95*19701.34) ? "PASS" : "REGRESSION"}') 38 printf '{"merge_revision": "aien-dev/omega@%s", "gb10_native_sha256": "%s", "gb10_native_mutant_sha256": "%s", "median_passes_per_s": "%s", "reference_receipt": "`1a3eafe9` (19701.34)", "threshold": "0.95x", "receipt": "%s", "verdict": "%s"}\n' \ 39 "$SHA" "$(sha256sum $N | cut -d' ' -f1)" "$(sha256sum $M | cut -d' ' -f1)" "$MED" "$REC" "$V" > $E/summary.json 40 echo "VERDICT $V median $MED" > $E/VERDICT; log "VERDICT $V median $MED"