interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / evidence / CAND2-LIVING-79a805d / 00-declared / A7b / cand2_r15b.sh

21 lines · 1584 bytes Raw Blame History
1#!/bin/bash
2# CAND-2 A7b: rebuild the R15 programs, then R15 silicon once. Guard, snapshots and step recorder as cand2_ladder.sh.
3set -u
4OMEGA_SHA=c62f47b5ac178311d7d8f91c4f52a298a1754ec8; CODE_SHA=79a805d162bfded8c5ce5a4c14f7c29e79025f39
5PHYS_SHA=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf
6W=$HOME/workspace/cand3-campaign/cand2; O=$W/wt-omega-chip; P=$W/wt-physics-chip
7OUT=$HOME/workspace/evidence-out/CAND2-LIVING-79a805d/A7b-R15
8export PHYSICS_DIR=$P AIENOS_LOCK_REPO=$HOME/workspace/r16-survey/aienos ARGUS_REPO=$HOME/workspace/aienos-argus
9cd "$O" || exit 2
10eval "$(sed -n '/^snap() {/,/^}/p' "$W/cand2_ladder.sh")"
11eval "$(sed -n '/^step() {/,/^}/p' "$W/cand2_ladder.sh")"
12# guard as cand2_ladder.sh, except untracked files are allowed (A7's R15 run directory is preserved untracked)
13[ "$(git -C "$O" rev-parse HEAD)" = "$OMEGA_SHA" ] || { echo "omega HEAD wrong"; exit 2; }
14[ "$(git -C "$P" rev-parse HEAD)" = "$PHYS_SHA" ] || { echo "physics HEAD wrong"; exit 2; }
15[ -z "$(git -C "$O" status --porcelain --untracked-files=no)" ] || { echo "omega tracked tree dirty"; exit 2; }
16git -C "$O" diff --quiet $CODE_SHA HEAD -- . ":(exclude)spec/r16-orchestrator-retirement-map.md" ":(glob,exclude)**/.crumb" ":(exclude).crumb" || { echo "code differs"; exit 2; }
17mkdir -p "$OUT"
18step R15-build make r15-perf-silicon
19sha256sum build/rx_r15_perf_silicon build/rx_r15_perf_silicon_nodigest build/r15_reduce > "$OUT/R15-build/executables.sha256" 2>&1
20step R15-silicon tools/r15_qualify.sh silicon
21ls -td evidence/R15/raw/*-c62f47b5ac17-silicon | head -1 > "$OUT/R15-silicon/run-dir.txt"