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 / gpu / spirv / omega-run.sh

16 lines · 554 bytes Raw Blame History
1#!/bin/sh
2# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3# gpu/spirv/omega-run.sh -- thin compatibility shim over pure seeded-Omega seed/build/gpucoord.om.
4# Usage: sh gpu/spirv/omega-run.sh vadd|fsum16|gemm16|rmsnorm cl|vk
5set -eu
6ROOT=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd)
7OMC="${OMC:-$ROOT/seed/out/omc}"
8cd "$ROOT"
9mkdir -p build
10BIN="$ROOT/build/om-gpucoord.$$"
11trap 'rm -f "$BIN"' EXIT
12cat seed/build/common.om seed/build/gpucoord.om | "$OMC" > "$BIN"
13chmod 755 "$BIN"
14rc=0
15OMC="$OMC" "$BIN" spirv-run "$@" || rc=$?
16exit "$rc"