aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / tools / aien-test / docs / evidence / L154-gpu-hold-20261020 / prepare-all.sh
| 1 | #!/bin/bash |
| 2 | # L154: for each omega gb10 gate: time its prepare step, then dry-run (MAKEFLAGS=n) its run step and |
| 3 | # count compiler/linker commands left for the locked part. Output: /tmp/l154-t/prep-all.tsv |
| 4 | cd /tmp/l154-t/omega || exit 1 |
| 5 | out=/tmp/l154-t/prep-all.tsv; : > "$out" |
| 6 | for g in tests/gates/*.gate; do |
| 7 | p=$(awk '/^prepare:/{f=1} f && /args:/{gsub(/.*\["|"\].*/,""); print; exit}' "$g"); [ -n "$p" ] || continue |
| 8 | r=$(awk '/^run:/{f=1} f && /args:/{gsub(/.*\["|"\].*/,""); print; exit}' "$g") |
| 9 | t0=$(date +%s.%N); tests/gates/run.sh "$p" > "/tmp/l154-t/prep-$r.log" 2>&1; rc=$?; t1=$(date +%s.%N) |
| 10 | MAKEFLAGS=n tests/gates/run.sh "$r" > "/tmp/l154-t/dry-$r.log" 2>&1 |
| 11 | left=$(grep -cE '^(cc|gcc|clang|aarch64-[a-z-]*gcc|ld|ar) |(^| )(-c|-o) ' "/tmp/l154-t/dry-$r.log") |
| 12 | printf '%s\t%s\tprep_rc=%s\tprep_s=%.1f\tcompile_cmds_left=%s\n' "$(basename "$g")" "$r" "$rc" "$(echo "$t1 - $t0" | bc)" "$left" >> "$out" |
| 13 | done |
| 14 | echo DONE >> "$out" |