interplane.Get Omega
Read in your language

omega-blas

aien-dev/omega-blas

Brought by drakestapleton

branch main Branches Tags History

omega-blas / README.md

93 lines · 5984 bytes Raw Blame History Source

omega-blas

BLAS in Omega: the open replacement track for layer #6 of the NVIDIA stack (cuBLAS).

What is here

PathRoleStatus
om/blas.omthe compute unit: f16/bf16/e4m3/e5m2 widening and RNE narrowing, panel packing, the 2x2 f32 gemm macro-kernel, the fused epilogue (alpha, beta, bias by row or column, relu, gelu-tanh), gemv, strided copy, reference argument checksOmega (OM-2)
src/omegablas.c, include/omegablas.hinterim C layer: CBLAS and Fortran 77 entry points, xerbla routing, workspace, cache blocking, batch loops, and (built only with GB10=1) the GB10 device dispatchC, retired by the extensions in docs/EXTENSIONS.md
python/omegablasDLPack binding (numpy, torch, any __dlpack__ producer)Python over ctypes
tests/smoke.py, tests/convert.pynumpy checks of cblas_sgemm and cblas_sgemv; exhaustive format-conversion check against ml_dtypesPython
tests/netlib/run.sh: the unmodified netlib BLAS/CBLAS SGEMV/SGEMM test drivers (sblat2, sblat3, c_sblat2, c_sblat3) against a build, on the host or the GB10 path; fetch.sh: the pinned LAPACK sourceshell
tests/gb10/batched.c + run.sh: strided, pointer-array and single products, route predictions and untouched padding, on either device; hooks.c: test-only HMMA-model backend and CUDApp mutantsC test drivers (migration-pending, docs/EXTENSIONS.md)
receipts/dated run receipts with their logs

On the host path every floating-point operation runs in Omega; the C layer moves no numbers except the bias copy into the workspace and the batch pointer arithmetic. On the GB10 path the f32 products run in CUDApp (see below), not in Omega.

Routines

Numerics: no FMA (one rounding per operation); see docs/TOLERANCE.md for the bound the tests enforce.

Build

make BRIDGE=/path/to/omega-bridge OMC=/path/to/seeded/omc OMC2=/path/to/om2/omc
python3 tests/smoke.py

CI: .github/workflows/gates.yml runs these two steps on a GitHub arm64 runner, with both compilers born from the seed there. The GB10 path and the netlib drivers are not run in CI.

Limits: each dimension below 1,000,000 (the seeded compiler's loop bound); calls are serialised by one lock (the bound Omega runtime has one stack).

GB10 device path

Status: EXERCISED on the GB10 chip (netlib SGEMV/SGEMM, 2026-10-27, receipts/netlib-gb10-20261027.md; rerun 2026-10-31 against CUDApp#214, receipts/netlib-gb10-20261031.md). Not QUALIFIED. It depends on CUDApp omega_gpu_gemm_ex (aien-dev/CUDApp#214, merged; EXPERIMENTAL, pinned in PINS at the CUDApp main merge commit). Large-shape throughput is NOT_RUN (small-shape latency: receipts/netlib-gb10-20261027.md). The reference to beat is cuBLAS on spark-b87b's GB10, 2026-11-14: receipts/cublas-gb10-20261114.md.

make GB10=1 CUDAPP=/path/to/CUDApp BRIDGE=... OMC=... OMC2=...   # builds into build-gb10/
OMEGABLAS_DEVICE=gb10 ./your_program                              # unset or host: the Omega host path

Licence: Apache-2.0 WITH LLVM-exception.

Human-Directed Agentic Engineering

Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions.

For the documented method and a systems-software case study, see Gregory M. Kurtzer, [*Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering* (2026)](https://doi.org/10.5281/zenodo.23682548).