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
omega-mv / gpu / intel / gate.sh
| 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | # gpu/intel/gate.sh -- thin compatibility shim over pure seeded-Omega seed/build/gpucoord.om. |
| 4 | set -eu |
| 5 | ROOT=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd) |
| 6 | OMC="${OMC:-$ROOT/seed/out/omc}" |
| 7 | cd "$ROOT" |
| 8 | mkdir -p build |
| 9 | BIN="$ROOT/build/om-gpucoord.$$" |
| 10 | trap 'rm -f "$BIN"' EXIT |
| 11 | cat seed/build/common.om seed/build/gpucoord.om | "$OMC" > "$BIN" |
| 12 | chmod 755 "$BIN" |
| 13 | rc=0 |
| 14 | OMC="$OMC" "$BIN" intel-gate || rc=$? |
| 15 | exit "$rc" |