interplane.Get Omega
Read in your language

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

branch main Branches Tags History

aien-sovereign-core-mv / om / ribbon / build-native.sh

20 lines · 1145 bytes Raw Blame History
1#!/usr/bin/env bash
2# SPDX-License-Identifier: Apache-2.0
3set -euo pipefail
4root=$(cd "$(dirname "$0")/../.." && pwd)
5bridge=${OMEGA_BRIDGE_SOURCE:?set OMEGA_BRIDGE_SOURCE to the pinned Omega Bridge checkout}
6compiler=${OMEGA_NATIVE_OMC:?set OMEGA_NATIVE_OMC to the pinned native-call compiler}
7out=${1:-$root/target/ribbon-native}
8pin=ba8a75a6f9538b130383e1eb8ff459f82c589f92
9test "$(git -C "$bridge" rev-parse HEAD)" = "$pin" || { echo 'FAIL bridge source identity'; exit 1; }
10test -z "$(git -C "$bridge" status --porcelain -- src/native.om tools/native)" || { echo 'FAIL modified bridge source'; exit 1; }
11OMEGA_NATIVE_OMC="$compiler" "$bridge/tools/native" "$out" "$root/om/ribbon/pipeline.om"
12python3 "$root/om/ribbon/check_native.py" "$out"
13python3 "$root/om/ribbon/check_overlap.py" "$out"
14{
15 printf 'bridge %s\n' "$pin"
16 sha256sum "$compiler" "$bridge/src/native.om" "$bridge/tools/native" \
17 "$root/om/ribbon/pipeline.om" "$out/libomega_native.so" "$out/omega_native.rs"
18 cc --version | head -1
19} > "$out/provenance.txt"
20printf 'AIEN_RIBBON_BINDINGS=%s/omega_native.rs\nLIBRARY_PATH=%s\nLD_LIBRARY_PATH=%s\n' "$out" "$out" "$out"