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 / seed / ng / bench / evidence / 20261107T1155Z-payoff / round.sh.txt
| 1 | #!/bin/bash |
| 2 | # scratch round driver (not committed): round.sh CORE LOCK LO HI OUTDIR TAG |
| 3 | core=$1; lock=$2; lo=$3; hi=$4; E=$5; tag=$6 |
| 4 | board() { flock ~/handoffs/BOARD.md.lock -c "echo \"$(date -u +%FT%TZ) ng-bench -> omp-queen-ng: $1\" >> ~/handoffs/BOARD.md"; } |
| 5 | date -u +%FT%TZ > $E/lock-request.txt |
| 6 | flock -x -w 3600 $lock bash -c " |
| 7 | board() { flock ~/handoffs/BOARD.md.lock -c \"echo \\\"\$(date -u +%FT%TZ) ng-bench -> omp-queen-ng: \$1\\\" >> ~/handoffs/BOARD.md\"; } |
| 8 | board 'LOCK HELD $(basename $lock) core $core: payoff round $tag (ngbench v2 31+3 blocks, 11 arms x 9 cases), about 10 min.' |
| 9 | date -u +%FT%TZ > $E/start.txt; cat /proc/loadavg >> $E/start.txt |
| 10 | ps -eo pid,psr,pcpu,stat,comm | awk 'NR==1 || (\$2>=$lo && \$2<=$hi)' > $E/cluster-start.txt |
| 11 | cat /sys/devices/system/cpu/cpu$core/regs/identification/midr_el1 > $E/midr.txt 2>&1 |
| 12 | cd /tmp/ngb/payrun && taskset -c $core nice -n 10 /tmp/ngb/ngbench.run run 31 3 /tmp/ngb/payrun omc ngA ngL ngB ngV ngM ngC ngR ngI ngF gccO2 -- bcopy arith branch isort sort leafcall matmul sieve linear > $E/rows.txt 2> $E/stderr.txt |
| 13 | echo \$? > $E/rc.txt |
| 14 | date -u +%FT%TZ > $E/end.txt; cat /proc/loadavg >> $E/end.txt |
| 15 | ps -eo pid,psr,pcpu,stat,comm | awk 'NR==1 || (\$2>=$lo && \$2<=$hi)' > $E/cluster-end.txt |
| 16 | board \"RELEASED $(basename $lock) core $core: payoff round $tag done, rc=\$(cat $E/rc.txt), \$(grep '^S ' $E/rows.txt).\" |
| 17 | " |