From d9e5e0de6d167fd2c6d2883d476ae639fda60930 Mon Sep 17 00:00:00 2001 From: aien-spark Date: Tue, 27 Oct 2026 03:27:16 -0500 Subject: [PATCH 1/2] README, tests: remove references to files that do not exist; state the tolerances the tests enforce --- README.md | 9 +++++---- tests/netlib/run.sh | 2 +- tests/smoke.py | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 490260e..a00d221 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ BLAS in Omega: the open replacement track for layer #6 of the NVIDIA stack (cuBL | Path | Role | Status | |---|---|---| | `om/blas.om` | the 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 checks | Omega (OM-2) | -| `src/omegablas.c`, `include/omegablas.h` | **interim** C layer: CBLAS and Fortran 77 entry points, xerbla routing, workspace, cache blocking, batch loops | C, retired by the extensions in [docs/EXTENSIONS.md](docs/EXTENSIONS.md) | +| `src/omegablas.c`, `include/omegablas.h` | **interim** C layer: CBLAS and Fortran 77 entry points, xerbla routing, workspace, cache blocking, batch loops | C, migration pending; the Omega extensions that retire it are not yet written down | | `python/omegablas` | DLPack binding (numpy, torch, any `__dlpack__` producer) | Python over ctypes | -| `tests/` | netlib BLAS/CBLAS test drivers, fuzz vs numpy, mutant control, A/B bench | | +| `tests/` | `smoke.py` (cblas_sgemm and cblas_sgemv against a float64 numpy reference), `convert.py` (exhaustive f16/bf16/e4m3fn/e5m2 widening and f32 to f16/bf16 RNE narrowing against ml_dtypes; fp8 narrowing not covered), `netlib/run.sh` (netlib sblat2/3 and c_sblat2/3 drivers, SGEMV and SGEMM only) | no fuzz, mutant, A/B or gemm_ex tests yet | 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. @@ -26,8 +26,9 @@ into the workspace and the batch pointer arithmetic. act none, relu or gelu-tanh. - `omb_hgemm`, `omb_bfgemm`, `omb_gemm_batched`, `omb_gemm_strided_batched`, `omb_widen`, `omb_narrow`. -Numerics: no FMA (one rounding per operation); see [docs/TOLERANCE.md](docs/TOLERANCE.md) for the -bound the tests enforce. +Numerics: no FMA (one rounding per operation). The bounds the tests enforce: `tests/smoke.py` requires +sgemm max error / max(1, max |reference|) < 1e-5 and sgemv max absolute error at most 1e-4; the netlib +drivers apply their own test-ratio threshold from the input decks. No derived error bound is written down yet. ## Build diff --git a/tests/netlib/run.sh b/tests/netlib/run.sh index 4ebafbf..cb1bc35 100755 --- a/tests/netlib/run.sh +++ b/tests/netlib/run.sh @@ -7,7 +7,7 @@ # Exit 0 only if all four drivers report every enabled routine PASSED and none FAILED. set -eu ROOT=$(cd "$(dirname "$0")/../.." && pwd) -LAPACK=${LAPACK:?set LAPACK to an unpacked lapack-3.12.1 tree (tests/netlib/fetch.sh)} +LAPACK=${LAPACK:?set LAPACK to an unpacked lapack-3.12.1 tree (https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.12.1.tar.gz)} FC=${FC:-gfortran} CC=${CC:-cc} W=$ROOT/build/netlib diff --git a/tests/smoke.py b/tests/smoke.py index 2ab9ec5..176835d 100644 --- a/tests/smoke.py +++ b/tests/smoke.py @@ -1,4 +1,4 @@ -"""Smoke check: cblas_sgemm / cblas_sgemv / omb_gemm_ex against a float64 numpy reference.""" +"""Smoke check: cblas_sgemm / cblas_sgemv against a float64 numpy reference (omb_gemm_ex is not exercised here).""" import ctypes as C import os import sys From f85fabc77e3fc24961705c1647de681fe992e8ac Mon Sep 17 00:00:00 2001 From: aien-spark Date: Tue, 27 Oct 2026 03:27:43 -0500 Subject: [PATCH 2/2] Keep README and run.sh as on main: BlasGpu's branch adds the referenced files --- README.md | 9 ++++----- tests/netlib/run.sh | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a00d221..490260e 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ BLAS in Omega: the open replacement track for layer #6 of the NVIDIA stack (cuBL | Path | Role | Status | |---|---|---| | `om/blas.om` | the 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 checks | Omega (OM-2) | -| `src/omegablas.c`, `include/omegablas.h` | **interim** C layer: CBLAS and Fortran 77 entry points, xerbla routing, workspace, cache blocking, batch loops | C, migration pending; the Omega extensions that retire it are not yet written down | +| `src/omegablas.c`, `include/omegablas.h` | **interim** C layer: CBLAS and Fortran 77 entry points, xerbla routing, workspace, cache blocking, batch loops | C, retired by the extensions in [docs/EXTENSIONS.md](docs/EXTENSIONS.md) | | `python/omegablas` | DLPack binding (numpy, torch, any `__dlpack__` producer) | Python over ctypes | -| `tests/` | `smoke.py` (cblas_sgemm and cblas_sgemv against a float64 numpy reference), `convert.py` (exhaustive f16/bf16/e4m3fn/e5m2 widening and f32 to f16/bf16 RNE narrowing against ml_dtypes; fp8 narrowing not covered), `netlib/run.sh` (netlib sblat2/3 and c_sblat2/3 drivers, SGEMV and SGEMM only) | no fuzz, mutant, A/B or gemm_ex tests yet | +| `tests/` | netlib BLAS/CBLAS test drivers, fuzz vs numpy, mutant control, A/B bench | | 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. @@ -26,9 +26,8 @@ into the workspace and the batch pointer arithmetic. act none, relu or gelu-tanh. - `omb_hgemm`, `omb_bfgemm`, `omb_gemm_batched`, `omb_gemm_strided_batched`, `omb_widen`, `omb_narrow`. -Numerics: no FMA (one rounding per operation). The bounds the tests enforce: `tests/smoke.py` requires -sgemm max error / max(1, max |reference|) < 1e-5 and sgemv max absolute error at most 1e-4; the netlib -drivers apply their own test-ratio threshold from the input decks. No derived error bound is written down yet. +Numerics: no FMA (one rounding per operation); see [docs/TOLERANCE.md](docs/TOLERANCE.md) for the +bound the tests enforce. ## Build diff --git a/tests/netlib/run.sh b/tests/netlib/run.sh index cb1bc35..4ebafbf 100755 --- a/tests/netlib/run.sh +++ b/tests/netlib/run.sh @@ -7,7 +7,7 @@ # Exit 0 only if all four drivers report every enabled routine PASSED and none FAILED. set -eu ROOT=$(cd "$(dirname "$0")/../.." && pwd) -LAPACK=${LAPACK:?set LAPACK to an unpacked lapack-3.12.1 tree (https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.12.1.tar.gz)} +LAPACK=${LAPACK:?set LAPACK to an unpacked lapack-3.12.1 tree (tests/netlib/fetch.sh)} FC=${FC:-gfortran} CC=${CC:-cc} W=$ROOT/build/netlib