omega-gpu-driver
aien-dev/omega-gpu-driver
Brought by drakestapleton
omega-gpu-driver / tools / buildogd.sh
| 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. |
| 4 | set -eu |
| 5 | R=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd) |
| 6 | cd "$R" |
| 7 | sh tools/getirqomc.sh |
| 8 | rm -f build/ogd build/ogd.tmp |
| 9 | while IFS= read -r unit; do cat "$unit"; printf '\n'; done < tools/ogd.units > build/ogd.om |
| 10 | if ! build/irq-omc < build/ogd.om > build/ogd.tmp; then |
| 11 | rm -f build/ogd.tmp |
| 12 | exit 1 |
| 13 | fi |
| 14 | chmod +x build/ogd.tmp |
| 15 | mv build/ogd.tmp build/ogd |
| 16 | echo build/ogd |