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 / 01-fetch.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 | # Stage 1: fetch pinned submodules and apply headstart patches (mirrors upstream scripts/setup.sh). |
| 18 | set -euo pipefail |
| 19 | H=~/workspace/headstart-exp/headstart |
| 20 | cd "$H" |
| 21 | git submodule update --init --depth 1 rustc cargo |
| 22 | echo "rustc HEAD $(cd rustc && git rev-parse HEAD)" |
| 23 | echo "cargo HEAD $(cd cargo && git rev-parse HEAD)" |
| 24 | for p in patches/rustc/*.patch; do echo "applying $p"; (cd rustc && git apply "$H/$p"); done |
| 25 | for p in patches/cargo/*.patch; do echo "applying $p"; (cd cargo && git apply "$H/$p"); done |
| 26 | cp config/bootstrap.toml rustc/bootstrap.toml |
| 27 | (cd rustc && git diff --stat | tail -1) |
| 28 | (cd cargo && git diff --stat | tail -1) |
| 29 | echo FETCH_OK |