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/synapse/blob/main/scripts/ci/portable.sh # synapse A component of the AienOS ecosystem. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `synapse / scripts / ci / portable.sh` 34 lines ยท 1290 bytes Raw Blame History 1 #!/usr/bin/env bash 2 # Portable conformance only. No hardware, energy or performance qualification. 3 set -euo pipefail 4 cd "$(dirname "$0")/../.." 5 mode=${1:?usage: portable.sh workspace|conformance} 6 out=${CI_EVIDENCE_DIR:-$PWD/target/ci-evidence} 7 mkdir -p "$out" 8 exec > >(tee "$out/$mode.log") 2>&1 9 printf 'synapse_sha=%s\n' "$(git rev-parse HEAD)" 10 printf 'source_status:\n'; git status --porcelain 11 rustc -Vv 12 cargo -V 13 cc --version 14 git --version 15 uname -a 16 case "$mode" in 17 workspace) 18 cargo fmt --all --check 19 cargo metadata --format-version 1 --locked >/dev/null 20 cargo clippy --locked --workspace --all-targets -- -D warnings 21 cargo test --locked --workspace 22 ;; 23 conformance) 24 arch=${AIEN_ARCHITECTURE_REPO:?pinned architecture checkout required} 25 pin=`29780e56c9e6b9111d884e0d4b146737228c19f6` 26 test "$(git -C "$arch" rev-parse HEAD)" = "$pin" 27 printf 'architecture_sha=%s\n' "$pin" 28 OUT_DIR="$out/qualification" bash scripts/qualify-crumb-synapse.sh "$arch" 29 cargo run --quiet --locked -p synapse-bench --bin verify-qualification -- "$out/qualification/results.json" 30 (cd "$out/qualification" && sha256sum -c SHA256SUMS) 31 ;; 32 *) echo "unknown gate: $mode" >&2; exit 2 ;; 33 esac 34 printf 'PASS portable %s; GB10 performance and energy: NOT_RUN\n' "$mode"