interplane.Get Omega
Read in your language

omega-gpu-driver

aien-dev/omega-gpu-driver

Brought by drakestapleton

branch main Branches Tags History

omega-gpu-driver / tools / buildogd.sh

16 lines · 520 bytes Raw Blame History
1#!/bin/sh
2# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3# Composed model launcher only; physical invocation refuses before any device effect.
4set -eu
5R=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
6cd "$R"
7sh tools/getirqomc.sh
8rm -f build/ogd build/ogd.tmp
9while IFS= read -r unit; do cat "$unit"; printf '\n'; done < tools/ogd.units > build/ogd.om
10if ! build/irq-omc < build/ogd.om > build/ogd.tmp; then
11 rm -f build/ogd.tmp
12 exit 1
13fi
14chmod +x build/ogd.tmp
15mv build/ogd.tmp build/ogd
16echo build/ogd