interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / evidence / GEMM-GENERAL-AB-20261027 / AB-PLAN.md

75 lines · 4550 bytes Raw Blame History Source

GemmGeneral served-shape A/B: gemm_ex against the existing C3 entry (predeclared)

Written 2026-10-27 by GemmGeneral2 before any timed run. Committed to CUDApp branch gemm-general/gemm-ex and announced on BOARD (with this file's sha256) before the hold starts. Nothing below is changed after the run.

Question

At the nine served 35B GEMM shapes, does the general entry omega_gpu_gemm_ex (CUDApp#139) cost more wall time than the existing entry omega_gpu_gemm_ld it calls, for the same host-memory inputs and outputs?

Arms (one process, one build)

Cells (18)

Types bf16 and e4m3, times these shapes (M x N x K): 1x8192x2048 q+gate decode, 16x12288x2048 gdn in_proj b16, 512x8192x2048 q+gate p512, 512x2048x4096 o_proj p512, 2048x12288x2048 gdn in_proj p2048, 2048x2048x4096 out_proj p2048, 64x1024x2048 expert gate+up, 64x2048x512 expert down, 2048x16384x2048 lm_head slice. These are the nine GemmTune measured (handoffs/GemmTune/AB-PLAN.md). Inputs: bf16 values k/128 for integer k in [-256, 256), e4m3 any non-NaN code, seeded per shape.

Run

Correctness gate (any failure voids the run)

Every pair, warm included: both rc OK; C_B equal to C_A bit for bit; 64 sampled elements of C_A (the last element plus 63 seeded ones) within K 2^-22 sum|a b| of a double host reference; arm B's route NATIVE with host_fixed 0. Negative control after the timed rounds: gemm_ex mutant 1 (drops the last k) on 64x2048x512 bf16 must be RED (bitwise differs and the reference check fails on C_B while C_A passes). A green control fails the run.

Kept pairs

A warm=False pair is kept unless its in_flight (the live 35B's /health) before or after the pair is non-zero or unreadable (-1). A cell with fewer than 10 kept pairs is INCONCLUSIVE.

Statistics (Wolfram, quoted with the query)

Per cell over kept pairs: median wall_a_ns, median wall_b_ns, r = median_B / median_A, min and max of each arm, the median of the per-pair ratios wall_b / wall_a. Information only: Wilcoxon signed-rank test (SignedRankTest) of the per-pair log ratios.

Verdict per cell (fixed now)

Lane gate

PASS if the correctness gate passes and every cell has r <= 1.10 (gemm_ex costs at most 10 % over the call it wraps at the served shapes). Otherwise FAIL, with the failing cells listed; the measured overhead then goes into API.md section 9.8.

NOT_RUN by design