interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / tools / run_gpu_fp8_v2_sweep.sh

38 lines · 1872 bytes Raw Blame History
1#!/bin/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# run_gpu_fp8_v2_sweep.sh EVIDENCE_DIR: one-variable chip sweep of the FP8 GEMV on the production shapes (kernel-only,
18# under the GB10 lock), variant 1 controls first and last in the same run. Each line: label, then the test flags.
19set -u
20EVID="${1:?evidence dir}"; HERE="$(cd "$(dirname "$0")/.." && pwd)"; cd "$HERE" || exit 2; mkdir -p "$EVID"
21{ echo "start $(date -u +%FT%TZ) omega=$(git rev-parse HEAD) dirty=$(git status --porcelain | wc -l)"; uptime; } > "$EVID/device.txt"
22T=./build/gpu_fp8_api_test
23run() { local label=$1; shift; for pat in "8 experts" "o_proj" "qkv fused"; do
24 $T --reps 20 --only "$pat" --out "$EVID/receipt-$label-${pat// /_}.json" "$@" 2>&1 | grep -E "^chip .*variant=|FAIL|latched" | sed "s/^/[$label] /"; done; }
25run v1-control
26run v2-default --variant 2
27run v2-w8 --variant 2 --warps 8
28run v2-w8-b24 --variant 2 --warps 8 --cta-budget 24
29run v2-w8-b48 --variant 2 --warps 8 --cta-budget 48
30run v2-r2-w8 --variant 2 --rows 2 --warps 8
31run v2-r4-w8 --variant 2 --rows 4 --warps 8
32run v1-r2 --rows 2
33run v1-r4 --rows 4
34run v1-w16 --warps 16
35run v1-control-2
36echo "end $(date -u +%FT%TZ)" >> "$EVID/device.txt"
37(cd "$EVID" && sha256sum *.json *.txt > SHA256SUMS)
38echo "GPU_FP8_V2_SWEEP: DONE"