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/tests/arboris/build-sparse-probe.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 / tests / arboris / build-sparse-probe.sh` 45 lines ยท 2455 bytes Raw Blame History 1 #!/bin/sh 2 # SPDX-License-Identifier: AGPL-3.0-only 3 set -eu 4 bin=${1:?supply output executable} 5 : "${OMC:?set OMC to the seeded compiler}" 6 # The seeded compiler takes one profile declaration per composed program. 7 main=${2:-tests/arboris/sparse-silicon.om} 8 # Compile an exact fixture into each probe so replay cannot change its shape. 9 hops=1 10 layout=0 11 case "${3:-compound}" in 12 compound) dims="100000 2 1 8" ;; 13 wave) dims="100000 2 2 8" ;; 14 small) dims="4096 1 1 8" ;; 15 even) dims="12288 2 1 8"; hops=2; layout=4 ;; 16 persistent) dims="129 2 1 8"; hops=3; layout=1 ;; 17 hubs) dims="129 2 1 8"; layout=2 ;; 18 experimental) dims="129 2 1 264"; layout=3 ;; 19 wide) dims="100000 2 1 264" ;; 20 *) exit 2 ;; 21 esac 22 set -- $dims 23 printf 'const probe_n ulong %s 24 const probe_batch ulong %s 25 const probe_planes ulong %s 26 const probe_dim ulong %s 27 const probe_hops ulong %s 28 const probe_layout ulong %s 29 ' "$1" "$2" "$3" "$4" "$hops" "$layout" > "$bin.shape.om" 30 common=tests/arboris/probe-common.om 31 case "$main" in *packet.om) common=/dev/null ;; esac 32 # Only the gated CPU oracle needs the numeric reference. Its public "shape" 33 # classifier shares a name with a QMD parameter outside the numeric unit. 34 sed '/^fn logpoly /,$d' gpu/nvidia/om/numeric/numeric.om > "$bin.numeric.om" 35 cat om/arboris_arena.om om/arboris_ontology.om om/tls/sha2.om om/arboris_records.om \ 36 om/arboris_spread.om om/runtime/rx_capq_core.om seed/authority/capq.om "$bin.numeric.om" om/arboris_gated.om om/arboris_gate_cubic.om om/arboris_q4.om seed/authority/caproot.om om/gpu/bw_qmd.om \ 37 om/blackwell_arboris_qmd.om om/encoder/bw_enc_sm121.om om/blackwell_arboris_emit.om om/blackwell_arboris_gated_emit.om om/blackwell_arboris_persistent.om om/blackwell_arboris_hubs.om \ 38 gpu/nvidia/native/nvrm/context.om gpu/nvidia/native/share/share.om \ 39 gpu/nvidia/native/blackwell/vector.om gpu/nvidia/native/blackwell/launch.om \ 40 gpu/nvidia/native/arboris/arena.om gpu/nvidia/native/arboris/compute-lock.om gpu/nvidia/native/arboris/step.om gpu/nvidia/native/arboris/query.om gpu/nvidia/native/arboris/gated-step.om gpu/nvidia/native/arboris/digest.om \ 41 protocol/omnet/om/sha512/sha512.om protocol/omnet/om/`ed25519`/`ed25519`.om gpu/nvidia/native/arboris/commit.om \ 42 "$bin.shape.om" "$common" "$main" > "$bin.sources" 43 awk '/^om2$/{if(profile++) next} {sub(/^export fn /,"fn ");print}' "$bin.sources" > "$bin.om" 44 "$OMC" < "$bin.om" > "$bin" 45 chmod +x "$bin"