omega-gpu-bench
First-party Omega GPU kernel benchmark harness and receipts
Brought by drakestapleton
omega-gpu-bench / run
| 1 | #!/bin/sh |
| 2 | # ./run -- run Omega-encoded GPU kernels on this machine's NVIDIA GPU and write a receipt. |
| 3 | # Needs: Linux, an NVIDIA driver (libcuda.so.1), Python 3.8+, git. No CUDA toolkit, no compiler, no pip. |
| 4 | # Options: ./run --help. Exit 0 all kernels correct; 1 a kernel failed; 2 no usable GPU or no kernel in |
| 5 | # the kit (no receipt); 3 kit kernels changed; 4 no sign-off. |
| 6 | # INTERIM: this wrapper and kit/*.py are host glue; the Omega successor is described in DEPENDENCIES.md. |
| 7 | cd "$(dirname "$0")" || exit 1 |
| 8 | command -v python3 >/dev/null 2>&1 || { echo "NOT_RUN: python3 is required"; exit 2; } |
| 9 | exec python3 kit/bench.py "$@" |