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 / benchmarks / data / headstart / patched-20261015-4c83e38 / toolchain / 04-active.sh

36 lines · 1432 bytes Raw Blame History
1#!/usr/bin/env bash
2# SPDX-License-Identifier: Apache-2.0
3# Copyright 2026 Drake Stapleton (AIEN / aien-dev)
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# Proves the ON arm activates headstart: JSON message reasons and the rustc
18# flags cargo passes, on the upstream smoke workspace, OFF vs ON.
19set -uo pipefail
20E=~/workspace/headstart-exp
21H=$E/headstart
22R=$H/rustc/build/host/stage1/bin/rustc
23C=$H/cargo/target/release/cargo
24t=$(mktemp -d)
25cp -r "$H/tests/smoke/." "$t/"
26cd "$t"
27for m in false true; do
28 rm -rf target
29 echo "### CARGO_UNSTABLE_HEADSTART=$m"
30 env RUSTC="$R" CARGO_UNSTABLE_HEADSTART=$m "$C" check -v --color never --message-format=json > out.json 2> err.txt
31 echo "exit=$?"
32 echo "json reasons:"; jq -r .reason out.json | sort | uniq -c
33 echo "rustc invocations with -Zearly-metadata: $(grep -c -- '-Zearly-metadata' err.txt)"
34 grep -o -- '-Zearly-metadata[^ ]*' err.txt | sort | uniq -c
35done
36rm -rf "$t"