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/omega-mv/blob/main/tools/ty_energy_wall_run.sh # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / tools / ty_energy_wall_run.sh` 38 lines ยท 1837 bytes Raw Blame History 1 #!/bin/sh 2 # TY-4/TY-5 wall amendment (docs/turing/TURING_YIELD_ENERGY_PROTOCOL_V0.md, 3 # amendment 2): stage 2 only, S6 then S2, 3 rounds each, 30 s windows, with 4 # the unchanged window tool and workload. Before each window it records the 5 # epoch/boottime offset so tools/ty_energy_wall.om can place the window's 6 # monotonic GO time on the sensor log. Creates no quiet flag (run it under 7 # quiet-measure). usage: tools/ty_energy_wall_run.sh OUTDIR [ROUNDS] 8 set -u 9 OUT=$1; ROUNDS=${2:-3} 10 BIN=${TYE_BIN:-build/ty} 11 WIN=$BIN/ty_energy_window; WL=$BIN/ty_workload 12 [ -x "$WIN" ] && [ -x "$WL" ] || { echo "missing $WIN or $WL (make ty-energy-tools)" >&2; exit 2; } 13 mkdir -p "$OUT/raw" 14 { 15 echo "date_utc $(date -u +%FT%TZ)" 16 echo "git_head $(git rev-parse HEAD 2>/dev/null)" 17 for b in "$WIN" "$WL"; do echo "bin $(sha256sum "$b")"; done 18 echo "kernel $(uname -r)" 19 echo "hwmon_spbm $(grep -l '^aien_spbm$' /sys/class/hwmon/*/name 2>/dev/null | head -1)" 20 echo "seeds S6 0x7459520001 S2 0x7459520002 rounds $ROUNDS" 21 } > "$OUT/manifest.txt" 22 run_cfg() { 23 cfg=$1; seed=$2; sa=$3; sb=$4 24 "$WIN" --plan "$seed" "$ROUNDS" > "$OUT/raw/plan_$cfg.txt" 25 while read -r r p c; do 26 f=$(printf '%s/raw/s2_%s_r%02d_p%d_%s.jsonl' "$OUT" "$cfg" "$r" "$p" "$c") 27 up=$(cut -d' ' -f1 /proc/uptime); ep=$(date +%s%N) 28 echo "$(basename "$f") $ep $up" >> "$OUT/offsets.txt" 29 "$WIN" --out "$f" --run tyw-s2 --config "$cfg" --cond "$c" --round "$r" --pos "$p" \ 30 --secs 30 --workload "$WL" --a "$sa" --b "$sb" --tool-cpu 0 \ 31 || echo "window $f rc=$? (meter absent is expected; kept)" >> "$OUT/run.log" 32 sleep 3 33 done < "$OUT/raw/plan_$cfg.txt" 34 } 35 run_cfg S6 0x7459520001 R1_plain:5,6,7,8,9 R2c_crumb:15,16,17,18,19 36 run_cfg S2 0x7459520002 R1_plain:5 R2c_crumb:15 37 (cd "$OUT/raw" && sha256sum *.jsonl > SHA256SUMS) 38 echo "done $(date -u +%FT%TZ)" >> "$OUT/run.log"