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/seed/helix/ollm_factory/build-synth-gb10.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 / seed / helix / ollm_factory / build-synth-gb10.sh` 47 lines ยท 1467 bytes Raw Blame History 1 #!/bin/sh 2 # seed/helix/ollm_factory/build-synth-gb10.sh 3 # Build zero-CUDA pure seeded OM-2 SM121 Observational-Equivalence Synthesizer (`om_synth_gb10`) 4 # by composing train/omega-llm/native/gpu/{context,vector,launch}.om + om_synth_gb10.om. 5 # Usage: 6 # sh seed/helix/ollm_factory/build-synth-gb10.sh OMC_A [OMC_B] OUT_BIN 7 set -eu 8 OMC_A=${1:?usage: build-synth-gb10.sh OMC_A [OMC_B] OUT_BIN} 9 if [ $# -ge 3 ]; then 10 OMC_B=$2 11 OUT_BIN=$3 12 else 13 OMC_B=$1 14 OUT_BIN=$2 15 fi 16 17 OUT_DIR=$(dirname "$OUT_BIN") 18 mkdir -p "$OUT_DIR" 19 SRC="$OUT_DIR/om_synth_gb10_combined.om" 20 21 cat si/directives/om2.om \ 22 train/omega-llm/native/gpu/context.om \ 23 train/omega-llm/native/gpu/vector.om \ 24 train/omega-llm/native/gpu/launch.om \ 25 seed/helix/ollm_factory/om_synth_gb10.om > "$SRC" 26 27 "$OMC_A" < "$SRC" > "${OUT_BIN}.A" 28 if [ "$OMC_A" != "$OMC_B" ]; then 29 "$OMC_B" < "$SRC" > "${OUT_BIN}.B" 30 cmp -s "${OUT_BIN}.A" "${OUT_BIN}.B" || { echo "FAIL: om_synth_gb10 diverged across strands" >&2; exit 1; } 31 rm -f "${OUT_BIN}.B" 32 fi 33 mv "${OUT_BIN}.A" "$OUT_BIN" 34 chmod +x "$OUT_BIN" 35 rm -f "$SRC" 36 37 if command -v ldd >/dev/null 2>&1; then 38 out=$(ldd "$OUT_BIN" 2>&1 || true) 39 case "$out" in 40 *"not a dynamic executable"*|*"statically linked"*) ;; 41 *) echo "FAIL: $OUT_BIN is not a static zero-CUDA ELF: $out" >&2; exit 1 ;; 42 esac 43 fi 44 45 printf 'PASS om_synth_gb10 static ELF (%s, %s bytes)\n' \ 46 "$(sha256sum "$OUT_BIN" | cut -d' ' -f1)" \ 47 "$(wc -c < "$OUT_BIN" | tr -d ' ')"