cuBLAS sgemm/hgemm reference on the GB10 (2026-11-14)
This receipt only adds files. It records the vendor library's timing on spark-b87b's GB10, the
reference the Omega GEMM path has to beat. It is not an omega-blas measurement. omega-blas
large-shape throughput stays NOT_RUN; its small-shape latency is in netlib-gb10-20261027.md.
Linear: DRA-573. Related: DRA-472, DRA-485.
Where it came from
- Host spark-b87b, GPU NVIDIA GB10, driver 580.173.02, CUDA 13.0, nvcc 13.0.88, CPU governor
performanceon all 20 cores. Source:cublas-gb10-20261114/env-summary.txt, taken at 21:06:08. The chip targetsm_121is fromcudapp/doctor.log(line 9) in the evidence folder. - Session window: 2026-11-14 20:54–21:11 America/Chicago, as
RESULTS.mdrecords it.00-session-start.txtreads 20:56:22. :18091 was stopped for the session. Every time below is a file modification time in the evidence folder unless a line says otherwise. git does not keep mtimes, so these can be checked only there.- The stop finished at 21:05:58 (mtime of
01-18091-stop.log). At that timecompute-apps-after-stop.csvshows no compute process. - The restart started at 21:09:06 (first line of
01-18091-restart.log). :18091 held GPU memory again by 21:11:27 (01-nvidia-smi-after-restart.txt). - Other chip tests ran in between:
cudapp/hello-gpu-*, the last at 21:08:02 (hello-gpu-racecheck.*). - The sweep files are dated 21:08:39 to 21:08:53. That is after those tests and before the :18091 restart.
clocks-before.txtread 0 % utilisation at 21:08:40.- No file records other processes during the sweep itself.
- The stop finished at 21:05:58 (mtime of
- Original evidence folder:
~/canon/evidence/SPARK-GPU-20261114/on spark-b87b (RESULTS.md,cublas/,env/,01-*). That folder is not under version control. The files below are byte-identical copies:env/summary.txtwas renamedenv-summary.txt.01-compute-apps-after-stop.csvwas renamedcompute-apps-after-stop.csv.cublas_sweep.cuis kept exactly as it ran. It getsstrcmponly through transitive includes (no<cstring>). Do not edit it, or its hash breaks.
- Build and run, as
RESULTS.mdrecords them:nvcc -O3 -std=c++17 -arch=sm_121 -o cublas_sweep cublas_sweep.cu -lcublas, then./cublas_sweep. nvcc printed nothing (compile.logis empty). The binary is not committed.- Its hash was not recorded at run time.
- The binary still in the evidence folder (mtime 21:08:40) hashes to
391853dceb9a38e7e74d9f4403d85ee87b27fae456d360f9b1285860522520a0.
- Math mode: no
cublasSetMathModecall, so Sgemm ran under cuBLAS's default fp32 math (no TF32 requested).NVIDIA_TF32_OVERRIDEand other cuBLAS environment variables were not recorded. omega-blas's GB10 f32 path is bf16x3 (see README Numerics), so the two differ in precision mode. - Hgemm is
cublasHgemm, which computes and accumulates in fp16 according to the cuBLAS documentation. That was not measured here. Its TFLOP/s is a half-accumulate figure; do not compare it as if it were bf16 or fp8 with fp32 accumulate. - Method (
cublas_sweep.cu):- Square N×N matrices, column-major,
CUBLAS_OP_Non both operands, alpha 1, beta 0. - Deterministic inputs:
0.001 * ((i % 97) - 48). - 3 warm-up calls, then 5 timed calls with CUDA events. TFLOP/s is
2 N^3 / median. - The TFLOP/s column comes from the unrounded median. Recomputing it from the 4-decimal ms column
gives differences of up to 0.0172 TFLOP/s (Hgemm N=1024: 55.205 recomputed, 55.188 recorded).
This was checked with WolframLanguageEvaluator:
N[2*{1024,1024,2048,2048,4096,4096}^3/({0.1371,0.0389,0.9690,0.2149,7.2832,1.4861}*10^-3)/10^12]->{15.6636, 55.2052, 17.7295, 79.9436, 18.8707, 92.4830}, largest difference0.017235.
- Square N×N matrices, column-major,
Results (cublas-gb10-20261114/sweep-timing.txt)
| Kernel | N | runs | median ms | min | max | spread | TFLOP/s |
|---|---|---|---|---|---|---|---|
| cublasSgemm | 1024 | 5 | 0.1371 | 0.1346 | 0.1405 | 0.0059 | 15.669 |
| cublasHgemm | 1024 | 5 | 0.0389 | 0.0384 | 0.0410 | 0.0026 | 55.188 |
| cublasSgemm | 2048 | 5 | 0.9690 | 0.9660 | 0.9772 | 0.0111 | 17.729 |
| cublasHgemm | 2048 | 5 | 0.2149 | 0.2140 | 0.2194 | 0.0054 | 79.927 |
| cublasSgemm | 4096 | 5 | 7.2832 | 7.2178 | 7.9190 | 0.7012 | 18.871 |
| cublasHgemm | 4096 | 5 | 1.4861 | 1.4804 | 1.4882 | 0.0077 | 92.484 |
Clocks:
clocks-before.txt: 48 °C, 5.66 W, 208 MHz.clocks-after-timing.txt: 49 °C, 22.19 W, 2405 MHz.
Not shown
- Limiter analysis: NOT_RUN.
ncufailed withERR_NVGPUCTRPERMbecause the user cannot read GPU performance counters (Linear DRA-570). Eachncu-*-4096.txtholds one sweep line printed under the profiler (runs=1): Hgemm 2.0432 ms and Sgemm 7.4523 ms. Neither is a timing result. Quote only the table above. - The Sgemm N=4096 spread is 0.7012 ms (max 7.9190 ms). Re-check it once counters are readable.
- Coverage is five timed runs per row, in one window, on one chip. Other shapes, transposes, and the bf16, fp8 and TF32 modes were not measured. This qualifies neither cuBLAS nor omega-blas.
Check
cd receipts/cublas-gb10-20261114 && sha256sum -c SHA256SUMS