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
aien-sovereign-core-mv / benchmarks / data / headstart / patched-20261015-4c83e38 / toolchain / 04-active.sh
| 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. |
| 19 | set -uo pipefail |
| 20 | E=~/workspace/headstart-exp |
| 21 | H=$E/headstart |
| 22 | R=$H/rustc/build/host/stage1/bin/rustc |
| 23 | C=$H/cargo/target/release/cargo |
| 24 | t=$(mktemp -d) |
| 25 | cp -r "$H/tests/smoke/." "$t/" |
| 26 | cd "$t" |
| 27 | for 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 |
| 35 | done |
| 36 | rm -rf "$t" |