interplane.Get Omega
Read in your language

omega-blas

aien-dev/omega-blas

Brought by drakestapleton

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

Holds (flock /tmp/aien-gb10.lock, each under 15 min, UTC)

HoldStart to endCommand (OMB_BUILD=build-gb10 OMEGABLAS_DEVICE=gb10 sh tests/netlib/run.sh plus)Exit
h108:13:28 to 08:13:30DRIVERS=sblat2 (sizing run)1, because three drivers were NOT_RUN by selection
h208:14:22 to 08:14:35none: stock decks, THRESH 16.0, the gate0
h308:14:41 to 08:14:54THRESH=0.0 (measurement)0
h408:14:54 to 08:14:55GB10_HOOKS=<CUDApp> OMB_TEST_MUTANT=11 (expected)
h508:15:04 to 08:15:06the same with OMB_TEST_MUTANT=2, then OMB_TEST_MUTANT=41, 1 (expected)
h608:15:15 to 08:15:18strace -f -e trace=openat,ioctl ./sblat2, with the h2 binaries0
h708:27:42 to 08:27:43CHIP_TEST=gb10: tests/gb10/run.sh (batched.c)0
h808:27:43 to 08:27:43the same with GB10_HOOKS=<CUDApp> OMB_TEST_MUTANT=21 (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.

DriverNetlib verdictCalls (netlib count)Device calls / tensor-core callsWall
sblat2SGEMV PASSED computational and error exits34613072 / 23040.989 s
sblat3SGEMM PASSED computational and error exits1749610350 / 67502.802 s
c_sblat2cblas_sgemv PASSED column-major and row-major, and error exits3460 + 34606144 / 46082.278 s
c_sblat3cblas_sgemm PASSED column-major and row-major, and error exits17496 + 1749620700 / 135006.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

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.

Host (EXERCISED host, host/)

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.

DriverHostGB10GB10/host (Wolfram)GB10 per device call
sblat20.0223 s0.989 s44.4x0.322 ms
sblat30.103 s2.802 s27.3x0.271 ms
c_sblat20.0442 s2.278 s51.6x0.371 ms
c_sblat30.216 s6.184 s28.7x0.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