Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-blas/blob/main/receipts/netlib-gb10-20261027.md # omega-blas aien-dev/omega-blas Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-blas / receipts / netlib-gb10-20261027.md` 142 lines · 8954 bytes Raw Blame History Source # Receipt: netlib SGEMM / SGEMV and the batched entry points on the GB10 device path, 2026-10-27 Status: EXERCISED on the chip (GB10, DGX Spark) and on the host. This is not QUALIFIED: omega-blas has no named GB10 qualification gate yet. ## Revision and target - omega-blas: the commit that adds this receipt. Source: `src/omegablas.c`, `include/omegablas.h`, `Makefile`, `tests/netlib/run.sh`, `tests/gb10/hooks.c`. The source was unchanged between the runs and the commit. `build-gb10/libomegablas.so` sha256 `b672534f8669f09bfc578532142f5d8337cbe32652c39dea7e8b1d3566ca162d`. - CUDApp `b28372d1f9ebb4edf5f347eb6ce2e8d7ca21e2c5` (aien-dev/CUDApp#139, `gemm-general/gemm-ex`, draft), clean tree. It was built by `make GB10=1` with `-fPIC` and `CUDAPP_MIGRATION_PENDING_GEMM_EX=1`. `libomega_gpu.a` sha256 `725341d11fb8d879f70101fbf1c580aadee6aa113dfe1e46ca0374ad76a3543e`. Every route line in the logs prints this CUDApp sha. - OM-2 omc and omega-bridge as in PINS. Toolchain: cc and GNU Fortran 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04.1). LAPACK v3.12.1, tarball sha256 `2ca6407a…2422` (tests/netlib/fetch.sh). - Platform: kernel 7.0.0-1019-nvidia, NVIDIA open kernel module 580.173.02. The holds ran beside the live 35B server; its health was `"status":"ok"` before and after every hold (`*/health.txt`). - Paths in the copied logs are rewritten to `$WORK` / `$HOME`. ## Holds (flock /tmp/aien-gb10.lock, each under 15 min, UTC) Hold Start to end Command (`OMB_BUILD=build-gb10 OMEGABLAS_DEVICE=gb10 sh tests/netlib/run.sh` plus) Exit h1 08:13:28 to 08:13:30 `DRIVERS=sblat2` (sizing run) 1, because three drivers were NOT_RUN by selection h2 08:14:22 to 08:14:35 none: stock decks, THRESH 16.0, the gate 0 h3 08:14:41 to 08:14:54 `THRESH=0.0` (measurement) 0 h4 08:14:54 to 08:14:55 `GB10_HOOKS= OMB_TEST_MUTANT=1` 1 (expected) h5 08:15:04 to 08:15:06 the same with `OMB_TEST_MUTANT=2`, then `OMB_TEST_MUTANT=4` 1, 1 (expected) h6 08:15:15 to 08:15:18 `strace -f -e trace=openat,ioctl ./sblat2`, with the h2 binaries 0 h7 08:27:42 to 08:27:43 `CHIP_TEST=gb10`: `tests/gb10/run.sh` (batched.c) 0 h8 08:27:43 to 08:27:43 the same with `GB10_HOOKS= OMB_TEST_MUTANT=2` 1 (expected) ## Results Gate, h2 (`chip-h2-stock-all/run.log`). Each driver's route line reads `device gb10 host 0`, so every call reached the device path. Driver Netlib verdict Calls (netlib count) Device calls / tensor-core calls Wall sblat2 SGEMV PASSED computational and error exits 3461 3072 / 2304 0.989 s sblat3 SGEMM PASSED computational and error exits 17496 10350 / 6750 2.802 s c_sblat2 cblas_sgemv PASSED column-major and row-major, and error exits 3460 + 3460 6144 / 4608 2.278 s c_sblat3 cblas_sgemm PASSED column-major and row-major, and error exits 17496 + 17496 20700 / 13500 6.184 s Device calls are fewer than netlib calls because quick returns (m or n = 0, or alpha = 0 with beta = 1) never leave the host. That is correct BLAS behaviour, and the counters do not include them. `gb10_host_fixed` is 0 in all four drivers: no non-finite input reached CUDApp's host repair. Tolerance (docs/TOLERANCE.md, derived in Wolfram): for k <= 9 a correct bf16x3 result has a netlib ratio of at most 11.19993, below the deck's THRESH 16.0. The stock decks are therefore the gate, unmodified. Measured largest ratio, h3 (`chip-h3-thresh0/run.log`): SGEMV 1.61 (sblat2, and c_sblat2 in both orders) and SGEMM 1.87 (sblat3, and c_sblat3 in both orders). On the host, the same measurement gave 1.48 / 1.51 for SGEMV and 0.00 for SGEMM (`host/host-thresh0.log`). ## Negative controls - h4, mutant 1 (CUDApp drops the last k element): all four drivers FATAL. It never reached the tensor core (`gb10_core_calls 0`): the first failing call has k = 1, which leaves the core no work. - h5, mutant 2 (CUDApp forces op(B) = N): all four FATAL, after 97 tensor-core calls (sblat2 and c_sblat2) and 73 (sblat3 and c_sblat3). This is the control that exercises the chip. - h5, mutant 4 (CUDApp forces beta = 0): all four FATAL on their first beta != 0 call, before any tensor-core call. - h6, device evidence (`chip-h6-strace/strace-summary.txt`): during a passing sblat2 run, the process opened `/dev/nvidia0` 2 times, `/dev/nvidia-uvm` 2 times and `/dev/nvidiactl` 2315 times, and made 18508 ioctls. [INFERENCE] The per-call control-handle opens look like CUDApp's per-call buffer setup and probably account for most of the per-call time below. Not profiled. ## Batched, strided and single f32 products (tests/gb10/batched.c) There are 46 cases: strided batches of 3 in both layouts and all four transpose pairs, with shapes (M,N,K) of (1,1,1), (3,5,2), (9,7,9), (16,13,16) and (4,6,0), and ld padding plus gaps between batches. Two cases have overlapping C (stride 0, beta 0: the last problem wins). Two use pointer arrays. One is `omb_gemm_ex` with a row bias and one is bf16, and both must stay on the host. Each case checks every element against a double reference within the derived limit (device route 5.70, host route 9.51; docs/TOLERANCE.md), checks that no element outside the products moved, and checks the predicted route-counter movement. - Chip h7 (`chip-h7-batched/run.log`): 46 of 46 pass. Largest ratio: device route 1.116, host route 0.832. Routes: host 2, gb10 52 (40 strided batches in one call each, plus 2 x 3 overlapping and 2 x 3 pointer problems), 108 tensor-core calls. - Host, with the HMMA model in place of the chip (`host/batched-model.log`): 46 of 46 pass, with the same 1.116 / 0.832 and the same route and core counts. Host path on both builds (`host/batched-gb10build-host.log`, `host/batched-default-host.log`): 46 of 46 pass, largest ratio 1.330, routes host 134 gb10 0. - Negative controls. Chip h8, CUDApp mutant 2: 16 cases fail, exit 1. On the model, CUDApp mutant 1: 36 fail; mutant 2: 16 fail; mutant 4: 42 fail. Mutant 5 changes only the fp8 block-scale path and passes (0 fail), as expected. - Library-side mutants, planted in a throwaway copy of `src/omegablas.c` and built `GB10=1`, run on the model: - op(A) and op(B) swapped in the gemm_ex mapping (`host/libmutant-opswap.diff`): two cases fail on their values, then gemm_ex rejects a call with BAD_ARGS and the process aborts with exit - - stride_a and stride_b swapped (`host/libmutant-strideswap.txt`): gemm_ex rejects the first batched call and the process aborts with exit 134. Neither result is silent. ## Host (EXERCISED host, `host/`) - Default build (`build/`), stock decks: four of four PASS with unchanged call counts (`host-default.log`, `host-timing.log`, and `host-final.log` after the last edit to the branch). - The `GB10=1` library with no `OMEGABLAS_DEVICE`: four of four PASS on the host path (`gb10build-hostmode.log`). - The `GB10=1` library with the device path on the chip-exact HMMA model (`OMB_TEST_BACKEND=model`, no GPU opened): four of four PASS with the same device and core call counts as h2 (`model-device.log`). Largest ratios 1.61 and 1.87, identical to the chip (`model-thresh0.log`). Mutant 1 on the model: four of four FATAL (`model-mutant1.log`). - Refusals: `OMEGABLAS_DEVICE=gb10` on the default build aborts with "built without the GB10 path" (`unbuilt-gb10.err`), and `OMEGABLAS_DEVICE=cuda` aborts (`badenv.err`). - `tests/netlib/fetch.sh`: a fresh download verified against the pinned sha256 (exit 0), and a corrupted tarball in its place is refused (exit 1). ## Timing (predeclared 08:17Z before the host arm ran; N = 1 per arm; MEASURED) Metric: the per-driver wall time printed by run.sh, with identical decks. Predeclared expectation: the device is slower, because netlib shapes (n <= 9) measure launch latency. Conditions differ: the host arm ran under `nice -n 19 taskset -c 10-14`, the device arm unpinned. Driver Host GB10 GB10/host (Wolfram) GB10 per device call sblat2 0.0223 s 0.989 s 44.4x 0.322 ms sblat3 0.103 s 2.802 s 27.3x 0.271 ms c_sblat2 0.0442 s 2.278 s 51.6x 0.371 ms c_sblat3 0.216 s 6.184 s 28.7x 0.299 ms The device path is a correctness path for these sizes, not a speedup. Large-shape throughput was NOT_RUN in this receipt. ## NOT_RUN - Large-k device numerics (k > 16, where the fixed netlib THRESH 16 no longer bounds a correct result; docs/TOLERANCE.md). - `omb_gemm_ex` f32 with a fused epilogue on the device: by design it stays on the host (exercised as a host-route case above). - Throughput at large shapes, and repeated timing runs. - The python and DLPack binding against `build-gb10`, and `tests/smoke.py` on the device path (its limits are not derived for the device; docs/TOLERANCE.md).