From 01dc3de25328d226faa82d2e1ce958ca85a77e8c Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 26 Oct 2026 20:39:43 -0500 Subject: [PATCH 1/3] tests: randomized torch-f64 suite, Wolfram tolerance contract, 14 mutants (all killed) Signed-off-by: Drake Stapleton --- README.md | 2 +- docs/TOLERANCE.md | 41 +++++++++ tests/mutants.py | 72 ++++++++++++++++ tests/test_ops.py | 215 ++++++++++++++++++++++++++++++++++++++++++++++ tools/build.sh | 6 +- 5 files changed, 333 insertions(+), 3 deletions(-) create mode 100644 docs/TOLERANCE.md create mode 100644 tests/mutants.py create mode 100644 tests/test_ops.py diff --git a/README.md b/README.md index 060f2b6..fc4eb50 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ and the seeded OM-1 compiler `evidence/SEED-0/omc/omc.elf`, sha256 `734f0a39…6 ```sh sh tools/build.sh # fetches the pins into .deps/, checks both compiler hashes, binds -python -m pytest -q tests # needs torch (CPU); compares against torch float64 +python tests/test_ops.py 200 # needs torch (CPU); randomized, compares against torch float64 python tests/mutants.py # each mutant of om/dnn.om must fail the suite ``` diff --git a/docs/TOLERANCE.md b/docs/TOLERANCE.md new file mode 100644 index 0000000..9eef173 --- /dev/null +++ b/docs/TOLERANCE.md @@ -0,0 +1,41 @@ +# Tolerance contract + +The reference is torch float64 on the same f32 inputs. Every output element y of every op must +satisfy + + |y − ref| ≤ u32·|ref| + 2·γ(n + 64)·M + 2^-149, u32 = 2^-24, u64 = 2^-53, γ(k) = k·u64 / (1 − k·u64) + +- **u32·|ref|**: the unit computes in f64 and rounds once to f32 when it stores (round to nearest: + at most half an f32 ulp, relative 2^-24). +- **2·γ(n + 64)·M**: f64 rounding inside the unit plus inside the reference. n is the length of the + op's longest reduction (row length for the norms and softmax, K for MatMul, D + keys for attention, + C/g·kh·kw for Conv, the window for pooling) and M is the op's absolute-value magnitude computed in + f64 by the test (for example |A|·|B| + |bias| for MatMul; Σp·|v|·(1 + 2·max scaled |q|·|k|) for + attention; (1 + |x − max|)·p for softmax). The extra 64 covers the fixed-length transcendental + evaluations (exp, erf, tanh, sqrt and divisions) per element. +- **2^-149**: the smallest f32 subnormal, for outputs that underflow. + +Numbers, all from Wolfram (`WolframLanguageEvaluator`, 2026-10-27): + +| query | result | +|---|---| +| `N[2^-24, 17]`, `N[2^-53, 17]` | 5.9604644775390625e-8, 1.1102230246251565e-16 | +| `N[gam[2^20 + 64], 6]` (largest reduction allowed by the loop bound) | 1.16422e-10 | +| `N[gam[2^20 + 64]/2^-24, 6]` | 0.00195324 — the f64 term stays below 0.2% of u32 per unit of M | +| `N[gam[64], 6]` | 7.10543e-15 | +| `N[(Log[2]/2)^14/14! * Exp[Log[2]/2], 6]` (exp: Taylor remainder after degree 13 on \|r\| ≤ ln2/2) | 5.85118e-18 | +| `N[Erfc[6], 6]` (erf clamps to ±1 for \|x\| ≥ 6) | 2.15197e-17 | +| `N[72/(2*70 + 3), 6]`, `N[r/(1 - r)*10^-17, 6]` (erf series: term ratio at q = 6 once k ≥ 70; tail after the 1e-17 stop) | 0.503497, 1.01408e-17 | +| `N[Product[72/(2 j + 3), {j, 36, 70}], 6]` (erf series at q = 6 has not stopped before k = 70) | 9.25083e-7 | +| `N[2^-149, 6]` | 1.40130e-45 | + +The approximation errors of exp and erf (≤ 2.2e-17 relative) are below γ(64), so they sit inside +the f64 term. ReLU and MaxPool are exact (measured worst err/tol 0). + +**Tightness.** The u32 term is the binding one: the measured worst err/tol ratio is 0.96–1.00 for +every rounding op (tests/test_ops.py output). With every bound halved +(`OMEGA_DNN_TOL_SCALE=0.5`, negative control) the suite reports violations. + +**Scope.** A defect smaller than about one f32 rounding of the output is invisible by construction: +for example perturbing the low half of the Cody–Waite ln2 constant. tests/mutants.py lists the +mutants that the suite must kill. diff --git a/tests/mutants.py b/tests/mutants.py new file mode 100644 index 0000000..934026c --- /dev/null +++ b/tests/mutants.py @@ -0,0 +1,72 @@ +"""Mutation check: every mutant of om/dnn.om must fail tests/test_ops.py. + +Usage: python tests/mutants.py [cases] (OMEGA_MV / OMEGA_BRIDGE as for tools/build.sh) +Each mutant replaces exact lines of the unit, is rebuilt into its own directory and run against the +randomized suite; a mutant that builds and passes is a SURVIVED row and makes the exit status 1. +A mutation whose text is not found aborts (the list is stale). +""" +import os +import subprocess +import sys +import tempfile + +ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +SRC = os.path.join(ROOT, "om", "dnn.om") + +MUTANTS = [ + ("silu sign", [("ret div v add 1.0f64 fexp neg v", "ret div v add 1.0f64 fexp v")]), + ("rms mean divides by n-1", [("s = fsqrt add div s f64 get p 5 pf p 6", "s = fsqrt add div s f64 sub get p 5 1 pf p 6")]), + ("gelu tanh cubic coefficient", [("u = mul 0.7978845608028654f64 add v mul 0.044715f64 mul v mul v v", + "u = mul 0.7978845608028654f64 add v mul 0.04471f64 mul v mul v v")]), + ("layernorm drops eps", [("q = fsqrt add div q f64 get p 5 pf p 6", "q = fsqrt div q f64 get p 5")]), + ("softmax without max subtraction", [ + ("s = add s fexp sub ldfo ws add b c m", "s = add s fexp ldfo ws add b c"), + ("v = div fexp sub ldfo ws add b c m s", "v = div fexp ldfo ws add b c s"), + ]), + ("rope second half sign", [("y = add mul x2 cs mul x1 sn", "y = sub mul x2 cs mul x1 sn")]), + ("causal mask excludes the diagonal", [("put p 30 minu add rem r get p 8 1 get p 9", "put p 30 minu rem r get p 8 get p 9")]), + ("GQA head mapping", [("hk = div rem div r get p 8 get p 6 div get p 6 get p 7", "hk = rem rem div r get p 8 get p 6 get p 7")]), + ("paged decode ignores sequence length", [("put p 27 minu sub get p 31 mul pg get p 11 get p 11", "put p 27 get p 11")]), + ("conv bias channel", [("s = add s ldf ws add get p 4 rem get p 30 get p 10", "s = add s ldf ws get p 4")]), + ("im2col block column offset", [("rb = add get p 5 add mul r get p 29 get p 13", "rb = add get p 5 mul r get p 29")]), + ("maxpool starts at zero", [("put p 29 bitcast ulong -1.0e300f64", "put p 29 bitcast ulong 0.0f64")]), + ("avgpool count_include_pad area", [("put p 30 mul get p 16 get p 17", "put p 30 add get p 16 get p 17")]), + ("fusion never virtualises", [("if ne and arg d i 15 2 0", "if eq i i")]), +] + + +def main(): + cases = sys.argv[1] if len(sys.argv) > 1 else "20" + text = open(SRC).read() + survived = 0 + py = sys.executable + for name, subs in MUTANTS: + mtext = text + for old, new in subs: + if mtext.count(old + "\n") != 1: + sys.exit(f"mutants.py: '{old}' is not one exact line of om/dnn.om") + mtext = mtext.replace(old + "\n", new + "\n") + with tempfile.TemporaryDirectory(prefix="omega-dnn-mut-") as tmp: + src = os.path.join(tmp, "dnn.om") + open(src, "w").write(mtext) + env = dict(os.environ, OMEGA_DNN_SRC=src, OMEGA_DNN_OUT=os.path.join(tmp, "build")) + b = subprocess.run(["sh", os.path.join(ROOT, "tools", "build.sh")], env=env, capture_output=True, text=True) + if b.returncode != 0: + print(f"KILLED(build) {name}: rc={b.returncode} {(b.stderr or b.stdout).strip().splitlines()[-1:]}") + continue + env["OMEGA_DNN_BUILD"] = env["OMEGA_DNN_OUT"] + t = subprocess.run([py, os.path.join(ROOT, "tests", "test_ops.py"), cases], env=env, capture_output=True, text=True) + hit = [ln.split()[0] for ln in t.stdout.splitlines() if "violations=" in ln and not ln.endswith("violations=0") and not ln.startswith("TOTAL")] + if t.returncode == 0: + survived += 1 + print(f"SURVIVED {name}") + elif hit: + print(f"KILLED {name}: {' '.join(hit)}") + else: + print(f"KILLED(trap) {name}: rc={t.returncode} {t.stderr.strip().splitlines()[-1:] }") + print(f"MUTANTS total={len(MUTANTS)} survived={survived}") + sys.exit(1 if survived else 0) + + +if __name__ == "__main__": + main() diff --git a/tests/test_ops.py b/tests/test_ops.py new file mode 100644 index 0000000..66845e0 --- /dev/null +++ b/tests/test_ops.py @@ -0,0 +1,215 @@ +"""Randomized check of every omega-dnn op against torch float64 (docs/TOLERANCE.md). + +Usage: python tests/test_ops.py [cases_per_op] [seed] +Prints one line per op (cases, worst err/tol, violations) and exits 1 on any violation. +Each element must satisfy |y - ref| <= U32*|ref| + 2*gamma(n + 64)*M + 2^-149, with n and M per op. +""" +import os +import sys + +import torch +import torch.nn.functional as F + +sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "python")) +import omega_dnn as od # noqa: E402 + +U32 = 2.0 ** -24 +U64 = 2.0 ** -53 +TINY = 2.0 ** -149 +# Negative control only: OMEGA_DNN_TOL_SCALE=0.5 halves every bound and must produce violations. +TOL_SCALE = float(os.environ.get("OMEGA_DNN_TOL_SCALE", "1")) + + +def gamma(n): + return n * U64 / (1 - n * U64) + + +class Checker: + def __init__(self): + self.rows = {} + + def check(self, name, y, ref, n, mag): + y = y.double().reshape(ref.shape) + tol = (U32 * ref.abs() + 2 * gamma(n + 64) * mag + TINY) * TOL_SCALE + err = (y - ref).abs() + bad = int((~(err <= tol)).sum()) + ratio = float((err / tol).max()) if err.numel() else 0.0 + c, w, b = self.rows.get(name, (0, 0.0, 0)) + self.rows[name] = (c + 1, max(w, ratio), b + bad) + + def report(self): + total = 0 + for name, (c, w, b) in self.rows.items(): + print(f"{name:14s} cases={c:4d} worst_err/tol={w:.3f} violations={b}") + total += b + print(f"TOTAL ops={len(self.rows)} violations={total}") + return total + + +def ri(g, lo, hi): + return int(torch.randint(lo, hi + 1, (1,), generator=g)) + + +def rn(g, *shape, scale=1.0): + return torch.randn(*shape, generator=g) * scale + + +def run(cases, seed): + g = torch.Generator().manual_seed(seed) + ck = Checker() + for _ in range(cases): + # norms and softmax + R, C = ri(g, 1, 6), ri(g, 1, 300) + x = rn(g, R, C, scale=float(torch.rand(1, generator=g)) * 8 + 0.1) + w, b = rn(g, C), rn(g, C) + xd = x.double() + r = xd / torch.sqrt((xd * xd).mean(-1, keepdim=True) + 1e-6) * w.double() + ck.check("rms_norm", od.rms_norm(x, w, 1e-6), r, C, r.abs()) + r = F.layer_norm(xd, (C,), w.double(), b.double(), 1e-5) + sd = torch.sqrt(xd.var(-1, unbiased=False, keepdim=True) + 1e-5) + mag = r.abs() + (xd.abs().amax(-1, keepdim=True) / sd) * w.double().abs() + b.double().abs() + ck.check("layer_norm", od.layer_norm(x, w, b), r, C, mag) + r = torch.softmax(xd, -1) + span = (xd - xd.amax(-1, keepdim=True)).abs() + ck.check("softmax", od.softmax(x), r, C, r * (1 + span) + r.amax(-1, keepdim=True) * span.amax(-1, keepdim=True)) + xl = x * 300 # logits far past exp overflow: only a max-subtracted softmax survives + r = torch.softmax(xl.double(), -1) + span = (xl.double() - xl.double().amax(-1, keepdim=True)).abs() + ck.check("softmax_large", od.softmax(xl), r, C, r * (1 + span) + r.amax(-1, keepdim=True) * span.amax(-1, keepdim=True)) + # elementwise + n = ri(g, 1, 5000) + a, bb = rn(g, n, scale=4), rn(g, n, scale=4) + ad, bd = a.double(), bb.double() + for nm, op, kw, ref in ( + ("silu", od.SILU, {}, F.silu(ad)), + ("gelu_erf", od.GELU, {}, F.gelu(ad)), + ("gelu_tanh", od.GELU, {"gelu_tanh": True}, F.gelu(ad, approximate="tanh")), + ("relu", od.RELU, {}, torch.relu(ad)), + ): + ck.check(nm, od.elementwise(op, a, **kw), ref, 1, ref.abs() + ad.abs()) + for nm, op, ref in (("swiglu", od.SWIGLU, F.silu(ad) * bd), ("add", od.ADD, ad + bd), ("mul", od.MUL, ad * bd)): + ck.check(nm, od.elementwise(op, a, bb), ref, 1, ref.abs() + ad.abs() * (1 + bd.abs())) + cols = ri(g, 1, 64) + a2, bias = rn(g, ri(g, 1, 20) * cols), rn(g, cols) + ref = (a2.double().view(-1, cols) + bias.double()).reshape(-1) + ck.check("bias", od.elementwise(od.BIAS, a2, bias, cols=cols), ref, 1, ref.abs()) + # rope + B, H, S, D = ri(g, 1, 3), ri(g, 1, 4), ri(g, 1, 9), 2 * ri(g, 1, 32) + rot = 2 * ri(g, 1, D // 2) + maxp = ri(g, S, 64) + xr, cos, sin = rn(g, B, H, S, D), rn(g, maxp, rot // 2), rn(g, maxp, rot // 2) + pos = torch.randint(0, maxp, (B, S), generator=g) + for inter in (False, True): + xrd = xr.double() + c, s = cos.double()[pos][:, None], sin.double()[pos][:, None] + xp, rest = xrd[..., :rot], xrd[..., rot:] + x1, x2 = (xp[..., 0::2], xp[..., 1::2]) if inter else (xp[..., : rot // 2], xp[..., rot // 2:]) + y1, y2 = x1 * c - x2 * s, x2 * c + x1 * s + yp = torch.stack([y1, y2], -1).reshape(xp.shape) if inter else torch.cat([y1, y2], -1) + ref = torch.cat([yp, rest], -1) + m1, m2 = x1.abs() * c.abs() + x2.abs() * s.abs(), x2.abs() * c.abs() + x1.abs() * s.abs() + mp = torch.stack([m1, m2], -1).reshape(xp.shape) if inter else torch.cat([m1, m2], -1) + mag = torch.cat([mp, rest.abs()], -1) + ck.check("rope_interleaved" if inter else "rope", od.rope(xr, cos, sin, pos, rot=rot, interleaved=inter), ref, 2, mag) + # matmul + M, N, K = ri(g, 1, 17), ri(g, 1, 70), ri(g, 1, 300) + A, Bm, bv = rn(g, M, K), rn(g, K, N), rn(g, N) + tb = bool(ri(g, 0, 1)) + ref = A.double() @ Bm.double() + bv.double() + mag = A.double().abs() @ Bm.double().abs() + bv.double().abs() + ck.check("matmul", od.matmul(A, Bm.t().contiguous() if tb else Bm, bv, trans_b=tb), ref, K, mag) + # attention prefill (GQA, causal top-left) + B, Hkv = ri(g, 1, 2), ri(g, 1, 3) + Hq = Hkv * ri(g, 1, 3) + Sq, Skv, D = ri(g, 1, 20), ri(g, 1, 40), ri(g, 1, 96) + causal = bool(ri(g, 0, 1)) + if causal: + Skv = max(Skv, Sq) + q, k, v = rn(g, B, Hq, Sq, D), rn(g, B, Hkv, Skv, D), rn(g, B, Hkv, Skv, D) + rep = Hq // Hkv + kd, vd = k.double().repeat_interleave(rep, 1), v.double().repeat_interleave(rep, 1) + scale = D ** -0.5 + logits = q.double() @ kd.transpose(-1, -2) * scale + if causal: + logits = logits.masked_fill(torch.ones(Sq, Skv, dtype=torch.bool).triu(1), float("-inf")) + p = torch.softmax(logits, -1) + ref = p @ vd + lmag = (q.double().abs() @ kd.abs().transpose(-1, -2) * scale).amax(-1, keepdim=True) + mag = (p @ vd.abs()) * (1 + 2 * lmag) + ref.abs() + ck.check("attention", od.attention(q, k, v, causal=causal, block=ri(g, 1, 64)), ref, D + Skv, mag) + # paged decode + B, Hkv, D, bs = ri(g, 1, 3), ri(g, 1, 2), ri(g, 1, 64), ri(g, 1, 16) + Hq = Hkv * ri(g, 1, 4) + maxb, nblk = ri(g, 1, 5), 12 + lens = torch.randint(1, maxb * bs + 1, (B,), generator=g) + table = torch.stack([torch.randperm(nblk, generator=g)[:maxb] for _ in range(B)]) + qd, kc, vc = rn(g, B, Hq, D), rn(g, nblk, bs, Hkv, D), rn(g, nblk, bs, Hkv, D) + out = od.paged_decode(qd, kc, vc, table, lens) + rr, mm = [], [] + for i in range(B): + Kb = kc[table[i]].reshape(-1, Hkv, D)[: lens[i]].double().repeat_interleave(Hq // Hkv, 1).transpose(0, 1) + Vb = vc[table[i]].reshape(-1, Hkv, D)[: lens[i]].double().repeat_interleave(Hq // Hkv, 1).transpose(0, 1) + lg = (qd[i].double()[:, None] @ Kb.transpose(-1, -2)) * D ** -0.5 + pp = torch.softmax(lg, -1) + rr.append((pp @ Vb)[:, 0]) + lm = (qd[i].double().abs()[:, None] @ Kb.abs().transpose(-1, -2) * D ** -0.5).amax(-1, keepdim=True) + mm.append(((pp @ Vb.abs()) * (1 + 2 * lm))[:, 0]) + ref = torch.stack(rr) + ck.check("paged_decode", out, ref, D + maxb * bs, torch.stack(mm) + ref.abs()) + # conv2d, both algorithms + gr = ri(g, 1, 3) + Cg, Og = ri(g, 1, 4), ri(g, 1, 4) + kh, kw, sh, sw = ri(g, 1, 4), ri(g, 1, 4), ri(g, 1, 3), ri(g, 1, 3) + ph, pw, dh, dw = ri(g, 0, kh // 2), ri(g, 0, kw // 2), ri(g, 1, 2), ri(g, 1, 2) + Hh, Ww = ri(g, dh * (kh - 1) + 1, 20), ri(g, dw * (kw - 1) + 1, 20) + xi, wi, bi = rn(g, ri(g, 1, 2), Cg * gr, Hh, Ww), rn(g, Og * gr, Cg, kh, kw), rn(g, Og * gr) + cargs = dict(stride=(sh, sw), padding=(ph, pw), dilation=(dh, dw), groups=gr) + ref = F.conv2d(xi.double(), wi.double(), bi.double(), **cargs) + mag = F.conv2d(xi.double().abs(), wi.double().abs(), bi.double().abs(), **cargs) + for al in (0, 1): + ck.check(f"conv2d_algo{al}", od.conv2d(xi, wi, bi, (sh, sw), (ph, pw), (dh, dw), gr, al), ref, Cg * kh * kw, mag) + # pooling + kh, kw = ri(g, 1, 4), ri(g, 1, 4) + sh, sw, ph, pw = ri(g, 1, 3), ri(g, 1, 3), ri(g, 0, kh // 2), ri(g, 0, kw // 2) + xp = rn(g, ri(g, 1, 2), ri(g, 1, 5), ri(g, kh, 18), ri(g, kw, 18)) + pa = ((kh, kw), (sh, sw), (ph, pw)) + ref = F.max_pool2d(xp.double(), *pa) + ck.check("maxpool", od.pool2d(xp, *pa), ref, 1, ref.abs()) + cip = bool(ri(g, 0, 1)) + ref = F.avg_pool2d(xp.double(), *pa, count_include_pad=cip) + ck.check("avgpool", od.pool2d(xp, *pa, avg=True, count_include_pad=cip), ref, kh * kw, + F.avg_pool2d(xp.double().abs(), *pa, count_include_pad=cip)) + ref = xp.double().mean((2, 3), keepdim=True) + ck.check("global_avgpool", od.global_avg_pool(xp), ref, xp.shape[2] * xp.shape[3], + xp.double().abs().mean((2, 3), keepdim=True)) + # fusion: MatMul -> bias -> SwiGLU in one pass, against f64 and against the unfused list + M, N, K = ri(g, 1, 8), ri(g, 1, 40), ri(g, 1, 80) + A, W, bv, Gt = rn(g, M, K), rn(g, K, N), rn(g, N), rn(g, M, N) + gph = od.Graph() + ia, iw, ib, ig = gph.input(A), gph.input(W), gph.input(bv), gph.input(Gt) + y1, y2, y3 = gph.empty(M * N), gph.empty(M * N), gph.empty(M * N) + gph.node(od.MATMUL, {1: ia, 2: iw, 3: y1, 4: M, 5: N, 6: K, 7: od.NONE, 8: 0}) + gph.node(od.BIAS, {1: y1, 2: ib, 3: y2, 4: M * N, 5: N}) + gph.node(od.SWIGLU, {1: y2, 2: ig, 3: y3, 4: M * N}, keep=True) + gph.materialize() + start = gph.arena.clone() + passes = gph.run(True) + fused = gph.out(y3, (M, N)).clone() + gph.arena.copy_(start) + passes0 = gph.run(False) + h = A.double() @ W.double() + bv.double() + ref = F.silu(h) * Gt.double() + mag = ((A.double().abs() @ W.double().abs() + bv.double().abs()) * (1 + h.abs()) + ref.abs()) * (1 + Gt.double().abs()) + ck.check("fused_mm_bias_swiglu", fused, ref, K, mag) + if (passes, passes0) != (1, 3): + ck.rows["fusion_passes"] = (1, float("inf"), 1) + else: + c, w_, b_ = ck.rows.get("fusion_passes", (0, 0.0, 0)) + ck.rows["fusion_passes"] = (c + 1, 0.0, b_) + return ck.report() + + +if __name__ == "__main__": + cases = int(sys.argv[1]) if len(sys.argv) > 1 else 20 + seed = int(sys.argv[2]) if len(sys.argv) > 2 else 20261027 + sys.exit(1 if run(cases, seed) else 0) diff --git a/tools/build.sh b/tools/build.sh index 3749570..da8748b 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -20,5 +20,7 @@ chmod +x "$OMC1" "$OMC2" check() { got=$(sha256sum < "$1" | cut -d' ' -f1); [ "$got" = "$2" ] || { echo "build.sh: $1 sha256 $got, pinned $2" >&2; exit 1; }; } check "$OMC1" "$OMC1_SHA256" check "$OMC2" "$OMC2_SHA256" -"$OMC2" < "$ROOT/om/dnn.om" > /dev/null -OMEGA_NATIVE_OMC=$OMC1 OMEGA_NATIVE_OMC2=$OMC2 "$OMEGA_BRIDGE/tools/native" "$ROOT/build" "$ROOT/om/dnn.om" +SRC=${OMEGA_DNN_SRC:-$ROOT/om/dnn.om} +OUT=${OMEGA_DNN_OUT:-$ROOT/build} +"$OMC2" < "$SRC" > /dev/null +OMEGA_NATIVE_OMC=$OMC1 OMEGA_NATIVE_OMC2=$OMC2 "$OMEGA_BRIDGE/tools/native" "$OUT" "$SRC" From ed2cc1abe8792d08d62f3922e1e499c2c052559b Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Tue, 27 Oct 2026 04:01:03 -0500 Subject: [PATCH 2/3] GPU tier: omega-dnn ops on GB10 via CUDApp native kernels, gated against the .om host result tests/test_gpu.py: shape sweep, Wolfram-derived per-element bounds (docs/TOLERANCE.md GPU tier), CUDApp test mutants as on-chip negative controls, lock/BOARD/health discipline. Receipts: evidence/GPU-9841bb3a (ew, attn; CUDApp main 9841bb3a), evidence/GPU-b28372d1 (matmul + CUDApp#139 probe; PR head b28372d1), evidence/HOST-01dc3de2 (host suite), evidence/STACK7-GPU-20261026 (the earlier report the README cited). README cites only files that exist and lists ops/shapes with no GPU path (NOT_RUN / unsupported). --- README.md | 34 +- docs/TOLERANCE.md | 109 + evidence/GPU-9841bb3a/LOSSES.md | 49 + evidence/GPU-9841bb3a/attn.json | 3810 +++++++++++++++++ evidence/GPU-9841bb3a/attn.log | 26 + evidence/GPU-9841bb3a/ew.json | 1782 ++++++++ evidence/GPU-9841bb3a/ew.log | 10 + evidence/GPU-b28372d1/gemm.json | 681 +++ evidence/GPU-b28372d1/gemm.log | 7 + evidence/HOST-01dc3de2/env.txt | 4 + evidence/HOST-01dc3de2/mutants_20.log | 16 + evidence/HOST-01dc3de2/negctl_half.log | 26 + evidence/HOST-01dc3de2/test_ops_200_7.log | 26 + evidence/STACK7-GPU-20261026/GPU.md | 301 ++ .../STACK7-GPU-20261026/gpu-bench/check.py | 60 + .../STACK7-GPU-20261026/gpu-bench/gpu_run.sh | 15 + .../STACK7-GPU-20261026/gpu-bench/held.sh | 7 + .../gpu-bench/omega_dnn_bench.c | 159 + .../gpu-bench/protocol.sha256 | 13 + .../gpu-bench/run_paired.py | 29 + .../gpu-bench/torch_arm.py | 112 + .../gpu-runs/corr/check.jsonl | 35 + .../gpu-runs/corr/omega.jsonl | 9 + .../gpu-runs/corr/torch.err | 16 + .../gpu-runs/corr/torch.jsonl | 32 + .../gpu-runs/existing/attention.json | 1 + .../gpu-runs/existing/attention.log | 65 + .../gpu-runs/existing/attention_hd128.json | 1 + .../gpu-runs/existing/attention_hd128.log | 72 + .../gpu-runs/existing/attention_timing.json | 1 + .../gpu-runs/existing/attention_timing.log | 2 + .../gpu-runs/existing/elementwise.json | 1 + .../gpu-runs/existing/elementwise.log | 17 + .../gpu-runs/existing/elementwise_timing.json | 1 + .../gpu-runs/existing/elementwise_timing.log | 3 + .../gpu-runs/mutant/check.jsonl | 9 + .../gpu-runs/mutant/check_perturb_q.jsonl | 9 + .../gpu-runs/mutant/omega.jsonl | 9 + .../gpu-runs/paired/r-1/omega/stderr.txt | 1 + .../gpu-runs/paired/r-1/omega/stdout.jsonl | 9 + .../gpu-runs/paired/r-1/torch/stderr.txt | 15 + .../gpu-runs/paired/r-1/torch/stdout.jsonl | 32 + .../gpu-runs/paired/r0/omega/stderr.txt | 1 + .../gpu-runs/paired/r0/omega/stdout.jsonl | 9 + .../gpu-runs/paired/r0/torch/stderr.txt | 15 + .../gpu-runs/paired/r0/torch/stdout.jsonl | 32 + .../gpu-runs/paired/r1/omega/stderr.txt | 1 + .../gpu-runs/paired/r1/omega/stdout.jsonl | 9 + .../gpu-runs/paired/r1/torch/stderr.txt | 15 + .../gpu-runs/paired/r1/torch/stdout.jsonl | 32 + .../gpu-runs/paired/r2/omega/stderr.txt | 1 + .../gpu-runs/paired/r2/omega/stdout.jsonl | 9 + .../gpu-runs/paired/r2/torch/stderr.txt | 15 + .../gpu-runs/paired/r2/torch/stdout.jsonl | 32 + .../gpu-runs/paired/r3/omega/stderr.txt | 1 + .../gpu-runs/paired/r3/omega/stdout.jsonl | 9 + .../gpu-runs/paired/r3/torch/stderr.txt | 15 + .../gpu-runs/paired/r3/torch/stdout.jsonl | 32 + .../gpu-runs/paired/r4/omega/stderr.txt | 1 + .../gpu-runs/paired/r4/omega/stdout.jsonl | 9 + .../gpu-runs/paired/r4/torch/stderr.txt | 15 + .../gpu-runs/paired/r4/torch/stdout.jsonl | 32 + .../gpu-runs/paired/rounds.jsonl | 12 + .../wolfram/gqa_f32_32q4kv_hd64_ctx2048.wl | 2 + .../wolfram/gqa_f32_32q8kv_hd128_ctx2048.wl | 2 + .../wolfram/gqa_rows_f32_32q8kv_hd128_m256.wl | 2 + .../paged_bf16_32q8kv_hd128_ctx2048_bs16.wl | 2 + .../gpu-runs/paired/wolfram/rmsnorm_1x2048.wl | 2 + .../paired/wolfram/rmsnorm_64x2048.wl | 2 + .../gpu-runs/paired/wolfram/rope_32x128.wl | 2 + .../gpu-runs/paired/wolfram/spin_posthoc.wl | 1 + .../gpu-runs/paired/wolfram/swiglu_131072.wl | 2 + .../gpu-runs/paired/wolfram/swiglu_5632.wl | 2 + .../gpu-runs/spin/r0/stdout.jsonl | 9 + .../gpu-runs/spin/r1/stdout.jsonl | 9 + .../gpu-runs/spin/r2/stdout.jsonl | 9 + .../npy-not-published.sha256 | 26 + tests/test_gpu.py | 681 +++ 78 files changed, 8658 insertions(+), 8 deletions(-) create mode 100644 evidence/GPU-9841bb3a/LOSSES.md create mode 100644 evidence/GPU-9841bb3a/attn.json create mode 100644 evidence/GPU-9841bb3a/attn.log create mode 100644 evidence/GPU-9841bb3a/ew.json create mode 100644 evidence/GPU-9841bb3a/ew.log create mode 100644 evidence/GPU-b28372d1/gemm.json create mode 100644 evidence/GPU-b28372d1/gemm.log create mode 100644 evidence/HOST-01dc3de2/env.txt create mode 100644 evidence/HOST-01dc3de2/mutants_20.log create mode 100644 evidence/HOST-01dc3de2/negctl_half.log create mode 100644 evidence/HOST-01dc3de2/test_ops_200_7.log create mode 100644 evidence/STACK7-GPU-20261026/GPU.md create mode 100644 evidence/STACK7-GPU-20261026/gpu-bench/check.py create mode 100755 evidence/STACK7-GPU-20261026/gpu-bench/gpu_run.sh create mode 100755 evidence/STACK7-GPU-20261026/gpu-bench/held.sh create mode 100644 evidence/STACK7-GPU-20261026/gpu-bench/omega_dnn_bench.c create mode 100644 evidence/STACK7-GPU-20261026/gpu-bench/protocol.sha256 create mode 100644 evidence/STACK7-GPU-20261026/gpu-bench/run_paired.py create mode 100644 evidence/STACK7-GPU-20261026/gpu-bench/torch_arm.py create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/corr/check.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/corr/omega.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/corr/torch.err create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/corr/torch.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/existing/attention.json create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/existing/attention.log create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_hd128.json create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_hd128.log create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_timing.json create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_timing.log create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise.json create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise.log create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise_timing.json create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise_timing.log create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/mutant/check.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/mutant/check_perturb_q.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/mutant/omega.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/omega/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/omega/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/torch/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/torch/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/omega/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/omega/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/torch/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/torch/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/omega/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/omega/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/torch/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/torch/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/omega/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/omega/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/torch/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/torch/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/omega/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/omega/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/torch/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/torch/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/omega/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/omega/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/torch/stderr.txt create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/torch/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/rounds.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_f32_32q4kv_hd64_ctx2048.wl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_f32_32q8kv_hd128_ctx2048.wl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_rows_f32_32q8kv_hd128_m256.wl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/paged_bf16_32q8kv_hd128_ctx2048_bs16.wl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rmsnorm_1x2048.wl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rmsnorm_64x2048.wl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rope_32x128.wl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/spin_posthoc.wl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/swiglu_131072.wl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/swiglu_5632.wl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/spin/r0/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/spin/r1/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/gpu-runs/spin/r2/stdout.jsonl create mode 100644 evidence/STACK7-GPU-20261026/npy-not-published.sha256 create mode 100644 tests/test_gpu.py diff --git a/README.md b/README.md index fc4eb50..d927fe9 100644 --- a/README.md +++ b/README.md @@ -14,20 +14,37 @@ and the seeded OM-1 compiler `evidence/SEED-0/omc/omc.elf`, sha256 `734f0a39…6 | item | label | |---|---| -| RMSNorm, LayerNorm, Softmax, RoPE (split and interleaved), SiLU, GELU (erf, tanh), SwiGLU, Add, Mul, bias, ReLU | IMPLEMENTED in .om, EXERCISED on AArch64 (tests/) | -| MatMul (+bias, transposed B), flash-tiled attention prefill (GQA, causal), paged-KV decode | IMPLEMENTED in .om, EXERCISED on AArch64 | -| Conv2d (direct and im2col + GEMM, stride, pad, dilation, groups), MaxPool, AveragePool, GlobalAveragePool | IMPLEMENTED in .om, EXERCISED on AArch64 | -| Fusion graph (producer + elementwise chain, one store) | IMPLEMENTED, EXERCISED (pass counts and values in tests/) | -| GB10 GPU rows | interim C SASS codegen in omega-mv, measured against cuDNN: see the Stack7 OmegaDnn report | +| RMSNorm, LayerNorm, Softmax, RoPE (split and interleaved), SiLU, GELU (erf, tanh), SwiGLU, Add, Mul, bias, ReLU | IMPLEMENTED in .om, EXERCISED on AArch64 (host): [tests/test_ops.py](tests/test_ops.py), receipt [evidence/HOST-01dc3de2](evidence/HOST-01dc3de2) | +| MatMul (+bias, transposed B), flash-tiled attention prefill (GQA, causal), paged-KV decode | IMPLEMENTED in .om, EXERCISED on AArch64 (host), same receipt | +| Conv2d (direct and im2col + GEMM, stride, pad, dilation, groups), MaxPool, AveragePool, GlobalAveragePool | IMPLEMENTED in .om, EXERCISED on AArch64 (host), same receipt | +| Fusion graph (producer + elementwise chain, one store) | IMPLEMENTED, EXERCISED on AArch64 (host): pass counts and values in [tests/test_ops.py](tests/test_ops.py) | +| Mutants of om/dnn.om | 14 of 14 killed by the host suite: [tests/mutants.py](tests/mutants.py), same receipt | +| GB10 GPU tier: RMSNorm, RoPE (split), SwiGLU, SiLU, Softmax (c ≤ 64, through the attention kernel), GQA decode attention, causal prefill attention, paged-KV decode (single and batch), MatMul (f32, +bias, transposed B) | EXERCISED on the GB10 chip through CUDApp's native kernels, gated against this repo's .om host result: [tests/test_gpu.py](tests/test_gpu.py), receipts [evidence/GPU-9841bb3a](evidence/GPU-9841bb3a) (elementwise, attention; CUDApp main `9841bb3a`) and [evidence/GPU-b28372d1](evidence/GPU-b28372d1) (MatMul; CUDApp PR #139 `b28372d1`, not merged). Not QUALIFIED: one seed, 32 cases per op. Failed earlier runs: [evidence/GPU-9841bb3a/LOSSES.md](evidence/GPU-9841bb3a/LOSSES.md) | +| No GPU path | see "Not on the GPU" below | +| Earlier GB10 measurement (2026-10-26) | omega-mv's interim C SASS codegen measured against torch/cuDNN: [evidence/STACK7-GPU-20261026/GPU.md](evidence/STACK7-GPU-20261026/GPU.md). Those kernels are not the CUDApp kernels above | | SPIR-V | PROPOSED, blocked: omega-mv IR mode has no floats or memory | | GEMM from aien-dev/omega-blas | PROPOSED (the MatMul here is an interim f64-accumulating GEMM in .om) | +### Not on the GPU + +NOT_RUN: CUDApp has no kernel for these (header search of CUDApp `src/*.h` at `9841bb3a`): +LayerNorm, GELU (erf and tanh), ReLU, Add, Mul, bias, RoPE interleaved, Conv2d (direct and +im2col), MaxPool, AveragePool, GlobalAveragePool, the fusion graph, and standalone Softmax. + +Unsupported shapes, refused by the CUDApp kernels and not tested: +- RMSNorm: dim % 128 ≠ 0, or dim > 16384. +- Attention: head_dim ∉ {64, 128}; more than 64 query heads; a GQA ratio that is not a power of two; context above 4096. +- RoPE: rotary width below head_dim. +- Softmax: more than 64 logits. + ## Build and test ```sh sh tools/build.sh # fetches the pins into .deps/, checks both compiler hashes, binds python tests/test_ops.py 200 # needs torch (CPU); randomized, compares against torch float64 python tests/mutants.py # each mutant of om/dnn.om must fail the suite +python tests/test_gpu.py --lib /build-pic/libcudapp_dnn.so --group ew|attn|gemm \ + --cudapp-sha --out [--hold] # GB10; without --hold only the host side runs ``` `build/` gets `libomega_native.so`, the generated `omega_native.{py,h,c,rs,zig,go}` and @@ -39,13 +56,14 @@ the Omega unit. Tensors enter through DLPack (`torch.from_dlpack`). f32 in and out, f64 inside, one rounding per stored element. exp is Cody–Waite with a degree-13 Taylor polynomial, erf a positive series (|x| ≥ 6 gives ±1). Tolerances are derived in -[docs/TOLERANCE.md](docs/TOLERANCE.md) and checked element by element in `tests/`. +[docs/TOLERANCE.md](docs/TOLERANCE.md), the GPU-tier bounds in its "GPU tier" section, and checked +element by element in `tests/`. ## Limits of the seeded compiler (and the proposals) The OM-2 compiler gives each function 16 registers with no spilling, has no vector or FMA words, -and bounds every loop at 1,000,000 passes. The kernels are scalar and bounds-checked, so they trail -oneDNN on speed; the measured gap is in the report. The Omega extensions that close it: f32x4 +and bounds every loop at 1,000,000 passes. The kernels are scalar and bounds-checked. The speed +gap to oneDNN is NOT_RUN: no comparison against oneDNN has been measured. The Omega extensions that close it: f32x4 vector words and FMA, a register allocator with spilling, and IR-mode floats plus a buffer ABI for the SPIR-V backend. diff --git a/docs/TOLERANCE.md b/docs/TOLERANCE.md index 9eef173..360ec5e 100644 --- a/docs/TOLERANCE.md +++ b/docs/TOLERANCE.md @@ -39,3 +39,112 @@ every rounding op (tests/test_ops.py output). With every bound halved **Scope.** A defect smaller than about one f32 rounding of the output is invisible by construction: for example perturbing the low half of the Cody–Waite ln2 constant. tests/mutants.py lists the mutants that the suite must kill. + +## GPU tier (tests/test_gpu.py) + +The GPU tier runs CUDApp's native GB10 kernels on the same f32 inputs and holds each chip output +element y to the omega-dnn host unit h (the gate) and to torch float64 r (a diagnostic): + + gate: |y − h| ≤ T_chip + T_host, T_host = u32·|r| + 2·γ(n + 64)·M + 2^-149 (contract above) + diagnostic: |y − r| ≤ T_chip + 2·γ(n + 64)·M + 2^-149 + +T_chip bounds the kernel against exact arithmetic. Each one below is derived from the kernel source +at the pinned CUDApp sha, does not depend on summation order, and was fixed before any chip run. +Each also carries an absolute 2^-124 for products that the chip may flush below 2^-126. Notation: +u = 2^-24, g(n) = n·u/(1 − n·u) (the f32 γ). + +Hardware constants come from PTX ISA 9.4. `ex2.approx.f32` is within 2 ulp of the correctly +rounded result, which gives at most 5u relative. `rcp.approx.f32` is within 1 ulp, which gives 2u. +`rsqrt.approx.f32` is within relative 2^-22.9, and Wolfram confirms 138·2^-30 ≥ 2^-22.9, so that +value is used. + +- **rmsnorm** (`omega_gpu_rmsnorm_f32`, dim % 128 = 0, dim ≤ 16384). The sum of squares is a + sequential sum over dim/128 elements per thread, followed by a shuffle and CTA tree, so its + relative error is g(dim/128 + 11). An input relative error g moves x^-1/2 by at most g/(2(1 − g)). + The MUFU rsqrt with one Newton step contributes 3.0000007u, and the two output products add + (1 + u)^2: + R = (1 + gs/(2(1 − gs)))·(1 + 3.0000007u)·(1 + u)^2 − 1, with gs = g(dim/128 + 11), and T = R·|r|. + The host term uses n = dim and M = |r|. The test passes eps = 2^-20 to both sides. +- **rope** (`omega_gpu_rope_f32`, rotate-half, rot = D). Each output is x1·c − x2·s or x2·c + x1·s, + so T = g(2)·(|x1||c| + |x2||s|), which holds with or without FMA. The host term uses n = 2. +- **swiglu, silu** (`omega_gpu_swiglu_f32`, |g| ≤ 80; silu is the same kernel with up = 1). + exp(−g) is computed as ex2(−g·log2e). With ε = exp(|g|·g(2))·(1 + 5u) − 1, the bound is + R = (1 + u)^2·(1 + 2u)·(1 + ε/(1 − ε))/(1 − u) − 1 and T = R·|r|. +- **attention**: decode (`omega_gpu_gqa_attention_f32`), causal prefill rows + (`omega_gpu_gqa_attention_rows_f32`), paged batch decode + (`omega_gpu_paged_attention_batch_bf16`), and softmax computed through the decode kernel. + - Notation: Λ is the row maximum of scaled |q|·|k|, nch = ⌈ctx/D⌉, and S is the split count. + S = 1 for the direct paths. For the paged path S is the batch maximum of the kernel's + own_log2split. + - Logit error: a logit carries absolute error at most Λ·g(D + 3), and the max subtraction + doubles it, so each weight has relative error ε_p = exp(2Λ·g(D + 3))·(1 + 5u) − 1. + - Rescales: each chunk rescale adds ε_α = exp(2Λu)(1 + 5u) − 1. + - Split combine (S > 1): the host combine with host_exp2 (Cephes in f32, 24.27u, Wolfram below) + adds ε_w = exp(2Λu)(1 + 25u) − 1. + - Combined: η = (1 + ε_p)(1 + ε_α)^(nch − 1)(1 + ε_w) − 1, α = (1 + η)(1 + g(ctx + 2nch + 2S + 8)) − 1, + and φ = (1 + 2u)(1 + u) − 1. + - Result: R = (φ + α(2 + φ))/(1 − α) and T = R·A, where A = p·|v|. + - The host term uses n = D + keys and M = A(1 + 2Λ) + |r|, the same as test_ops. + - Paged inputs: K and V are bf16-representable f32, so the bf16 pool holds exactly the values + the host sees. + - Softmax mapping: there is no standalone softmax kernel, so softmax(x) for c ≤ 64 logits runs + through the decode kernel with D = 64, q = 8x, and K = V = I[:c]. The kernel's scale 1/8 is + exact, so out[:c] = softmax(x) and A = |r|. One case in two multiplies x by 300, far past exp + overflow. +- **matmul** (`omega_gpu_gemm_ex`, f32 inputs, compute DEFAULT, which routes to bf16x3). + - Split: each f32 splits exactly into three bf16 planes (the source comment at + src/omega_gpu_gemm_ex.c:85), and all 9 plane products are exact. + - Accumulation: one HMMA.16816 accumulation step costs at most + c = (17·2^-25 + 2^-23)(1 + 2^-20) relative under the chip-exact model {16,2,RZ,nominal}. + - Steps: there are steps(K) = 9(⌈K/16⌉ + p) + p accumulation steps, with p = ⌈K/1808⌉ + ⌈K/16384⌉. + - acc = ((1 + c)^steps − 1)·|A||B| + 2^-124·(rowsum|A| + colsum|B|) + K·2^-140. The last two terms + cover the split parts below 2^-133, as in CUDApp#139. + - T = acc + 2^-52(|A||B| + |bias|) + u(|r| + acc) + 2^-149. The bias enters through + C = 1·acc + 1·C. + - The host term uses n = K and M = |A||B| + |bias|. + +**Negative control on chip.** Every op runs CUDApp's own test mutants on cases from the same +sweep, and each mutant must fail the gate. A mutant joins a case only where it changes the +function; an equivalent mutant cannot fail any gate. + +- elementwise: 3 drops the last rmsnorm shuffle step, 4 computes rope as q0c + q1s, and 5 computes + swiglu with exp(+g). +- attention: + - 1 (NO_MAX) skips the max subtraction. It joins only softmax rows whose max logit x has + x·log2 e outside [−126, 128] (half the cases are ×300). Softmax is shift-invariant, so inside + the f32 exp range NO_MAX computes the same function. + - 2 (KV_HEAD) uses the wrong kv head. Needs nkv ≥ 2. + - 3 (SLOT) shifts K by one slot against V. Paged calls only, every sequence with ≥ 2 tokens. + - 5 (Q_ROW) and 6 (OUT_ROW) swap rows h and h ^ 1. Need nq ≥ 2. + - 4 (NO_RESCALE) leaves the accumulator unscaled when the running max moves. The host model + `nores_output` runs CUDApp's chunk loop (D tokens per chunk, src/omega_gpu_attention_api.c:571-572) + without the rescale. The mutant joins a case only if that model puts it at gate ratio ≥ 4. + Paged calls run it with one CTA per head (`omega_gpu_attention_test_set_split(0)`), because + cut J gives every split CTA one chunk and the rescale never runs (CUDApp + tests/gpu_attention_test.c:283-285). +- gemm_ex: 1 drops the last k (used only for K ≤ 256), and 2 reads op_b as N (trans_b cases). + +Each receipt records, per mutant run, the shape, rc, gate violations, the measured ratio and, +for NO_RESCALE, the predicted ratio. A first attention run placed NO_MAX and NO_RESCALE on +equivalent cases, and 10 of 32 mutant runs survived. That run is kept in +evidence/GPU-9841bb3a/LOSSES.md. + +Numbers, all from Wolfram (`WolframLanguageEvaluator`, 2026-10-27; u, g as above): + +| query | result | +|---|---| +| `138/2^30 >= 2^-22.9` | True | +| `Maximize`/`Minimize` of (1+e)(3/2 − (1+e)^2(1+d1)(1+d2)/2)(1+d3)(1+d4) − 1 over \|e\| ≤ 138/2^30, \|di\| ≤ u (rsqrt + Newton) | 3.0000002384u, −3.0000006522u → use 3.0000007u | +| `Reduce[ForAll[g, 0 0 for every mutated case. +- An input-side control is also run: one q element of the paged case perturbed in the checker's view must be + flagged. + +No re-run selection. A re-run happens only for a documented machine fault, and both runs are then reported. +Machine load is recorded, since the Spark load1 was ~18-20 when this was written. + +Protocol sha256, recorded before the first timed run (`gpu-bench/protocol.sha256`): +- GPU.md sections 1-2: `5f8bdad9…e31ee368` +- omega_dnn_bench.c: `4c2a9360…2378ec` +- torch_arm.py: `65f3ffe9…5ed2fda0` +- check.py: `b9812d70…0ee684ee` +- libomega_gpu.a: `886646bd…6e40b3` + +check.py later gained only the `--perturb-q` flag, which is the input-side control declared above. The driver later +gained only the post-hoc `--spin-us` flag (section 6). Both new hashes are appended to the same file. + +## 3. Runs: commands, dates, lock holds, compute-apps check + +- Date 2026-10-27 UTC. Driver 580.173.02. Window 01:23:44Z to 01:26:45Z. +- Every GPU command ran through `gpu-bench/gpu_run.sh LABEL CMD`, which does four things: + - writes the BOARD START line; + - runs `flock -w 900 /tmp/aien-gb10.lock held.sh CMD` (the lock is held only for CMD); + - writes the BOARD END line; + - runs `nvidia-smi --query-compute-apps=pid --format=csv,noheader`. +- The paired campaign used `run_paired.py`, which takes one flock per arm process. +- Logs are in `gpu-runs/`. Load during the window: load1 19-37 on 20 cores. **Every timing below was measured under load.** + +| UTC end | Command (cwd /tmp/OmegaDnn/gpu/omega-mv) | rc | lock held (s) | compute-apps after | +|---|---|---|---|---| +| 01:23:48 | `./build/gpu_elementwise_test --out …/elementwise.json` | 0 | 0.357 | empty | +| 01:24:05 | `./build/gpu_elementwise_test --timing --out …` | 0 | 0.677 | empty | +| 01:24:06 | `./build/gpu_attention_test --out …` | 0 | 0.994 | empty | +| 01:24:14 | `./build/gpu_attention_test --timing --out …` | 0 | 0.809 | empty | +| 01:24:15 | `./build/gpu_attention_test --hd 128 --out …` | 0 | 1.153 | empty | +| 01:24:21 | `bench/omega_dnn_bench runs/corr/omega` | 0 | 1.167 | empty | +| 01:24:31 | `taskset -c 8-9 ~/.venv/bin/python bench/torch_arm.py runs/corr/omega runs/corr/torch` | 0 | 4.649 | empty | +| 01:24:46 | `bench/omega_dnn_bench runs/mutant/omega --mutant` | 0 | 0.749 | empty | +| 01:25:23 | `python bench/run_paired.py runs/paired 5 1`: 12 arm processes, holds 0.66-3.53 s each (`rounds.jsonl`) | 0 | ≤3.531 per process | empty after every process | +| 01:26:43-45 | `bench/omega_dnn_bench_spin runs/spin/rN --spin-us 5000` (post-hoc, ×3) | 0 | 1.086 / 0.555 / 0.554 | empty | + +The longest single lock hold was 4.65 s, far under the 20 min cap. BOARD has 24 OmegaDnn.GpuDnn lines, a START and an +END for each row; the campaign row has one pair. + +Output excerpts: +``` +gpu_elementwise_test --out: PASS swiglu_131073 n=131073 rc=OK violations=0 … | mutant rc=OK violations=131059 CAUGHT + PASS: 35 checks, 0 failed +gpu_elementwise_test --timing: PASS timing rmsnorm_1x2048 … ok_calls=100/100 violations=0 median_ms=0.105 … chip_us_mean=101.6 + PASS timing swiglu_5632 … median_ms=0.109 … chip_us_mean=101.7 ; PASS: 4 checks, 0 failed +gpu_attention_test --out: mutant Q_ROW: caught 8 of 8 ; mutant OUT_ROW: caught 8 of 8 ; PASS: 219 checks, 0 failed +gpu_attention_test --timing: PASS timing gqa_f32_tinyllama_32q4kv_ctx2048 … median_ms=0.652 p90_ms=1.167 … chip_us_mean=567.0 +gpu_attention_test --hd 128: hd128 dominant token 299 (warp 1 of chunk 2): rc OK, 0 bad, worst 0 ; PASS: 225 checks, 0 failed +torch_arm (f32 cases): sdpa_cudnn_f32 / sdpa_flash_f32: "RuntimeError: No available kernel. Aborting execution." +``` + +## 4. Correctness (first output of each arm vs float64 numpy reference, `gpu-runs/corr/check.jsonl`) + +rel = max abs / max |ref| (normwise). Columns: Omega max abs, Omega rel, Omega violations, then the same three for +the baseline. + +| Case | Omega max abs | Omega rel | Omega viol. | Baseline (arm) | Baseline max abs | Baseline rel | Baseline viol. | +|---|---|---|---|---|---|---|---| +| rmsnorm_1x2048 | 1.73e-7 | 6.86e-8 | 0 | torch_rms_norm | 1.73e-7 | 6.86e-8 | 0 | +| rmsnorm_64x2048 | 3.95e-7 | 1.51e-7 | 0 | torch_rms_norm | 4.44e-7 | 1.70e-7 | 0 | +| rope_32x128 | 9.85e-8 | 7.25e-8 | 0 | torch_ops | 9.85e-8 | 7.25e-8 | 0 | +| swiglu_5632 | 5.54e-7 | 9.73e-8 | 0 | torch_silu_mul | 6.15e-7 | 1.08e-7 | 0 | +| swiglu_131072 | 7.63e-7 | 1.34e-7 | 0 | torch_silu_mul | 6.73e-7 | 1.18e-7 | 0 | +| gqa_f32_32q8kv_hd128_ctx2048 | 1.08e-7 | 1.40e-6 | 0 | sdpa_efficient_f32 | 4.44e-8 | 5.75e-7 | 0 | +| gqa_f32_32q4kv_hd64_ctx2048 | 6.39e-8 | 1.61e-6 | 0 | sdpa_efficient_f32 | 2.54e-8 | 6.40e-7 | 0 | +| gqa_rows_f32_32q8kv_hd128_m256 | 1.44e-7 | 1.44e-7 | 0 | sdpa_efficient_f32 | 2.08e-7 | 2.09e-7 | 0 | +| paged_bf16_32q8kv_hd128_ctx2048_bs16 | 1.67e-8 | 2.11e-7 | 0 | sdpa_cudnn_bf16_pregathered | 2.16e-4 | 2.73e-3 | 1816 (not gated) | + +Notes: +- **Omega has 0 violations and 0 non-finite values on all 9 cases.** In every round of every Omega process, all + timed outputs were bitwise equal to the first output (`timed_outputs_differing_from_first = 0`, 45 of 45 + case-processes). +- The cuDNN bf16 rows round q (and, for the f32 cases, KV) to bf16 and return bf16. Their 2.7e-3 to 6.3e-3 + normwise error is a dtype effect, not a defect. +- Omega's paged path keeps q in f32 and accumulates in f32. +- The f32-q, f32-KV torch control on the same gathered pool (`sdpa_efficient_f32q_f32kv_pregathered`) has max abs + 4.08e-8 and 0 violations. + +## 5. Negative controls (`gpu-runs/mutant/`) + +- `omega_dnn_bench --mutant` (TEST-ONLY library mutants) was checked against the same reference. **Every case was + flagged.** + - rmsnorm_1x2048: 2048 of 2048 violations (max abs 1.05). + - rmsnorm_64x2048: 131072 of 131072. + - rope: 2048 of 4096 (the sin-term half). + - swiglu_5632: 5628 of 5632. + - swiglu_131072: 131004 of 131072. + - gqa hd128: 4089 of 4096. + - gqa hd64: 2046 of 2048. + - rows: 1048265 of 1048576. + - paged: 4088 of 4096. +- Input-side control (`check.py … --perturb-q`, q[0] += 0.5 in the reference only): the correct Omega paged output + was flagged with 121 violations (max abs 9.29e-4). The checker rejects a reference computed from the wrong input. +- The in-tree batteries' own mutants were also caught (excerpts in section 3). + +## 6. Performance (paired, 5 measured rounds × 50 calls = 250 samples per arm per case, `gpu-runs/paired/`) + +Statistics came from Wolfram. Inputs are in `gpu-runs/paired/wolfram/.wl`. Per case the query was +`{st[o], st[t], N[Median[Flatten[o]]/Median[Flatten[t]]], N[Median[MapThread[Median[#1]/Median[#2]&,{o,t}]]], st[ow], st[tw], N[Median[Flatten[ow]]/Median[Flatten[tw]]] (, st[x], N[Median[Flatten[o]]/Median[Flatten[x]]])}` +with `st[x_]:=N[{Median[Flatten[x]],Quantile[Flatten[x],1/4],Quantile[Flatten[x],3/4]}/1000]`. Units are µs. + +All rows are dtype f32 except paged, which has bf16 KV and an f32 q. + +**Primary: device time.** Omega submit→marker (spin 0, the library default) vs torch cudaEvent. + +| Op | Shape | Omega median µs | Omega IQR [Q1, Q3] | Baseline (predeclared) | Baseline median µs | Baseline IQR | Ratio Omega/baseline | Median per-round ratio | Verdict | +|---|---|---|---|---|---|---|---|---|---| +| RMSNorm | 1×2048 | 104.289 | [103.712, 104.801] | F.rms_norm | 10.432 | [10.176, 10.656] | 9.997 | 10.03 | SLOWER 10.0× | +| RMSNorm | 64×2048 | 107.617 | [106.849, 108.593] | F.rms_norm | 10.368 | [10.176, 10.624] | 10.380 | 10.45 | SLOWER 10.4× | +| RoPE | 32×128 | 104.577 | [103.745, 105.729] | torch ops | 35.456 | [35.168, 36.320] | 2.949 | 2.94 | SLOWER 2.9× | +| SwiGLU | 5632 | 104.257 | [103.809, 105.073] | silu·mul | 12.400 | [12.064, 12.896] | 8.408 | 8.43 | SLOWER 8.4× | +| SwiGLU | 131072 | 107.417 | [106.929, 108.417] | silu·mul | 12.224 | [12.000, 12.768] | 8.787 | 8.77 | SLOWER 8.8× | +| GQA decode | 32q/8kv hd128 ctx2048 | 422.412 | [417.475, 498.821] | SDPA mem-efficient f32 | 236.160 | [235.104, 237.312] | 1.789 | 1.80 | SLOWER 1.8× | +| GQA decode | 32q/4kv hd64 ctx2048 | 418.019 | [413.699, 514.212] | SDPA mem-efficient f32 | 171.648 | [170.848, 172.384] | 2.435 | 2.44 | SLOWER 2.4× | +| GQA causal prefill | 256 rows, 32q/8kv hd128 | 1481.469 | [1379.740, 1598.078] | SDPA mem-efficient f32 | 91.040 | [90.496, 91.808] | 16.27 | 16.13 | SLOWER 16.3× | +| Paged decode | bf16 KV bs16 ctx2048, 32q/8kv hd128 | 104.729 | [104.033, 105.537] | cuDNN SDPA bf16 (pre-gathered) | 29.920 | [29.408, 30.720] | 3.500 | 3.49 | SLOWER 3.5× | + +Reference-only rows (they do not decide the verdict): + +| Case | Omega median µs | Other arm | That arm's median µs [IQR] | Omega/that | +|---|---|---|---|---| +| GQA hd128 ctx2048 | 422.412 | cuDNN SDPA bf16 (q, KV rounded to bf16) | 93.968 [89.952, 99.456] | 4.495 | +| GQA hd64 ctx2048 | 418.019 | cuDNN SDPA bf16 | 36.704 [36.160, 37.312] | 11.39 | +| GQA rows m256 | 1481.469 | cuDNN SDPA bf16 | 52.064 [51.296, 52.896] | 28.45 | +| Paged ctx2048 | 104.729 | gather (index_select) + cuDNN SDPA bf16 | 208.672 [201.152, 220.864] | **0.502** | + +The one case where Omega is faster is the reference-only paged comparison. When the torch arm must gather the +scattered pool blocks itself, Omega's resident-pool paged kernel takes half the device time of gather + cuDNN. +Against cuDNN on KV that is already contiguous, Omega is 3.5× slower. + +**Secondary: host-to-host wall** (µs median [IQR]; ratio of medians from the same Wolfram calls): + +| Case | Omega wall | Torch wall (H2D + op + D2H) | Ratio | +|---|---|---|---| +| rmsnorm_1x2048 | 106.801 [106.193, 107.409] | 18.920 [18.336, 19.712] | 5.645 | +| rmsnorm_64x2048 | 210.106 [208.370, 211.970] | 37.776 [37.296, 38.192] | 5.562 | +| rope_32x128 | 108.697 [107.857, 109.921] | 44.481 [43.856, 45.856] | 2.444 | +| swiglu_5632 | 109.649 [109.105, 110.609] | 31.192 [29.824, 32.465] | 3.515 | +| swiglu_131072 | 226.778 [222.386, 230.002] | 56.464 [56.017, 57.168] | 4.016 | +| gqa hd128 ctx2048 | 1211.235 [1136.458, 1305.500] | 554.773 [546.005, 572.277] | 2.183 | +| gqa hd64 ctx2048 | 550.573 [538.804, 651.798] | 267.043 [265.971, 268.322] | 2.062 | +| gqa rows m256 | 2531.270 [2421.349, 2676.775] | 293.419 [288.435, 298.995] | 8.627 | +| paged ctx2048 | 173.554 [171.746, 175.425] | 42.113 [41.088, 43.792] | 4.121 | + +**Diagnosis of the ~104 µs floor.** The small Omega ops sit at about 104 µs whatever their size. This matches the +library's documented marker sleep-poll (`omega_gpu_session.h`: "50 us, which Linux timer slack rounds to about +102 us per launch on GB10, omega#328"). The frozen protocol measured the default. + +**POST-HOC, reference-only, not paired, not part of the verdict:** 3 Omega processes with +`omega_gpu_session_set_spin_us(5000)` (`gpu-runs/spin/`, 150 samples per case). Correctness was identical: 0 +violations, and timed outputs equal to the first. Ratio vs the paired-campaign baseline medians: + +| Case | Omega spin-5000 median µs [IQR] | Omega/baseline | +|---|---|---| +| rmsnorm_1x2048 | 16.688 [16.624, 16.816] | 1.600 | +| rmsnorm_64x2048 | 21.784 [20.833, 23.184] | 2.101 | +| rope_32x128 | 6.528 [6.432, 6.688] | 0.184 | +| swiglu_5632 | 6.376 [6.160, 6.672] | 0.514 | +| swiglu_131072 | 17.160 [15.745, 17.888] | 1.404 | +| gqa hd128 ctx2048 | 404.452 [387.300, 467.956] | 1.713 | +| gqa hd64 ctx2048 | 355.339 [348.755, 379.940] | 2.070 | +| gqa rows m256 | 1095.650 [1047.642, 1193.067] | 12.03 | +| paged ctx2048 | 55.465 [54.801, 56.208] | 1.854 | + +Wolfram query (`wolfram/spin_posthoc.wl`): +`st[x_]:=N[{Median[x],Quantile[x,1/4],Quantile[x,3/4]}/1000]; {…{"case", st[spin samples], N[Median[spin]/Median[baseline]]}…}` + +Caveats: +- The spin figure still comes from a different timer mechanism than cudaEvent. +- The torch RoPE baseline is 3 to 5 unfused ops, so it is not a like-for-like fused kernel. +- The attention gap (1.7 to 12×) persists with spin. It is kernel time, not polling. + +## 7. Verdict + +- Correctness: Omega matches the float64 reference on all 9 cases with 0 violations, timed outputs are + deterministic, and the negative controls caught every mutant and the perturbed input. +- Speed, as shipped (spin 0): Omega is slower than the PyTorch/cuDNN baseline on all 9 predeclared cases, from + 1.8× (GQA decode hd128) to 16.3× (causal prefill rows). +- The only win is reference-only: 0.50× device time vs gather + cuDNN on a scattered paged pool. + +Evidence level: QUALIFIED-on-GB10 candidate (single machine, driver 580.173.02, 2026-10-27, under load1 19-37). It +is not QUALIFIED in general. Every kernel is INTERIM C codegen emitting SASS, not `.om`. + +## 8. NOT_RUN + +- Perf and torch comparison for fused decode attention hd128/hd256, prefill attention hd128/hd256 (tensor core), + GDN decode step, MoE router and MoE window/FP8. They are inventory only: no matching torch harness exists yet. +- OmegaTile tsoftmax (omega-mv PR #869): not attempted (optional item). +- cuDNN on the f32 cases: torch refused with "No available kernel"; the cuDNN SDPA path has no f32 kernel. + +Reproduce: from /tmp/OmegaDnn/gpu/omega-mv, +`nice -n 19 taskset -c 8-9 make -j2 PHYSICS_DIR=/tmp/OmegaDnn/gpu/physics build/gpu_elementwise_test build/gpu_attention_test`. +Then compile the driver (P=/tmp/OmegaDnn/gpu/physics, N=$P/third_party/nvidia-open-580.173.02) and run the rows in +section 3: +`nice -n 19 taskset -c 8-9 cc -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc -I$P/m16 -I$P/nvrm -I$N/src/common/sdk/nvidia/inc -I$N/kernel-open/common/inc -I$N/kernel-open/nvidia-uvm -I$N/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -o omega_dnn_bench ~/handoffs/OmegaDnn/gpu-bench/omega_dnn_bench.c build/libomega_gpu.a -lpthread -lm` diff --git a/evidence/STACK7-GPU-20261026/gpu-bench/check.py b/evidence/STACK7-GPU-20261026/gpu-bench/check.py new file mode 100644 index 0000000..aa0b928 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-bench/check.py @@ -0,0 +1,60 @@ +# THROWAWAY measurement checker (lane OmegaDnn.GpuDnn, 2026-10-26), not product code. +# float64 numpy reference from the input files the Omega driver wrote; compares every saved output. +# Usage: python check.py INDIR OMEGA_OUTDIR TORCH_OUTDIR > errors.jsonl +# Per (case, arm): max_abs = max|got-ref|; max_rel = max_abs / max|ref| (normwise); +# violations = count(|got-ref| > rtol*|ref| + atol), tolerances from omega-mv tests (gpu_elementwise_test.c, +# gpu_attention_test.c header comments). The gate applies to the Omega arm; baseline errors are reported. +import glob, json, os, sys +import numpy as np + +indir, odir, tdir = sys.argv[1], sys.argv[2], sys.argv[3] +def f32(c, w): return np.fromfile(f"{indir}/{c}.{w}.bin", dtype=np.float32).astype(np.float64) + +def attn(q, k, v, nkv, causal_base=None): + # q [rows][nq][hd], k/v [ctx][nkv][hd] + rows, nq, hd = q.shape; ratio = nq // nkv; out = np.empty_like(q) + for h in range(nq): + kh, vh = k[:, h // ratio, :], v[:, h // ratio, :] + s = q[:, h, :] @ kh.T / np.sqrt(hd) + if causal_base is not None: + mask = np.arange(k.shape[0])[None, :] > (causal_base + np.arange(rows))[:, None] + s = np.where(mask, -np.inf, s) + s = np.exp(s - s.max(axis=1, keepdims=True)); s /= s.sum(axis=1, keepdims=True) + out[:, h, :] = s @ vh + return out + +REF, TOL = {}, {} +for rows in (1, 64): + c = f"rmsnorm_{rows}x2048"; x = f32(c, "x").reshape(rows, 2048); w = f32(c, "w") + REF[c] = (x / np.sqrt((x * x).mean(axis=1, keepdims=True) + np.float64(np.float32(1e-5))) * w).ravel(); TOL[c] = (1e-5, 1e-6) +c = "rope_32x128"; x = f32(c, "x").reshape(32, 128); cs, sn = f32(c, "cos"), f32(c, "sin") +REF[c] = np.concatenate((x[:, :64] * cs - x[:, 64:] * sn, x[:, :64] * sn + x[:, 64:] * cs), axis=1).ravel(); TOL[c] = (1e-6, 1e-6) +for n in (5632, 131072): + c = f"swiglu_{n}"; g, u = f32(c, "gate"), f32(c, "up") + REF[c] = g / (1.0 + np.exp(-g)) * u; TOL[c] = (1e-5, 1e-6) +for c, nq, nkv, hd, ctx in (("gqa_f32_32q8kv_hd128_ctx2048", 32, 8, 128, 2048), ("gqa_f32_32q4kv_hd64_ctx2048", 32, 4, 64, 2048)): + REF[c] = attn(f32(c, "q").reshape(1, nq, hd), f32(c, "k").reshape(ctx, nkv, hd), f32(c, "v").reshape(ctx, nkv, hd), nkv).ravel(); TOL[c] = (2e-4, 2e-5) +c = "gqa_rows_f32_32q8kv_hd128_m256" +REF[c] = attn(f32(c, "q").reshape(256, 32, 128), f32(c, "k").reshape(256, 8, 128), f32(c, "v").reshape(256, 8, 128), 8, causal_base=0).ravel(); TOL[c] = (2e-4, 2e-5) +c = "paged_bf16_32q8kv_hd128_ctx2048_bs16" +raw = np.fromfile(f"{indir}/{c}.pool.bin", dtype=np.uint16).astype(np.uint32) << 16 +pool = raw.view(np.float32).astype(np.float64).reshape(128, 2, 16, 8, 128) +ids = np.fromfile(f"{indir}/{c}.ids.bin", dtype=np.uint32) +g = pool[ids]; k = g[:, 0].reshape(2048, 8, 128); v = g[:, 1].reshape(2048, 8, 128) +qp = f32(c, "q") +if "--perturb-q" in sys.argv: qp[0] += 0.5 # input-side negative control: reference from a wrong q; omega output must be flagged +REF[c] = attn(qp.reshape(1, 32, 128), k, v, 8).ravel(); TOL[c] = (2e-4, 2e-5) + +def report(case, arm, got): + ref = REF[case]; rt, at = TOL[case] + if got.size != ref.size: + print(json.dumps({"case": case, "arm": arm, "error": f"size {got.size} != {ref.size}"})); return + d = np.abs(got.astype(np.float64) - ref) + print(json.dumps({"case": case, "arm": arm, "n": int(ref.size), "max_abs": float(d.max()), "max_rel": float(d.max() / np.abs(ref).max()), + "rtol": rt, "atol": at, "violations": int((d > rt * np.abs(ref) + at).sum()), "nonfinite": int((~np.isfinite(got)).sum())})) + +for case in REF: + p = f"{odir}/{case}.out.bin" + if os.path.exists(p): report(case, "omega", np.fromfile(p, dtype=np.float32)) + for t in sorted(glob.glob(f"{tdir}/{case}.*.out.npy")): + report(case, os.path.basename(t)[len(case) + 1:-len(".out.npy")], np.load(t).ravel()) diff --git a/evidence/STACK7-GPU-20261026/gpu-bench/gpu_run.sh b/evidence/STACK7-GPU-20261026/gpu-bench/gpu_run.sh new file mode 100755 index 0000000..9002a0d --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-bench/gpu_run.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# gpu_run.sh LABEL CMD...: BOARD start line, flock around CMD only, BOARD end line, compute-apps check. +# Output of CMD goes to stdout; summary line to stderr. +B=/home/drakestapleton/handoffs/BOARD.md +label=$1; shift +echo "$(date -u +%FT%TZ) OmegaDnn.GpuDnn: START $label 0 running (lock /tmp/aien-gb10.lock, driver 580.173.02)" >> $B +t0=$(date +%s) +flock -w 900 /tmp/aien-gb10.lock /tmp/OmegaDnn/gpu/bench/held.sh "$@" 2>/tmp/OmegaDnn/gpu/.held.$$; rc=$? +cat /tmp/OmegaDnn/gpu/.held.$$ >&2 +held=$(grep '^LOCK_HELD_S' /tmp/OmegaDnn/gpu/.held.$$ | tail -1 | cut -d' ' -f2); rm -f /tmp/OmegaDnn/gpu/.held.$$ +apps=$(nvidia-smi --query-compute-apps=pid --format=csv,noheader) +napps=$(printf '%s' "$apps" | grep -c .) +echo "$(date -u +%FT%TZ) OmegaDnn.GpuDnn: END $label lock_held_s=$held rc=$rc compute_apps_rows=$napps" >> $B +echo "GPU_RUN $label rc=$rc lock_held_s=$held compute_apps_rows=$napps apps=[$apps] date=$(date -u +%FT%TZ) load=$(cut -d' ' -f1-3 /proc/loadavg)" >&2 +exit $rc diff --git a/evidence/STACK7-GPU-20261026/gpu-bench/held.sh b/evidence/STACK7-GPU-20261026/gpu-bench/held.sh new file mode 100755 index 0000000..d6109d3 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-bench/held.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# Runs under flock: reports how long the lock was held (acquire to command exit) on stderr. +t0=$(date +%s.%N) +"$@"; rc=$? +t1=$(date +%s.%N) +echo "LOCK_HELD_S $(echo "$t1 - $t0" | bc)" >&2 +exit $rc diff --git a/evidence/STACK7-GPU-20261026/gpu-bench/omega_dnn_bench.c b/evidence/STACK7-GPU-20261026/gpu-bench/omega_dnn_bench.c new file mode 100644 index 0000000..28c7264 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-bench/omega_dnn_bench.c @@ -0,0 +1,159 @@ +/* SPDX-License-Identifier: Apache-2.0 + * omega_dnn_bench: THROWAWAY measurement driver (lane OmegaDnn.GpuDnn, 2026-10-26), not product code. + * Links omega-mv e5b32567a build/libomega_gpu.a (INTERIM: C codegen emitting SASS, not .om). + * Usage: omega_dnn_bench OUTDIR [--mutant] [--warm 10] [--reps 50] + * For every predeclared case: generate inputs with a fixed LCG, write inputs + first output to OUTDIR, + * run `warm` untimed calls then `reps` timed calls; per timed call record the API wall time (clock_gettime + * around the synchronous call: staging, launch, marker wait, copy-out) and info.elapsed_ns (submit to + * completion marker). Every timed output is compared bitwise with the first output. One JSON line per case. + * --mutant: arm the library's TEST-ONLY mutant kernel for each op (negative control), one call, no timing. */ +#include "omega_gpu_elementwise_api.h" +#include "omega_gpu_attention_api.h" +#include "omega_gpu_session.h" +#include +#include +#include +#include +#include +#include + +static uint32_t lcg(uint32_t *s) { *s = *s * 1664525u + 1013904223u; return *s; } +static float frand(uint32_t *s, float lo, float hi) { return lo + (hi - lo) * ((float)(lcg(s) >> 8) / 16777216.0f); } +static uint16_t f2bf(float f) { uint32_t u; memcpy(&u, &f, 4); uint32_t r = ((u >> 16) & 1u) + 0x7fffu; return (uint16_t)((u + r) >> 16); } +static uint64_t now_ns(void) { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return (uint64_t)t.tv_sec * 1000000000ull + (uint64_t)t.tv_nsec; } + +static const char *g_dir; +static void dump(const char *cs, const char *what, const void *p, size_t bytes) { + char path[512]; snprintf(path, sizeof path, "%s/%s.%s.bin", g_dir, cs, what); + FILE *f = fopen(path, "wb"); if (!f || fwrite(p, 1, bytes, f) != bytes) { fprintf(stderr, "write %s failed\n", path); exit(3); } fclose(f); +} + +typedef struct { + int kind; /* 0 rmsnorm 1 rope 2 swiglu 3 gqa 4 rows 5 paged */ + uint32_t a, b, c, d, e; /* shape words, meaning per kind */ + float *x, *w, *y; void *pool; uint32_t *ids; size_t out_n; +} Case; + +static int call(Case *k, float *out, uint64_t *chip_ns) { + int rc; + if (k->kind <= 2) { + OmegaGpuEwInfo info; memset(&info, 0, sizeof info); + if (k->kind == 0) rc = omega_gpu_rmsnorm_f32(k->a, k->b, k->x, k->w, 1e-5f, out, &info); + else if (k->kind == 1) rc = omega_gpu_rope_f32(k->a, k->b, k->x, k->w, k->y, out, &info); + else rc = omega_gpu_swiglu_f32(k->a, k->x, k->w, out, &info); + *chip_ns = info.elapsed_ns; return rc; + } + OmegaGpuAttnInfo info; memset(&info, 0, sizeof info); + if (k->kind == 3) rc = omega_gpu_gqa_attention_f32(k->x, k->w, k->y, k->d, k->a, k->b, k->c, out, &info); + else if (k->kind == 4) rc = omega_gpu_gqa_attention_rows_f32(k->x, k->w, k->y, 0, k->d, k->a, k->b, k->c, out, &info); + else { + /* resident pool: block_size e, one layer */ + OmegaGpuKvLayout ly; uint32_t hd = k->c, nkv = k->b, bs = k->e, nblk = (k->d + bs - 1) / bs; + ly.head_stride_bytes = (uint64_t)hd * 2; ly.token_stride_bytes = ly.head_stride_bytes * nkv; + ly.kv_plane_stride_bytes = ly.token_stride_bytes * bs; ly.layer_stride_bytes = 2 * ly.kv_plane_stride_bytes; + ly.block_stride_bytes = ly.layer_stride_bytes; ly.pool_bytes = ly.block_stride_bytes * nblk; + ly.num_blocks = nblk; ly.num_layers = 1; ly.block_size = bs; + rc = omega_gpu_paged_attention_bf16(k->x, k->pool, &ly, k->ids, nblk, k->d, 0, k->a, k->b, hd, out, &info); + if (rc == 0 && info.kv_source != OMEGA_GPU_ATTN_KV_RESIDENT) { fprintf(stderr, "paged call did not take the resident path\n"); return -99; } + } + *chip_ns = info.elapsed_ns; return rc; +} + +int main(int argc, char **argv) { + if (argc < 2) { fprintf(stderr, "usage: %s OUTDIR [--mutant] [--warm N] [--reps N]\n", argv[0]); return 2; } + g_dir = argv[1]; int mutant = 0, warm = 10, reps = 50; + for (int i = 2; i < argc; i++) { + if (!strcmp(argv[i], "--mutant")) mutant = 1; + else if (!strcmp(argv[i], "--warm") && i + 1 < argc) warm = atoi(argv[++i]); + else if (!strcmp(argv[i], "--reps") && i + 1 < argc) reps = atoi(argv[++i]); + /* POST-HOC reference-only arm (not in the frozen protocol): marker-poll spin window, omega#328 */ + else if (!strcmp(argv[i], "--spin-us") && i + 1 < argc) { + if (omega_gpu_session_set_spin_us((uint32_t)atoi(argv[++i])) != 0) { fprintf(stderr, "spin_us refused\n"); return 2; } + } + } + if (mutant) { warm = 0; reps = 0; } + /* predeclared cases (GPU.md section 2); names are parsed by the Python side */ + static const struct { const char *name; int kind; uint32_t a, b, c, d, e; } C[] = { + { "rmsnorm_1x2048", 0, 1, 2048, 0, 0, 0 }, + { "rmsnorm_64x2048", 0, 64, 2048, 0, 0, 0 }, + { "rope_32x128", 1, 32, 128, 0, 0, 0 }, + { "swiglu_5632", 2, 5632, 0, 0, 0, 0 }, + { "swiglu_131072", 2, 131072, 0, 0, 0, 0 }, + { "gqa_f32_32q8kv_hd128_ctx2048", 3, 32, 8, 128, 2048, 0 }, + { "gqa_f32_32q4kv_hd64_ctx2048", 3, 32, 4, 64, 2048, 0 }, + { "gqa_rows_f32_32q8kv_hd128_m256", 4, 32, 8, 128, 256, 0 }, + { "paged_bf16_32q8kv_hd128_ctx2048_bs16", 5, 32, 8, 128, 2048, 16 }, + }; + uint32_t seed = 0x0d1ec0deu; + for (size_t ci = 0; ci < sizeof C / sizeof C[0]; ci++) { + Case k; memset(&k, 0, sizeof k); + k.kind = C[ci].kind; k.a = C[ci].a; k.b = C[ci].b; k.c = C[ci].c; k.d = C[ci].d; k.e = C[ci].e; + const char *cs = C[ci].name; + if (k.kind == 0) { + size_t n = (size_t)k.a * k.b; k.out_n = n; + k.x = malloc(n * 4); k.w = malloc(k.b * 4); + for (size_t i = 0; i < n; i++) k.x[i] = frand(&seed, -3.0f, 3.0f); + for (size_t i = 0; i < k.b; i++) k.w[i] = frand(&seed, 0.5f, 1.5f); + dump(cs, "x", k.x, n * 4); dump(cs, "w", k.w, k.b * 4); + } else if (k.kind == 1) { + size_t n = (size_t)k.a * k.b, half = k.b / 2; k.out_n = n; + k.x = malloc(n * 4); k.w = malloc(half * 4); k.y = malloc(half * 4); + for (size_t i = 0; i < n; i++) k.x[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < half; i++) { double rot = 1234.0 / pow(1e6, (double)(2 * i) / (double)k.b); k.w[i] = (float)cos(rot); k.y[i] = (float)sin(rot); } + dump(cs, "x", k.x, n * 4); dump(cs, "cos", k.w, half * 4); dump(cs, "sin", k.y, half * 4); + } else if (k.kind == 2) { + size_t n = k.a; k.out_n = n; + k.x = malloc(n * 4); k.w = malloc(n * 4); + for (size_t i = 0; i < n; i++) { k.x[i] = frand(&seed, -3.0f, 3.0f); k.w[i] = frand(&seed, -2.0f, 2.0f); } + dump(cs, "gate", k.x, n * 4); dump(cs, "up", k.w, n * 4); + } else if (k.kind == 3 || k.kind == 4) { + size_t rows = k.kind == 3 ? 1 : k.d, ctx = k.d; + size_t nq = rows * k.a * k.c, nkv = ctx * k.b * k.c; k.out_n = nq; + k.x = malloc(nq * 4); k.w = malloc(nkv * 4); k.y = malloc(nkv * 4); + for (size_t i = 0; i < nq; i++) k.x[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < nkv; i++) { k.w[i] = frand(&seed, -1.0f, 1.0f); k.y[i] = frand(&seed, -1.0f, 1.0f); } + dump(cs, "q", k.x, nq * 4); dump(cs, "k", k.w, nkv * 4); dump(cs, "v", k.y, nkv * 4); + } else { + uint32_t bs = k.e, nblk = (k.d + bs - 1) / bs; size_t nq = (size_t)k.a * k.c; k.out_n = nq; + size_t pool_bytes = (size_t)nblk * 2 * bs * k.b * k.c * 2; + if (omega_gpu_attention_pool_alloc(pool_bytes, &k.pool) != 0) { fprintf(stderr, "pool_alloc failed: %s\n", omega_gpu_attention_last_error()); return 4; } + uint16_t *pw = k.pool; + for (size_t i = 0; i < pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + k.ids = malloc(nblk * 4); + for (uint32_t b = 0; b < nblk; b++) k.ids[b] = (b * 37u + 5u) % nblk; /* scattered, a permutation (37 odd, nblk power of two) */ + k.x = malloc(nq * 4); + for (size_t i = 0; i < nq; i++) k.x[i] = frand(&seed, -1.0f, 1.0f); + dump(cs, "q", k.x, nq * 4); dump(cs, "pool", k.pool, pool_bytes); dump(cs, "ids", k.ids, nblk * 4); + } + if (mutant) { + if (k.kind == 0) omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_RMSNORM); + else if (k.kind == 1) omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_ROPE); + else if (k.kind == 2) omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_SWIGLU); + else omega_gpu_attention_test_set_mutant(OMEGA_GPU_ATTN_MUTANT_KV_HEAD); + } + float *first = malloc(k.out_n * 4), *got = malloc(k.out_n * 4); + uint64_t chip; uint64_t t0 = now_ns(); + int rc = call(&k, first, &chip); + uint64_t first_ns = now_ns() - t0; + if (mutant) { omega_gpu_elementwise_test_set_mutant(0); omega_gpu_attention_test_set_mutant(OMEGA_GPU_ATTN_MUTANT_NONE); } + dump(cs, "out", first, k.out_n * 4); + int bad_rc = rc != 0, diff = 0; + for (int i = 0; i < warm && !bad_rc; i++) { if (call(&k, got, &chip) != 0) bad_rc = 1; } + uint64_t *wall = calloc((size_t)reps + 1, 8), *chp = calloc((size_t)reps + 1, 8); + for (int i = 0; i < reps && !bad_rc; i++) { + uint64_t s = now_ns(); int r = call(&k, got, &chp[i]); wall[i] = now_ns() - s; + if (r != 0) bad_rc = 1; + if (memcmp(got, first, k.out_n * 4) != 0) diff++; + } + printf("{\"case\":\"%s\",\"rc\":%d,\"mutant\":%d,\"first_call_ns\":%llu,\"warm\":%d,\"reps\":%d,\"timed_outputs_differing_from_first\":%d,\"wall_ns\":[", + cs, rc, mutant, (unsigned long long)first_ns, warm, reps, diff); + for (int i = 0; i < reps; i++) printf("%s%llu", i ? "," : "", (unsigned long long)wall[i]); + printf("],\"chip_ns\":["); + for (int i = 0; i < reps; i++) printf("%s%llu", i ? "," : "", (unsigned long long)chp[i]); + printf("]}\n"); fflush(stdout); + if (rc != 0) fprintf(stderr, "%s rc=%d err=%s\n", cs, rc, k.kind <= 2 ? omega_gpu_elementwise_last_error() : omega_gpu_attention_last_error()); + free(first); free(got); free(wall); free(chp); free(k.x); free(k.w); free(k.y); free(k.ids); + if (k.pool) omega_gpu_attention_pool_free(); + } + return 0; +} diff --git a/evidence/STACK7-GPU-20261026/gpu-bench/protocol.sha256 b/evidence/STACK7-GPU-20261026/gpu-bench/protocol.sha256 new file mode 100644 index 0000000..3c72513 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-bench/protocol.sha256 @@ -0,0 +1,13 @@ +5f8bdad9d5995e7a403ddcbc4b169be2b0468fa2e56b59372e6d8e34e31ee368 /home/drakestapleton/handoffs/OmegaDnn/GPU.md +b9812d707c2455e72ab4a3425854bc1cdeef425f3f2d6ffbfb29e4fc0ee684ee /tmp/OmegaDnn/gpu/bench/check.py +0e0df1c63cbe860d56de1a5a40cc0e46eecc4b852ab678630224452d62f607fa /tmp/OmegaDnn/gpu/bench/run_paired.py +65f3ffe97095a0b233ee39c376a607779c217154f109c880450701491ed2fda0 /tmp/OmegaDnn/gpu/bench/torch_arm.py +4c2a93601c510692ffd9ae45ccc32e9393f30880b7e8890548287eb67d2378ec /tmp/OmegaDnn/gpu/bench/omega_dnn_bench.c +a5b4628670aca36d41cc3c0edadda57db4120177234b8ea2963645e89c5723bd /tmp/OmegaDnn/gpu/bench/gpu_run.sh +f614d82f5f98657c1027715ff975617edafb191fa5f1910d0136db9a390650b8 /tmp/OmegaDnn/gpu/bench/held.sh +72b779f26db037a5a0877dd773dac31cb1ad23e611a7e073b088f50f588493eb /tmp/OmegaDnn/gpu/bench/omega_dnn_bench +886646bd99a319e9c919f1db03d471442d98791784be85e5f223ba346b8e40b3 /tmp/OmegaDnn/gpu/omega-mv/build/libomega_gpu.a +a40a91da23e6770cdc87c22b1ded983d2e6064c728ea7b9bc43c24a4f2e81746 /tmp/OmegaDnn/gpu/omega-mv/build/gpu_elementwise_test +ab7964a4ba5c09abfeb661f0557416d22c9bd892fd8449f9f7e09af7bfb9a68f /tmp/OmegaDnn/gpu/omega-mv/build/gpu_attention_test +90a414cd449f0a2944b9b980667805077b7b15e66daf4b99dadc12eb341bc010 /tmp/OmegaDnn/gpu/bench/omega_dnn_bench.c +bab3464d14857a2d1e895955dae6978f2e6a586c8ff45f88e44c353289b73868 /tmp/OmegaDnn/gpu/bench/omega_dnn_bench_spin diff --git a/evidence/STACK7-GPU-20261026/gpu-bench/run_paired.py b/evidence/STACK7-GPU-20261026/gpu-bench/run_paired.py new file mode 100644 index 0000000..dae2794 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-bench/run_paired.py @@ -0,0 +1,29 @@ +# THROWAWAY paired A/B runner (lane OmegaDnn.GpuDnn, 2026-10-26), not product code. +# Protocol frozen in /home/drakestapleton/handoffs/OmegaDnn/GPU.md section 2 before the first timed run. +# Usage: python run_paired.py RUNDIR [ROUNDS=5] [WARMUP_ROUNDS=1] +# Each round runs both arms, one process each, in an order from random.Random(20261026); every arm process +# holds /tmp/aien-gb10.lock only for its own lifetime (flock around the GPU command alone). After every arm +# process: loadavg and `nvidia-smi --query-compute-apps=pid` are recorded. +import json, os, random, subprocess, sys, time +rundir = sys.argv[1]; rounds = int(sys.argv[2]) if len(sys.argv) > 2 else 5; wr = int(sys.argv[3]) if len(sys.argv) > 3 else 1 +B = "/tmp/OmegaDnn/gpu/bench"; PY = "/home/drakestapleton/.venv/bin/python" +os.makedirs(rundir, exist_ok=True) +rng = random.Random(20261026) +log = open(f"{rundir}/rounds.jsonl", "a") +for r in range(-wr, rounds): + order = ["omega", "torch"]; rng.shuffle(order) + for arm in order: + d = f"{rundir}/r{r}/{arm}"; os.makedirs(d, exist_ok=True) + if arm == "omega": cmd = [f"{B}/omega_dnn_bench", d] + else: cmd = [PY, f"{B}/torch_arm.py", f"{rundir}/inputs", d] + load0 = open("/proc/loadavg").read().split()[:3] + t0 = time.time() + p = subprocess.run(["flock", "-w", "900", "/tmp/aien-gb10.lock", f"{B}/held.sh", "taskset", "-c", "8-9", *cmd], capture_output=True, text=True) + t1 = time.time() + open(f"{d}/stdout.jsonl", "w").write(p.stdout); open(f"{d}/stderr.txt", "w").write(p.stderr) + held = [l for l in p.stderr.splitlines() if l.startswith("LOCK_HELD_S ")] + apps = subprocess.run(["nvidia-smi", "--query-compute-apps=pid", "--format=csv,noheader"], capture_output=True, text=True).stdout.strip() + rec = {"round": r, "arm": arm, "rc": p.returncode, "wall_s": round(t1 - t0, 3), "lock_held_s": held[-1].split()[1] if held else None, + "load_before": load0, "load_after": open("/proc/loadavg").read().split()[:3], "compute_apps_after": apps} + log.write(json.dumps(rec) + "\n"); log.flush(); print(json.dumps(rec), flush=True) + if p.returncode != 0: sys.exit(f"arm {arm} round {r} failed rc={p.returncode}") diff --git a/evidence/STACK7-GPU-20261026/gpu-bench/torch_arm.py b/evidence/STACK7-GPU-20261026/gpu-bench/torch_arm.py new file mode 100644 index 0000000..6016876 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-bench/torch_arm.py @@ -0,0 +1,112 @@ +# THROWAWAY measurement driver (lane OmegaDnn.GpuDnn, 2026-10-26), not product code. +# Baseline arm: PyTorch CUDA (+cuDNN where the op has a cuDNN path) on the same inputs the Omega driver wrote. +# Usage: python torch_arm.py INDIR OUTDIR [--warm 10] [--reps 50] +# Per case and backend: `warm` untimed calls, then `reps` timed calls; each timed call records +# dev_ns = torch.cuda.Event elapsed between records placed right before and after the op (device-resident inputs) +# wall_ns = perf_counter_ns around host->device copy of the per-call inputs, the op, device->host copy (synchronous) +# First output of each backend is saved as OUTDIR/..out.npy. One JSON line per (case, backend). +import json, sys, time +import numpy as np +import torch +import torch.nn.functional as F +from torch.nn.attention import sdpa_kernel, SDPBackend + +indir, outdir = sys.argv[1], sys.argv[2] +warm = int(sys.argv[sys.argv.index("--warm") + 1]) if "--warm" in sys.argv else 10 +reps = int(sys.argv[sys.argv.index("--reps") + 1]) if "--reps" in sys.argv else 50 +dev = torch.device("cuda") + +def f32(case, what, shape): + return torch.from_numpy(np.fromfile(f"{indir}/{case}.{what}.bin", dtype=np.float32).reshape(shape)) + +def bf16_pool(case): + raw = np.fromfile(f"{indir}/{case}.pool.bin", dtype=np.uint16) + return torch.from_numpy(raw.astype(np.int32)).to(torch.int32).mul(65536).view(torch.float32) + +def bench(case, backend, host_inputs, fn): + """host_inputs: CPU tensors copied per call for wall_ns; fn(dev_inputs) -> device output.""" + dins = [t.to(dev) for t in host_inputs] + try: + out = fn(dins); torch.cuda.synchronize() + except Exception as e: # backend refused this dtype/shape: record, do not substitute + print(json.dumps({"case": case, "backend": backend, "error": f"{type(e).__name__}: {str(e)[:300]}"}), flush=True) + return + np.save(f"{outdir}/{case}.{backend}.out.npy", out.float().cpu().numpy()) + for _ in range(warm): + fn(dins) + torch.cuda.synchronize() + s, e = torch.cuda.Event(enable_timing=True), torch.cuda.Event(enable_timing=True) + dev_ns, wall_ns = [], [] + for _ in range(reps): + s.record(); fn(dins); e.record(); e.synchronize() + dev_ns.append(int(round(s.elapsed_time(e) * 1e6))) + for _ in range(reps): + t0 = time.perf_counter_ns() + d2 = [t.to(dev) for t in host_inputs] + o = fn(d2).cpu() + wall_ns.append(time.perf_counter_ns() - t0) + print(json.dumps({"case": case, "backend": backend, "warm": warm, "reps": reps, "dev_ns": dev_ns, "wall_ns": wall_ns}), flush=True) + +def sdpa(backend, q, k, v, causal=False): + with sdpa_kernel([backend]): + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) + +BACKENDS = [("cudnn", SDPBackend.CUDNN_ATTENTION), ("flash", SDPBackend.FLASH_ATTENTION), + ("efficient", SDPBackend.EFFICIENT_ATTENTION), ("math", SDPBackend.MATH)] + +for rows, dim in ((1, 2048), (64, 2048)): + c = f"rmsnorm_{rows}x{dim}" + x, w = f32(c, "x", (rows, dim)), f32(c, "w", (dim,)) + wd = w.to(dev) + bench(c, "torch_rms_norm", [x], lambda d: F.rms_norm(d[0], (dim,), wd, 1e-5)) + +c = "rope_32x128" +x, cs, sn = f32(c, "x", (32, 128)), f32(c, "cos", (64,)), f32(c, "sin", (64,)) +csd, snd = cs.to(dev), sn.to(dev) +def rope(d): + x0, x1 = d[0][:, :64], d[0][:, 64:] + return torch.cat((x0 * csd - x1 * snd, x0 * snd + x1 * csd), dim=1) +bench(c, "torch_ops", [x], rope) + +for n in (5632, 131072): + c = f"swiglu_{n}" + g, u = f32(c, "gate", (n,)), f32(c, "up", (n,)) + bench(c, "torch_silu_mul", [g, u], lambda d: F.silu(d[0]) * d[1]) + +for c, nq, nkv, hd, ctx in (("gqa_f32_32q8kv_hd128_ctx2048", 32, 8, 128, 2048), ("gqa_f32_32q4kv_hd64_ctx2048", 32, 4, 64, 2048)): + q = f32(c, "q", (1, nq, 1, hd)) + k = f32(c, "k", (ctx, nkv, hd)).permute(1, 0, 2).unsqueeze(0).contiguous() + v = f32(c, "v", (ctx, nkv, hd)).permute(1, 0, 2).unsqueeze(0).contiguous() + for name, be in BACKENDS: + bench(c, f"sdpa_{name}_f32", [q, k, v], lambda d, be=be: sdpa(be, d[0], d[1], d[2]).reshape(nq, hd)) + for name, be in BACKENDS[:2]: # reference-only: the cuDNN/flash paths need half precision + bench(c, f"sdpa_{name}_bf16_REFONLY", [q, k, v], lambda d, be=be: sdpa(be, d[0].bfloat16(), d[1].bfloat16(), d[2].bfloat16()).reshape(nq, hd)) + +c, nq, nkv, hd, m = "gqa_rows_f32_32q8kv_hd128_m256", 32, 8, 128, 256 +q = f32(c, "q", (m, nq, hd)).permute(1, 0, 2).unsqueeze(0).contiguous() +k = f32(c, "k", (m, nkv, hd)).permute(1, 0, 2).unsqueeze(0).contiguous() +v = f32(c, "v", (m, nkv, hd)).permute(1, 0, 2).unsqueeze(0).contiguous() +for name, be in BACKENDS: + bench(c, f"sdpa_{name}_f32", [q, k, v], lambda d, be=be: sdpa(be, d[0], d[1], d[2], True)[0].permute(1, 0, 2).reshape(m, nq * hd)) +for name, be in BACKENDS[:2]: + bench(c, f"sdpa_{name}_bf16_REFONLY", [q, k, v], lambda d, be=be: sdpa(be, d[0].bfloat16(), d[1].bfloat16(), d[2].bfloat16(), True)[0].permute(1, 0, 2).reshape(m, nq * hd)) + +# paged bf16 KV: pool [blk][plane k/v][slot 16][kv 8][hd 128] (one layer), ids[i] = physical block of logical block i +c, nq, nkv, hd, ctx, bs = "paged_bf16_32q8kv_hd128_ctx2048_bs16", 32, 8, 128, 2048, 16 +nblk = ctx // bs +pool = bf16_pool(c).reshape(nblk, 2, bs, nkv, hd).to(torch.bfloat16) # exact: values are bf16 bit patterns +ids = torch.from_numpy(np.fromfile(f"{indir}/{c}.ids.bin", dtype=np.uint32).astype(np.int64)) +q = f32(c, "q", (1, nq, 1, hd)) +poold, idsd = pool.to(dev), ids.to(dev) +def gather(): + g = poold.index_select(0, idsd) # [nblk][2][bs][nkv][hd] in logical order + kk = g[:, 0].reshape(ctx, nkv, hd).permute(1, 0, 2).unsqueeze(0) + vv = g[:, 1].reshape(ctx, nkv, hd).permute(1, 0, 2).unsqueeze(0) + return kk.contiguous(), vv.contiguous() +kc, vc = gather() +kcf, vcf = kc.float(), vc.float() +for name, be in BACKENDS: + # KV pre-gathered contiguous (gather not timed: favours the baseline); q rounded to bf16 for the bf16 kernels + bench(c, f"sdpa_{name}_bf16_pregathered", [q], lambda d, be=be: sdpa(be, d[0].bfloat16(), kc, vc).reshape(nq, hd)) + bench(c, f"gather+sdpa_{name}_bf16", [q], lambda d, be=be: sdpa(be, d[0].bfloat16(), *gather()).reshape(nq, hd)) +bench(c, "sdpa_efficient_f32q_f32kv_pregathered", [q], lambda d: sdpa(SDPBackend.EFFICIENT_ATTENTION, d[0], kcf, vcf).reshape(nq, hd)) diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/corr/check.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/corr/check.jsonl new file mode 100644 index 0000000..9cba49a --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/corr/check.jsonl @@ -0,0 +1,35 @@ +{"case": "rmsnorm_1x2048", "arm": "omega", "n": 2048, "max_abs": 1.729619456547482e-07, "max_rel": 6.859906584147514e-08, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "rmsnorm_1x2048", "arm": "torch_rms_norm", "n": 2048, "max_abs": 1.729619456547482e-07, "max_rel": 6.859906584147514e-08, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "rmsnorm_64x2048", "arm": "omega", "n": 131072, "max_abs": 3.945226589863182e-07, "max_rel": 1.5089006310446218e-07, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "rmsnorm_64x2048", "arm": "torch_rms_norm", "n": 131072, "max_abs": 4.4399872045630673e-07, "max_rel": 1.6981279382048352e-07, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "rope_32x128", "arm": "omega", "n": 4096, "max_abs": 9.849130577777032e-08, "max_rel": 7.254408033014421e-08, "rtol": 1e-06, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "rope_32x128", "arm": "torch_ops", "n": 4096, "max_abs": 9.849130577777032e-08, "max_rel": 7.254408033014421e-08, "rtol": 1e-06, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "swiglu_5632", "arm": "omega", "n": 5632, "max_abs": 5.538928160575551e-07, "max_rel": 9.728845227442306e-08, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "swiglu_5632", "arm": "torch_silu_mul", "n": 5632, "max_abs": 6.14813535193548e-07, "max_rel": 1.0798886633353899e-07, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "swiglu_131072", "arm": "omega", "n": 131072, "max_abs": 7.632354259712315e-07, "max_rel": 1.3377214584862993e-07, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "swiglu_131072", "arm": "torch_silu_mul", "n": 131072, "max_abs": 6.728901613684002e-07, "max_rel": 1.1793734638579872e-07, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "arm": "omega", "n": 4096, "max_abs": 1.0789449723935807e-07, "max_rel": 1.3965545350437207e-06, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "arm": "sdpa_cudnn_bf16_REFONLY", "n": 4096, "max_abs": 0.00028812647273140923, "max_rel": 0.003729424043438775, "rtol": 0.0002, "atol": 2e-05, "violations": 2056, "nonfinite": 0} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "arm": "sdpa_efficient_f32", "n": 4096, "max_abs": 4.440668254640512e-08, "max_rel": 5.747869954743753e-07, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "arm": "sdpa_flash_bf16_REFONLY", "n": 4096, "max_abs": 0.00025985382931921486, "max_rel": 0.0033634712897280803, "rtol": 0.0002, "atol": 2e-05, "violations": 2107, "nonfinite": 0} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "arm": "sdpa_math_f32", "n": 4096, "max_abs": 2.4491879271632683e-08, "max_rel": 3.170156582931349e-07, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "arm": "omega", "n": 2048, "max_abs": 6.390801764871723e-08, "max_rel": 1.6081100389551725e-06, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "arm": "sdpa_cudnn_bf16_REFONLY", "n": 2048, "max_abs": 0.0002513638880028855, "max_rel": 0.006325040372087921, "rtol": 0.0002, "atol": 2e-05, "violations": 1064, "nonfinite": 0} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "arm": "sdpa_efficient_f32", "n": 2048, "max_abs": 2.543746451671991e-08, "max_rel": 6.400799705563132e-07, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "arm": "sdpa_flash_bf16_REFONLY", "n": 2048, "max_abs": 0.00023056329054392533, "max_rel": 0.005801637349733484, "rtol": 0.0002, "atol": 2e-05, "violations": 1109, "nonfinite": 0} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "arm": "sdpa_math_f32", "n": 2048, "max_abs": 1.4727836323766286e-08, "max_rel": 3.7059483795164465e-07, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "arm": "omega", "n": 1048576, "max_abs": 1.44076562402784e-07, "max_rel": 1.4422614233765968e-07, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "arm": "sdpa_cudnn_bf16_REFONLY", "n": 1048576, "max_abs": 0.004535717036397435, "max_rel": 0.004540426006736567, "rtol": 0.0002, "atol": 2e-05, "violations": 892559, "nonfinite": 0} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "arm": "sdpa_efficient_f32", "n": 1048576, "max_abs": 2.0842151204902848e-07, "max_rel": 2.0863789475332863e-07, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "arm": "sdpa_flash_bf16_REFONLY", "n": 1048576, "max_abs": 0.004535717036397435, "max_rel": 0.004540426006736567, "rtol": 0.0002, "atol": 2e-05, "violations": 891987, "nonfinite": 0} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "arm": "sdpa_math_f32", "n": 1048576, "max_abs": 1.4660649361175615e-07, "max_rel": 1.4675870011502829e-07, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "omega", "n": 4096, "max_abs": 1.6714209134793823e-08, "max_rel": 2.112079648947214e-07, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "gather+sdpa_cudnn_bf16", "n": 4096, "max_abs": 0.0002159568757498509, "max_rel": 0.002728924346004413, "rtol": 0.0002, "atol": 2e-05, "violations": 1816, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "gather+sdpa_efficient_bf16", "n": 4096, "max_abs": 0.0002723243742501491, "max_rel": 0.003441208400155151, "rtol": 0.0002, "atol": 2e-05, "violations": 1869, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "gather+sdpa_flash_bf16", "n": 4096, "max_abs": 0.0002159568757498509, "max_rel": 0.002728924346004413, "rtol": 0.0002, "atol": 2e-05, "violations": 1863, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "gather+sdpa_math_bf16", "n": 4096, "max_abs": 0.0002159568757498509, "max_rel": 0.002728924346004413, "rtol": 0.0002, "atol": 2e-05, "violations": 825, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "sdpa_cudnn_bf16_pregathered", "n": 4096, "max_abs": 0.0002159568757498509, "max_rel": 0.002728924346004413, "rtol": 0.0002, "atol": 2e-05, "violations": 1816, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "sdpa_efficient_bf16_pregathered", "n": 4096, "max_abs": 0.0002723243742501491, "max_rel": 0.003441208400155151, "rtol": 0.0002, "atol": 2e-05, "violations": 1869, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "sdpa_efficient_f32q_f32kv_pregathered", "n": 4096, "max_abs": 4.07645340955165e-08, "max_rel": 5.151182575711937e-07, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "sdpa_flash_bf16_pregathered", "n": 4096, "max_abs": 0.0002159568757498509, "max_rel": 0.002728924346004413, "rtol": 0.0002, "atol": 2e-05, "violations": 1863, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "sdpa_math_bf16_pregathered", "n": 4096, "max_abs": 0.0002159568757498509, "max_rel": 0.002728924346004413, "rtol": 0.0002, "atol": 2e-05, "violations": 825, "nonfinite": 0} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/corr/omega.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/corr/omega.jsonl new file mode 100644 index 0000000..dc995bb --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/corr/omega.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":0,"first_call_ns":137135565,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[105233,104913,105505,105169,105313,105073,104945,105105,105185,105968,105169,105233,100545,105617,105041,103569,113745,106689,105537,105697,105553,106257,105680,105809,105553,206930,109905,105857,105713,105761,105841,105409,105505,105681,105328,105281,105665,105233,106209,105377,107537,106129,105809,105617,105777,105601,105248,106065,106449,105489],"chip_ns":[103041,102705,103281,102993,103009,102801,102673,102913,102944,103744,102769,103025,98241,103297,102865,99937,107313,104337,103169,103473,103089,104033,103392,103649,103105,204034,106577,103537,103457,103393,103697,103105,103185,103312,103056,102897,103473,102913,104017,103089,105377,103777,103377,103233,103537,103361,103024,103777,104081,103249]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":0,"first_call_ns":869976,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[198626,198690,200210,198833,200514,198738,199922,200530,199601,199361,206610,201506,202034,202210,207746,201217,203025,199970,199666,199970,200066,199041,198545,206834,197986,201682,208066,199826,198289,202210,199570,202562,198178,199409,199121,204722,204338,204338,210642,202402,167297,209122,201202,199970,197954,200481,199953,200002,199042,208738],"chip_ns":[104464,104145,105089,104625,104769,104449,104289,104433,104609,104529,103937,104593,104624,105313,104049,104817,103713,104737,104432,104033,103985,104561,103889,104673,103648,104017,104209,104177,104209,104241,104385,104977,103825,104753,104017,104193,103841,103713,104689,104065,66081,104257,103617,104001,103585,104305,103825,104033,103568,103777]} +{"case":"rope_32x128","rc":0,"mutant":0,"first_call_ns":472804,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[107777,106305,106577,106817,106401,106305,106241,106417,106289,106273,107185,78336,106593,106241,106481,106337,106225,106257,106161,106129,107313,106593,107185,106561,106784,106801,106257,106625,106289,106177,79121,106241,106353,106417,106401,106608,106529,106785,106545,106465,107345,106209,106529,106257,106257,106257,106337,106273,106145,79472],"chip_ns":[103569,102561,102513,102881,102641,102561,102481,102641,102449,102513,103329,74560,102721,102561,102817,102561,102433,102417,102417,102481,103041,102721,103057,102449,102448,102576,102433,102593,102385,102449,75265,102609,102449,102513,102449,102416,102449,102497,102705,102529,103377,102433,102609,102465,102433,102433,102401,102481,102385,75776]} +{"case":"swiglu_5632","rc":0,"mutant":0,"first_call_ns":301826,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[107953,107745,107425,107201,107200,107665,107505,107457,107489,107441,107169,107233,107377,107473,59664,107345,107377,108353,107217,107761,108353,107985,107217,107441,107521,107329,107377,107409,107425,107185,108400,107617,107649,72689,112593,107953,107793,107953,107841,107537,109345,108417,108625,107697,107745,107472,109809,107681,107329,107377],"chip_ns":[102641,102481,102529,102417,102416,102496,102577,102593,102577,102577,102417,102497,102449,102449,54704,102545,102609,103409,102433,102689,102593,102609,102513,102465,102561,102577,102673,102449,102561,102497,103568,102801,102449,66721,104945,103041,102833,102657,102833,102433,102705,103457,102545,102641,102721,102608,104801,102705,102513,102561]} +{"case":"swiglu_131072","rc":0,"mutant":0,"first_call_ns":705558,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[214642,213394,182258,213298,209138,208562,209409,212385,210946,211666,211074,212290,212098,210370,216242,217026,213714,211842,211378,210194,213490,213153,211201,210049,210546,213970,215234,213634,213954,241330,214034,212354,211666,212610,215026,213266,212242,223714,184530,213506,211249,211521,210914,218850,220754,216610,220290,186994,219378,217314],"chip_ns":[103777,103713,75280,103937,103649,103617,103809,103665,104081,104049,103825,103585,105201,104288,103809,103841,103681,104545,103873,103457,104017,104465,103857,104081,103649,103569,104353,103745,104049,103649,104129,103441,103809,103681,104080,104144,104209,103601,66145,103873,104369,104177,103649,104257,103905,104433,103809,74193,104673,103905]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":0,"first_call_ns":15209300,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1340619,1168779,1268347,1129801,1336107,1426957,1247099,1174538,1216714,1186635,1032537,1028345,1255435,1073177,1290267,1186235,1198170,1148154,1368940,1138298,1577038,1593950,1300587,1345292,1423180,1302156,1461964,1788496,1867328,1228891,1210699,1298027,1234123,1202602,1110378,1232859,1249051,1251579,1203050,1247755,1196538,1214507,1235787,1099433,1090250,1083305,1197803,1191002,1196139,1239707],"chip_ns":[409347,511765,408820,435683,409955,612054,505125,512149,409331,510357,409060,408388,506805,408291,510164,510613,510980,510148,520836,488500,510341,538389,416884,516309,515348,410900,519188,927608,734230,473956,509989,522437,513077,510708,408804,512501,410644,494741,467940,510821,409939,510980,475140,422307,408308,409363,510661,511540,511893,483253]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":0,"first_call_ns":839639,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[516981,527700,527173,623765,651766,538581,536116,594742,638149,629590,630437,633766,634693,529429,645381,518917,555157,480164,521109,482020,549380,628278,645574,631493,526229,686262,680294,535588,544661,546261,639109,646806,541765,528724,544421,537029,539877,536516,554181,687270,645334,619301,556181,641654,694166,553653,552196,663798,639030,556485],"chip_ns":[408404,408595,409572,510228,511077,409012,408723,487285,510692,510357,510212,509973,510868,408660,516868,409876,407988,373827,407972,375108,407603,510756,509061,513188,409412,558533,515829,409427,414500,414004,513972,515188,412532,414419,413043,413556,412260,412707,417124,540517,432308,429284,411044,505909,506661,407491,406691,511748,487636,407348]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":0,"first_call_ns":4234533,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[3121707,2986442,3083515,2985802,3031690,2787881,2922394,2939322,2872745,3353694,2775688,2741736,2803481,2735864,2918201,2692200,2512998,2850217,2697576,2636791,2643127,2620599,2680104,2533622,2666584,2639719,2687239,2630295,2561510,2685832,2596551,2608215,2623527,2873865,2674695,2703848,2734088,2694056,2792424,2604471,2642631,2772393,2672375,2682936,2661159,2653511,2576055,2678695,2638087,2704871],"chip_ns":[2025619,1949264,2040786,1927345,1970994,1768207,1863200,1867231,1664957,1938897,1288619,1306556,1282219,1290299,1455596,1279964,1180314,1381724,1268652,1267291,1278908,1225611,1284826,1153499,1283803,1250554,1301836,1281387,1177674,1275370,1235675,1287548,1285532,1486574,1288796,1384669,1327196,1284875,1385594,1275690,1281100,1387324,1284859,1374300,1285772,1257740,1225356,1330747,1233466,1285242]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":0,"first_call_ns":572965,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[271411,274562,270706,168642,277730,274915,280818,277699,272754,276498,174962,176817,172338,273602,171042,170641,275395,169153,169042,273602,168817,285331,170161,170146,271426,277011,272850,169490,271682,168802,2201331,260626,227298,255826,247234,236850,239203,243106,230066,240594,233266,235698,234882,235618,233938,245986,235986,232194,223666,241954],"chip_ns":[204786,204594,205026,103073,204594,204658,204770,206162,204674,204514,103184,102881,103120,204802,103169,103361,204274,102865,103201,204338,103041,204401,102977,103121,204818,204450,204658,103009,204962,103089,2078866,128657,110097,117697,116145,111457,108993,109665,108257,108849,109105,108177,109153,109025,109281,108401,108960,108241,107937,108496]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/corr/torch.err b/evidence/STACK7-GPU-20261026/gpu-runs/corr/torch.err new file mode 100644 index 0000000..9b26f2f --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/corr/torch.err @@ -0,0 +1,16 @@ +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory efficient kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1240.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory Efficient attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:600.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1242.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:588.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1244.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Expected query, key and value to all be of dtype: {Half, BFloat16}. Got Query dtype: float, Key dtype: float, and Value dtype: float instead. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:110.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:922.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +LOCK_HELD_S 4.648857781 +GPU_RUN torch_arm correctness rc=0 lock_held_s=4.648857781 compute_apps_rows=0 apps=[] date=2026-10-27T01:24:31Z load=31.66 22.13 17.38 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/corr/torch.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/corr/torch.jsonl new file mode 100644 index 0000000..1f72780 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/corr/torch.jsonl @@ -0,0 +1,32 @@ +{"case": "rmsnorm_1x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [39808, 13632, 11488, 11264, 11360, 11200, 11392, 10560, 10304, 11648, 10496, 10592, 10432, 11744, 10592, 10368, 10272, 9696, 9952, 10560, 11776, 10368, 10400, 10208, 10464, 9888, 10496, 11488, 10528, 10304, 9024, 10112, 10272, 9088, 10112, 10112, 10464, 10976, 10304, 10400, 10560, 10368, 10720, 11136, 10464, 10432, 10496, 10176, 10336, 10624], "wall_ns": [51601, 23008, 20800, 19040, 19441, 19872, 19552, 20592, 20256, 19521, 18624, 19680, 18512, 19360, 18688, 19617, 18064, 19392, 18384, 19056, 19040, 18945, 17824, 18176, 19040, 20320, 18000, 19985, 17744, 18016, 19472, 20512, 18432, 19200, 18225, 19952, 18544, 20208, 18704, 18416, 19217, 18880, 18720, 20512, 18448, 20257, 18784, 18704, 18368, 19520]} +{"case": "rmsnorm_64x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [11488, 10624, 10688, 10656, 9504, 9376, 10176, 10464, 10112, 10208, 10624, 10240, 10400, 10240, 11328, 10432, 10208, 10144, 11072, 11968, 11072, 11040, 11360, 10560, 10240, 10240, 11200, 10240, 10720, 10368, 10912, 10560, 10144, 11520, 10784, 11488, 10272, 10560, 10304, 10528, 11360, 10368, 10080, 10656, 10624, 10048, 10144, 11072, 10304, 10944], "wall_ns": [331651, 47168, 38785, 39376, 37536, 37761, 38176, 37616, 37617, 38704, 37888, 37937, 38016, 37472, 38305, 37728, 38016, 38833, 38160, 38016, 38561, 38192, 38224, 38241, 37680, 37632, 37617, 37920, 37936, 37857, 37888, 37104, 37729, 37776, 37824, 36881, 38800, 36608, 37905, 37792, 37952, 37985, 37488, 38336, 37489, 37760, 37856, 37889, 37968, 37968]} +{"case": "rope_32x128", "backend": "torch_ops", "warm": 10, "reps": 50, "dev_ns": [52128, 36416, 37824, 36704, 36896, 37440, 36672, 35776, 36576, 36096, 35872, 37376, 36032, 35712, 35680, 35040, 35168, 35616, 35136, 35488, 35200, 36576, 35904, 40384, 36288, 35328, 35584, 36608, 36192, 36480, 36928, 35584, 35936, 36704, 35680, 35136, 36480, 36864, 36352, 36896, 36320, 35232, 35808, 36000, 35456, 36384, 37408, 35872, 35264, 35744], "wall_ns": [73073, 45696, 42720, 43793, 43072, 43841, 43056, 44992, 45057, 45856, 45265, 46288, 44016, 43761, 44416, 43776, 45889, 42912, 46481, 44688, 45328, 45409, 44448, 44945, 44496, 44816, 46689, 45312, 45297, 44192, 46352, 44721, 44320, 45857, 43728, 44288, 46433, 47152, 46257, 44736, 46800, 44433, 44992, 46945, 47024, 45408, 44593, 44784, 45137, 43872]} +{"case": "swiglu_5632", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [14880, 12448, 12800, 13024, 12032, 11968, 12896, 11872, 11840, 11840, 12992, 13536, 13024, 13088, 12960, 12480, 11808, 12864, 12640, 14912, 12416, 12352, 12768, 12544, 12320, 12864, 12160, 12576, 11744, 12928, 12512, 12128, 12768, 12128, 11904, 13152, 11680, 11744, 11776, 11712, 12288, 11936, 12864, 12064, 13792, 13056, 12352, 12320, 11712, 12288], "wall_ns": [59232, 32193, 31296, 31520, 31312, 30305, 30560, 30800, 30080, 29137, 31008, 31808, 33585, 29216, 32496, 29824, 29649, 28512, 30112, 29344, 29761, 30304, 31024, 31376, 29585, 30288, 32672, 31217, 35248, 29312, 29840, 29569, 31392, 31888, 32417, 29856, 31744, 31664, 33329, 30448, 33312, 27728, 31521, 29104, 30496, 29713, 31536, 34192, 32976, 31473]} +{"case": "swiglu_131072", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [13120, 12384, 11712, 13120, 12096, 12224, 12192, 11968, 12896, 13152, 12480, 12032, 11904, 12160, 12768, 12320, 12992, 13024, 12800, 12352, 11776, 12032, 12128, 11648, 12000, 11712, 12800, 19168, 12160, 12064, 12416, 11616, 11776, 11840, 11936, 11840, 11680, 12128, 11968, 12096, 12800, 12000, 10848, 12640, 11776, 11872, 11680, 12704, 11712, 11712], "wall_ns": [61728, 105489, 56817, 55968, 55761, 56672, 56129, 56048, 54913, 56144, 55089, 55360, 55681, 55680, 55697, 55552, 55409, 56080, 56433, 56400, 56113, 56560, 56177, 56080, 56065, 55616, 64161, 56864, 55633, 56640, 56705, 55568, 55745, 57056, 57121, 56192, 56113, 56992, 57985, 56928, 57073, 58144, 56673, 58080, 56865, 58128, 57537, 57760, 56945, 57360]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [237824, 234880, 235936, 236800, 235904, 237120, 235456, 236544, 236512, 2363456, 260480, 238528, 237440, 238304, 240352, 238368, 235712, 238016, 236864, 235488, 234304, 238528, 237568, 235456, 234752, 237312, 234592, 235520, 234144, 235104, 236768, 236096, 236512, 236512, 237952, 236320, 232896, 237792, 244608, 234688, 234336, 236384, 234560, 236768, 234592, 235552, 233760, 233600, 233216, 233600], "wall_ns": [1786240, 1619294, 550597, 542244, 548517, 543445, 543749, 541492, 561109, 552645, 547781, 542709, 544788, 543653, 545893, 545349, 546820, 547397, 559317, 702902, 795847, 547589, 732374, 573845, 657702, 557669, 546677, 543652, 546869, 548757, 545877, 543669, 541764, 542789, 544725, 542453, 544116, 543413, 543653, 541588, 547685, 544277, 556053, 552117, 561813, 541556, 542693, 550917, 547685, 569317]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [1962816, 1017120, 1089824, 1009408, 1029184, 995104, 1006400, 1016000, 990400, 993856, 1047552, 1000032, 1150784, 1147360, 1019392, 986848, 1002112, 1030976, 1189536, 1015456, 1062496, 1062528, 1012544, 995584, 1000992, 996896, 994592, 983776, 995968, 1014560, 1043040, 1126912, 1182720, 993024, 976832, 969184, 980544, 1142816, 1028288, 1018720, 1053248, 985760, 976736, 984768, 982592, 980704, 983872, 985312, 983616, 1041216], "wall_ns": [1706559, 1304876, 1301131, 1516717, 1412989, 1286859, 1291099, 1285195, 1288124, 1290475, 1280827, 1289163, 1299244, 1699534, 1318555, 1308363, 1325372, 1293787, 1307564, 1316667, 1290011, 1289004, 1308795, 1301131, 1307660, 1303739, 1292475, 1297212, 1302491, 1301276, 1299403, 1290907, 1284091, 1298748, 1286011, 1306459, 1295308, 1283915, 1295259, 1291403, 1292700, 1303147, 1311595, 1295244, 1300091, 1283867, 1275851, 1286028, 1284891, 1296251]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [96224, 91616, 94272, 94720, 87200, 85824, 86880, 86432, 83264, 92736, 94048, 99136, 94848, 97152, 96064, 95712, 97088, 96160, 94816, 96544, 94112, 91424, 95616, 97984, 101184, 97472, 95136, 97120, 94784, 95168, 91936, 88896, 92448, 94336, 95200, 93984, 83904, 86112, 95040, 96384, 96256, 91424, 93952, 96064, 93664, 89760, 92064, 89984, 85888, 85216], "wall_ns": [423572, 438180, 420387, 420948, 646230, 438900, 433651, 452756, 460228, 461796, 453652, 441300, 438404, 424516, 449764, 451156, 469172, 459876, 444148, 441987, 427908, 440564, 443348, 444260, 439492, 441699, 429124, 424820, 428980, 427939, 424740, 435028, 438180, 427043, 423604, 423860, 3716256, 435492, 421396, 420227, 435156, 427188, 422740, 421683, 435332, 441204, 448036, 446308, 429892, 426963]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [116640, 101984, 105760, 99392, 95104, 101344, 97408, 92736, 114624, 131040, 174880, 99040, 101536, 151360, 136160, 93152, 95392, 92800, 97088, 93312, 89888, 92832, 90272, 92832, 97248, 90368, 94560, 98336, 91072, 90080, 92576, 101120, 90688, 98816, 104384, 173344, 149408, 103872, 97280, 98848, 99584, 91104, 95136, 97280, 97568, 92736, 109376, 92128, 107328, 138752], "wall_ns": [472228, 453316, 456452, 435940, 445396, 453444, 431075, 445284, 440532, 445060, 434004, 428996, 430019, 426948, 431044, 429044, 439155, 430804, 445988, 446180, 435076, 427715, 436276, 436132, 442996, 438436, 436996, 429075, 427924, 424788, 433044, 425123, 428788, 426724, 430147, 427636, 428884, 436340, 432132, 433891, 434260, 428724, 428820, 433987, 432244, 421828, 432020, 428915, 426164, 433748]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [174048, 171968, 171168, 172736, 170688, 171808, 169888, 171776, 171840, 170368, 169920, 171904, 172160, 170112, 173952, 172960, 171744, 171008, 170048, 170880, 172096, 172576, 170048, 171744, 170976, 171712, 171648, 171968, 175936, 171808, 171744, 172320, 170816, 172512, 171520, 170496, 171200, 172288, 170752, 171584, 171552, 169472, 170944, 171840, 173728, 205600, 172128, 177312, 216640, 181760], "wall_ns": [386723, 267651, 267330, 267026, 342883, 273091, 266642, 294403, 265186, 265042, 266371, 264978, 265106, 264195, 267074, 266210, 267171, 267474, 265954, 263955, 263058, 266674, 266851, 266210, 266946, 266722, 264611, 268050, 268354, 264195, 266114, 265906, 264115, 264866, 266274, 265699, 266594, 265282, 268115, 266194, 265170, 265651, 266082, 263186, 266291, 265186, 267058, 266291, 267986, 265874]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [475872, 559968, 677088, 544864, 605216, 515232, 521088, 518560, 531136, 491904, 525984, 691104, 474752, 473376, 463936, 495904, 559776, 516544, 482080, 465728, 482048, 460256, 463968, 493248, 472384, 482976, 473504, 527584, 529760, 516704, 525568, 519200, 503200, 482528, 555264, 522688, 459008, 492064, 556736, 585696, 517504, 526944, 595360, 609216, 637248, 460992, 503072, 516736, 518976, 506368], "wall_ns": [661478, 776662, 616214, 623685, 583173, 673590, 553989, 582309, 560085, 562965, 557733, 561045, 554084, 624390, 600965, 560965, 590149, 569845, 606197, 642934, 634790, 614421, 575541, 639014, 599829, 578069, 631781, 614534, 615045, 614277, 569317, 646854, 568181, 593509, 611862, 619045, 609221, 608902, 574645, 646069, 616262, 554421, 587989, 580181, 561173, 563844, 568661, 562837, 608438, 565877]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [42688, 36800, 35296, 36928, 36928, 38176, 36064, 35456, 36416, 35936, 35904, 36096, 36512, 35136, 36064, 35872, 36224, 35840, 36064, 35616, 36480, 36032, 36224, 35488, 35264, 36640, 34208, 35712, 34880, 35872, 35328, 37152, 34784, 36160, 36160, 35680, 35232, 36192, 35968, 37440, 36384, 35360, 35680, 36416, 35968, 35520, 35296, 35744, 36160, 35872], "wall_ns": [163378, 134049, 130529, 132289, 130801, 129185, 156770, 130945, 129089, 128481, 128177, 129905, 128674, 126305, 126737, 126737, 128017, 130641, 131953, 127025, 129441, 127090, 130497, 129345, 130049, 127217, 131745, 128465, 127714, 128641, 128737, 129841, 128801, 131617, 130193, 128049, 127842, 128785, 129697, 126929, 129009, 127121, 129201, 129793, 126530, 130353, 130289, 127857, 127873, 129873]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [44736, 39872, 39232, 37088, 38272, 36032, 37056, 38016, 37888, 37664, 39936, 39456, 37248, 36800, 36832, 42048, 36704, 38336, 36736, 39392, 36128, 38432, 37472, 36704, 38816, 37472, 36864, 36736, 36032, 39104, 37536, 37152, 38976, 36480, 36640, 36640, 36352, 40448, 38336, 37248, 35488, 36640, 36832, 36992, 36960, 39136, 37792, 38112, 38240, 37664], "wall_ns": [158545, 133617, 130913, 131473, 128178, 127201, 130081, 127825, 128705, 129137, 130769, 129409, 129874, 129601, 130961, 129345, 129969, 128929, 3356926, 151969, 131537, 131249, 130801, 129361, 130850, 131713, 129409, 128497, 128817, 130401, 128865, 133874, 128993, 130849, 131713, 129025, 130497, 129217, 129234, 130065, 129633, 129473, 132033, 132305, 129553, 129489, 129922, 131937, 129761, 128737]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [93504, 91680, 93408, 89920, 92672, 90816, 91008, 90976, 91040, 92000, 92320, 90624, 91296, 90944, 90880, 90976, 91040, 91072, 90304, 90976, 90176, 90016, 92000, 89920, 93152, 90016, 91616, 91520, 90912, 89728, 91008, 90272, 89792, 92704, 91040, 91072, 90880, 90592, 90912, 91168, 90912, 91072, 91104, 91168, 92352, 90944, 90112, 90816, 89984, 91040], "wall_ns": [6860076, 531685, 322083, 295122, 295795, 301666, 296003, 298259, 295842, 314291, 298883, 291762, 343427, 290499, 292370, 289971, 291362, 288947, 290194, 289763, 299043, 290642, 288915, 290450, 298195, 289746, 299347, 300643, 292226, 289171, 291266, 289827, 292594, 292179, 5792274, 345539, 332851, 289539, 318627, 313442, 4964108, 318706, 328963, 304931, 297763, 297282, 6061893, 313651, 12949857, 294034]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [430080, 425792, 423232, 424928, 424832, 422208, 424736, 428736, 430080, 424256, 429760, 425408, 425376, 423392, 424544, 422208, 428512, 422304, 425280, 424736, 422368, 426080, 430336, 427136, 426272, 428096, 428288, 425248, 429408, 428544, 430048, 432384, 430848, 425440, 422432, 424448, 424256, 423552, 421248, 428832, 427840, 422272, 422656, 423456, 428704, 422432, 426688, 428608, 428352, 422336], "wall_ns": [661782, 633334, 642229, 641686, 631077, 634406, 636565, 632678, 637637, 714823, 917464, 717158, 642854, 832279, 646501, 786743, 643798, 640790, 3191099, 767479, 635702, 631493, 640582, 632901, 639510, 634741, 634118, 640229, 639078, 651078, 647717, 630022, 639621, 634262, 634902, 642789, 633686, 636997, 637526, 623685, 631622, 626517, 635270, 632469, 641814, 635093, 636630, 632566, 642037, 624374]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [53696, 56064, 53408, 54944, 53824, 52992, 50912, 52096, 52288, 51328, 53152, 52064, 51744, 52032, 52224, 52352, 51232, 52096, 51520, 49312, 49504, 51872, 51424, 51936, 52160, 50688, 51648, 51968, 52288, 51776, 50976, 52416, 50336, 51872, 51680, 52096, 50656, 50176, 51136, 50880, 49408, 51840, 50944, 51616, 51392, 51488, 51040, 52768, 50944, 52096], "wall_ns": [6729499, 402404, 234610, 221986, 226962, 220306, 224770, 225618, 221666, 227937, 221970, 221298, 222002, 221202, 224498, 220882, 225954, 222194, 222802, 221506, 224898, 222386, 220898, 221346, 220898, 224146, 223026, 220161, 221010, 223234, 222050, 220546, 224018, 221282, 220706, 220450, 219826, 221266, 218978, 218130, 219905, 219634, 219954, 220370, 220770, 217202, 220914, 219602, 221522, 223394]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [57472, 52672, 52448, 52064, 52032, 52224, 52224, 51232, 52224, 53088, 51552, 52160, 51168, 51424, 52224, 51328, 51264, 51136, 52032, 49408, 49920, 52288, 52224, 51328, 51424, 54432, 52288, 52256, 50496, 52128, 51072, 51200, 51328, 50432, 51808, 55040, 51072, 51360, 50720, 51072, 51424, 50976, 51360, 51328, 50496, 51040, 51296, 50688, 50688, 52032], "wall_ns": [247122, 224978, 222722, 220226, 222354, 218850, 219762, 217186, 217793, 216162, 217842, 217250, 219922, 218226, 224962, 217538, 218722, 219074, 218065, 217058, 217794, 220530, 221682, 221282, 219026, 225250, 220002, 222354, 218610, 218434, 220786, 219506, 219761, 218018, 218802, 220674, 218818, 217074, 219954, 229650, 218722, 219058, 220690, 218482, 218993, 215954, 218978, 219122, 219058, 218210]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_cudnn_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [35616, 29760, 31872, 30400, 30368, 29984, 30112, 30784, 30976, 30144, 30432, 30336, 30304, 28416, 29824, 28960, 30080, 31040, 29952, 28736, 41952, 29600, 29728, 29696, 29440, 28128, 29696, 30848, 29856, 29664, 30272, 28896, 30240, 30592, 28832, 29728, 29088, 30624, 29152, 29504, 28288, 30368, 28896, 30464, 30400, 28896, 28256, 29824, 29600, 29472], "wall_ns": [50625, 43760, 43793, 42864, 40960, 42609, 39200, 42592, 40913, 40096, 42513, 39936, 40688, 40993, 48976, 41376, 41489, 40816, 38912, 40865, 41936, 50129, 41248, 40448, 49137, 41904, 41920, 40881, 41840, 49233, 42944, 40688, 41857, 50064, 40896, 40865, 42960, 40881, 40896, 40800, 42145, 42608, 49024, 51137, 51040, 40833, 48848, 50289, 39664, 40464]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_cudnn_bf16", "warm": 10, "reps": 50, "dev_ns": [197888, 193632, 195584, 190656, 195424, 197440, 197568, 194880, 193216, 198432, 194848, 198464, 196608, 197152, 199584, 201984, 197504, 195392, 197216, 195392, 194432, 197504, 196192, 197504, 198400, 196864, 196544, 196640, 202528, 196736, 198528, 197216, 195360, 194304, 196128, 195264, 194464, 197760, 192704, 193536, 196480, 195168, 195264, 194304, 194336, 194624, 198912, 197472, 198432, 197664], "wall_ns": [220114, 210082, 210850, 209794, 207777, 207618, 209842, 206786, 210066, 213634, 207297, 205106, 206866, 207762, 204882, 214177, 210482, 207250, 207106, 213138, 206642, 206993, 206690, 208514, 208050, 209506, 210769, 204674, 211858, 206738, 215138, 212674, 205777, 209762, 209346, 211570, 210738, 207826, 208817, 206834, 215778, 207346, 205890, 214994, 207793, 207650, 215778, 208914, 208674, 208802]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_flash_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [37216, 35872, 35168, 35424, 34976, 33376, 35840, 37024, 34464, 35648, 45056, 71264, 36512, 37312, 35616, 37504, 44352, 35456, 38944, 38240, 35744, 61120, 51808, 68896, 37856, 44224, 46752, 51808, 47232, 64960, 34368, 35328, 35776, 37120, 34848, 36736, 35712, 35040, 34432, 34816, 33856, 37344, 35008, 34528, 36896, 34528, 34208, 33952, 35264, 34048], "wall_ns": [51009, 52224, 56784, 95601, 93953, 84897, 57376, 53409, 53344, 55777, 52544, 49777, 53184, 52177, 65792, 65137, 59664, 51089, 82096, 52497, 52240, 52977, 50272, 51121, 50144, 50881, 51152, 53265, 51104, 52144, 51185, 50176, 50001, 51200, 51345, 51920, 51185, 51232, 50912, 52289, 51008, 51985, 50208, 50097, 50224, 58193, 53200, 49968, 50065, 51200]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_flash_bf16", "warm": 10, "reps": 50, "dev_ns": [202624, 207008, 201504, 202752, 202336, 203456, 200928, 204416, 202528, 203360, 204608, 203488, 200448, 204704, 204768, 201056, 202048, 203616, 203232, 203616, 202560, 199392, 203904, 201824, 200064, 204288, 203744, 204736, 201536, 204512, 204576, 203488, 202592, 201088, 203360, 202624, 208928, 204544, 202528, 203584, 203904, 204960, 203648, 205344, 202944, 230048, 202720, 206528, 204608, 269760], "wall_ns": [228482, 219778, 242786, 387267, 264371, 336242, 220786, 223298, 212722, 215858, 223074, 209042, 218802, 213090, 223858, 230610, 398275, 218786, 219938, 220098, 219026, 216706, 272754, 275266, 217986, 213234, 220450, 218130, 215938, 212946, 219154, 215874, 218018, 219617, 216082, 213986, 213794, 221010, 231506, 227170, 223186, 222978, 223970, 220098, 227298, 222002, 211986, 218113, 214786, 213794]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [111232, 110080, 107968, 108608, 107744, 107360, 105504, 105344, 105728, 107488, 105728, 106304, 128960, 107328, 107968, 106208, 107136, 107200, 104704, 106368, 107424, 105536, 105440, 107392, 106048, 107360, 106176, 107104, 107328, 105600, 105760, 106112, 107616, 106912, 105312, 105216, 107584, 106560, 107360, 105600, 105056, 109344, 107456, 106656, 104960, 106496, 106208, 106336, 106176, 106592], "wall_ns": [141602, 118305, 118225, 119585, 118801, 124657, 127137, 125713, 124817, 117697, 118641, 124689, 116769, 117761, 118641, 125041, 117537, 116673, 124802, 116753, 123793, 116721, 115585, 118721, 125025, 119601, 116849, 123681, 124849, 115729, 126833, 121617, 116769, 118593, 117809, 116481, 124961, 117697, 123794, 116801, 115457, 117457, 117601, 115553, 115729, 117793, 116785, 126465, 116737, 117729]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_efficient_bf16", "warm": 10, "reps": 50, "dev_ns": [275392, 276992, 269536, 268320, 270176, 297664, 313600, 308800, 276224, 279040, 278304, 270976, 281408, 297856, 292128, 290016, 297664, 290496, 289632, 274944, 280768, 275168, 429984, 345888, 276224, 286880, 424000, 328512, 347232, 284224, 276416, 274176, 274048, 274816, 352864, 351168, 275072, 280384, 284960, 310272, 318048, 296608, 303904, 302912, 291392, 283520, 277312, 1213600, 298240, 305280], "wall_ns": [354563, 328115, 290259, 284690, 282563, 290498, 282483, 284610, 282627, 304290, 287763, 287586, 296883, 288435, 286674, 287667, 282450, 281394, 290659, 281634, 283555, 285634, 294851, 284530, 284611, 287314, 288579, 280626, 300979, 306003, 283570, 283651, 306978, 295139, 289858, 314387, 354979, 309219, 305075, 430963, 329379, 357811, 295107, 292675, 298802, 298819, 286098, 501317, 330723, 3343613]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_math_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [1276992, 1332384, 1278688, 1230080, 1150464, 1220864, 1248768, 1248288, 1148256, 1293696, 1164416, 1140160, 1202464, 1228256, 1269600, 1248768, 1130464, 1560256, 1178976, 1195584, 1147200, 1279936, 1199168, 1256800, 1340672, 1252224, 1280288, 1152384, 1116992, 1155040, 1257408, 1248288, 1253728, 1106848, 1106336, 1109120, 1103968, 1127936, 1159296, 1152256, 1334272, 1209248, 1130720, 1175168, 1207008, 1223264, 1220000, 1123168, 1125024, 1125824], "wall_ns": [1163210, 1330188, 1165082, 1120282, 1161098, 1159882, 1140714, 1129306, 1149802, 1206634, 1166331, 1237258, 1306540, 1236634, 1276060, 1195578, 1133626, 1241387, 1260459, 1230731, 1148826, 1144825, 1245147, 1197643, 1150330, 1181258, 1234491, 1267627, 1269531, 1326044, 1182314, 1154106, 1140506, 1155482, 1146858, 1156826, 1197099, 4038291, 1418236, 1292684, 1204202, 1235307, 1269771, 1252123, 1355324, 1143706, 1199978, 1143434, 1153066, 1213259]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_math_bf16", "warm": 10, "reps": 50, "dev_ns": [1272896, 1281792, 1288160, 1299520, 1270720, 1248288, 1280768, 1257184, 1253632, 1288992, 1276160, 1296960, 1292768, 1369280, 1376288, 1326432, 1328960, 1305696, 1397728, 1296384, 1334432, 1437920, 1362816, 1312992, 1310048, 1424736, 1289280, 1304576, 1253152, 1396480, 1375040, 1398144, 1479168, 1477632, 1284544, 1272096, 1300512, 1412960, 1493664, 1454304, 1405504, 1727360, 1464832, 1302752, 1451840, 1305184, 1265600, 1517472, 1368256, 1257760], "wall_ns": [1335004, 4180244, 1647262, 1370188, 1299580, 1432380, 1447645, 1318427, 1329932, 1467053, 1292235, 1378220, 1404668, 1419869, 1328219, 1331068, 1443901, 1377452, 1296283, 1385452, 1292059, 1276667, 1296412, 1350491, 1418093, 1427468, 1453053, 1487229, 1567150, 1640654, 1470125, 1355644, 1387468, 1354860, 1391804, 1336971, 1357932, 1625902, 1323724, 1316587, 1358044, 1431629, 1374988, 1450044, 1402797, 1299963, 1302395, 1308556, 1291147, 1316860]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_f32q_f32kv_pregathered", "warm": 10, "reps": 50, "dev_ns": [236416, 237024, 236128, 236160, 239456, 236416, 237184, 236032, 238880, 236544, 235776, 235616, 236416, 236288, 238656, 235520, 236608, 234720, 237760, 235008, 237600, 236288, 235872, 238752, 234944, 269504, 238688, 236384, 235744, 236448, 237344, 237632, 237632, 238848, 236256, 236992, 236576, 236416, 236224, 237376, 237152, 235552, 236640, 238272, 244672, 235872, 236672, 238368, 236992, 237376], "wall_ns": [273506, 249842, 250498, 261011, 284594, 295827, 331603, 320130, 256067, 249554, 248722, 307251, 285538, 247762, 275683, 276146, 246626, 247506, 255091, 254914, 255954, 255858, 256163, 255842, 248674, 246354, 254130, 254627, 248898, 255874, 255410, 256515, 255810, 246642, 249842, 255666, 248050, 247587, 249042, 248610, 255954, 258642, 247875, 248594, 248098, 249634, 248802, 255731, 256082, 256882]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention.json b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention.json new file mode 100644 index 0000000..2f849e7 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ATTENTION_V1","tolerances":{"rel":2e-4,"abs":2e-5,"large_scores_rel":1e-3,"large_scores_abs":1e-4},"cases":[{"case":"gqa_f32_tinyllama_32q4kv_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":216610,"call_ns":129357544,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2048,"kv_bytes_naive":2048,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00189431,"pass":true,"chip_elapsed_ns":104497,"call_ns":240194,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":34816,"kv_bytes_naive":34816,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00189409,"pass":true,"chip_elapsed_ns":105153,"call_ns":322051,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0028582,"pass":true,"chip_elapsed_ns":419028,"call_ns":1483245,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4194304,"kv_bytes_naive":4194304,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=2041) NO_RESCALE:CAUGHT(rc=OK,bad=1959) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048)"},{"case":"gqa_f32_tinyllama_32q4kv_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00174821,"pass":true,"chip_elapsed_ns":102481,"call_ns":207378,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":133120,"kv_bytes_naive":133120,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00197914,"pass":true,"chip_elapsed_ns":103825,"call_ns":108705,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00177573,"pass":true,"chip_elapsed_ns":103169,"call_ns":107729,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":264192,"kv_bytes_naive":264192,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00259576,"pass":true,"chip_elapsed_ns":262515,"call_ns":274179,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":614400,"kv_bytes_naive":614400,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00247545,"pass":true,"chip_elapsed_ns":311955,"call_ns":362355,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2048000,"kv_bytes_naive":2048000,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":97552,"call_ns":288818,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096,"kv_bytes_naive":4096,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00174276,"pass":true,"chip_elapsed_ns":102977,"call_ns":106049,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":69632,"kv_bytes_naive":69632,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048)"},{"case":"gqa_f32_llama32_1b_32q8kv_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00161378,"pass":true,"chip_elapsed_ns":105521,"call_ns":226722,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1048576,"kv_bytes_naive":1048576,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0029454,"pass":true,"chip_elapsed_ns":518613,"call_ns":2091491,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":8388608,"kv_bytes_naive":8388608,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=2045) NO_RESCALE:CAUGHT(rc=OK,bad=1904) Q_ROW:CAUGHT(rc=OK,bad=2042) OUT_ROW:CAUGHT(rc=OK,bad=2042)"},{"case":"gqa_f32_llama32_1b_32q8kv_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0014332,"pass":true,"chip_elapsed_ns":106097,"call_ns":213554,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":266240,"kv_bytes_naive":266240,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00186415,"pass":true,"chip_elapsed_ns":104049,"call_ns":116385,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00185519,"pass":true,"chip_elapsed_ns":103537,"call_ns":112177,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":528384,"kv_bytes_naive":528384,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00162705,"pass":true,"chip_elapsed_ns":104993,"call_ns":132177,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1228800,"kv_bytes_naive":1228800,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00330327,"pass":true,"chip_elapsed_ns":283650,"call_ns":409267,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096000,"kv_bytes_naive":4096000,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_tinyllama_32q4kv_base0_rows1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103841,"call_ns":328131,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2048,"kv_bytes_naive":2048,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_tinyllama_32q4kv_base17_rows5","n":10240,"rc":"OK","violations":0,"worst_scaled_err":0.00298047,"pass":true,"chip_elapsed_ns":104209,"call_ns":380675,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":45056,"kv_bytes_naive":225280,"kv_blocks_unique":1,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_tinyllama_32q4kv_base300_rows40","n":81920,"rc":"OK","violations":0,"worst_scaled_err":0.00332929,"pass":true,"chip_elapsed_ns":1220219,"call_ns":1672830,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":696320,"kv_bytes_naive":27852800,"kv_blocks_unique":1,"kv_blocks_logical":40,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=81807) NO_RESCALE:CAUGHT(rc=OK,bad=64191) Q_ROW:CAUGHT(rc=OK,bad=81812) OUT_ROW:CAUGHT(rc=OK,bad=81812)"},{"case":"gqa_rows_f32_llama32_1b_32q8kv_base0_rows1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103985,"call_ns":212594,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096,"kv_bytes_naive":4096,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_llama32_1b_32q8kv_base17_rows5","n":10240,"rc":"OK","violations":0,"worst_scaled_err":0.00177684,"pass":true,"chip_elapsed_ns":103233,"call_ns":113665,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":90112,"kv_bytes_naive":450560,"kv_blocks_unique":1,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_llama32_1b_32q8kv_base300_rows40","n":81920,"rc":"OK","violations":0,"worst_scaled_err":0.00325614,"pass":true,"chip_elapsed_ns":1046729,"call_ns":1160618,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":1392640,"kv_bytes_naive":55705600,"kv_blocks_unique":1,"kv_blocks_logical":40,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=81806) NO_RESCALE:CAUGHT(rc=OK,bad=65973) Q_ROW:CAUGHT(rc=OK,bad=81824) OUT_ROW:CAUGHT(rc=OK,bad=81824)"},{"case":"gqa_f32_large_scores_32q4kv_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0830785,"pass":true,"chip_elapsed_ns":227122,"call_ns":421715,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"NO_MAX:CAUGHT(rc=OK,bad=2048)"},{"case":"gqa_f32_mha_16q16kv_ctx300","n":1024,"rc":"OK","violations":0,"worst_scaled_err":0.00184,"pass":true,"chip_elapsed_ns":108417,"call_ns":391140,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2457600,"kv_bytes_naive":2457600,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":3,"mutants_caught":3,"mutant_note":"Q_ROW:CAUGHT(rc=OK,bad=1024) OUT_ROW:CAUGHT(rc=OK,bad=1020) KV_HEAD:CAUGHT(rc=OK,bad=1023)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":105393,"call_ns":213762,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":16384,"kv_bytes_naive":16384,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00158694,"pass":true,"chip_elapsed_ns":104080,"call_ns":198898,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":32768,"kv_bytes_naive":32768,"kv_blocks_unique":2,"kv_blocks_logical":2,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2047)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00106953,"pass":true,"chip_elapsed_ns":104353,"call_ns":217378,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":16,"kv_blocks_logical":16,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.000545881,"pass":true,"chip_elapsed_ns":216194,"call_ns":579638,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2097152,"kv_bytes_naive":2097152,"kv_blocks_unique":128,"kv_blocks_logical":128,"mutants_run":5,"mutants_caught":5,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2047) SLOT:CAUGHT(rc=OK,bad=2038) NO_RESCALE:CAUGHT(rc=OK,bad=1901) Q_ROW:CAUGHT(rc=OK,bad=2046) OUT_ROW:CAUGHT(rc=OK,bad=2046)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00144367,"pass":true,"chip_elapsed_ns":104577,"call_ns":225906,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":81920,"kv_bytes_naive":81920,"kv_blocks_unique":5,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00159999,"pass":true,"chip_elapsed_ns":104385,"call_ns":112433,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":131072,"kv_bytes_naive":131072,"kv_blocks_unique":8,"kv_blocks_logical":8,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00170812,"pass":true,"chip_elapsed_ns":104369,"call_ns":112273,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":147456,"kv_bytes_naive":147456,"kv_blocks_unique":9,"kv_blocks_logical":9,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00140672,"pass":true,"chip_elapsed_ns":108688,"call_ns":257075,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":311296,"kv_bytes_naive":311296,"kv_blocks_unique":19,"kv_blocks_logical":19,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00143935,"pass":true,"chip_elapsed_ns":228306,"call_ns":423188,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":163840,"kv_bytes_naive":1032192,"kv_blocks_unique":10,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":105921,"call_ns":250354,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":32768,"kv_bytes_naive":32768,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00205197,"pass":true,"chip_elapsed_ns":103569,"call_ns":200449,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":65536,"kv_blocks_unique":2,"kv_blocks_logical":2,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2046) SLOT:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00105953,"pass":true,"chip_elapsed_ns":187889,"call_ns":329603,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":16,"kv_blocks_logical":16,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00055855,"pass":true,"chip_elapsed_ns":220690,"call_ns":680566,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4194304,"kv_bytes_naive":4194304,"kv_blocks_unique":128,"kv_blocks_logical":128,"mutants_run":5,"mutants_caught":5,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2044) NO_RESCALE:CAUGHT(rc=OK,bad=1963) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00171737,"pass":true,"chip_elapsed_ns":105361,"call_ns":225266,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":163840,"kv_bytes_naive":163840,"kv_blocks_unique":5,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00153626,"pass":true,"chip_elapsed_ns":105025,"call_ns":114945,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":8,"kv_blocks_logical":8,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00162582,"pass":true,"chip_elapsed_ns":105457,"call_ns":115777,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":294912,"kv_bytes_naive":294912,"kv_blocks_unique":9,"kv_blocks_logical":9,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00144548,"pass":true,"chip_elapsed_ns":106577,"call_ns":259235,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":622592,"kv_bytes_naive":622592,"kv_blocks_unique":19,"kv_blocks_logical":19,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00094646,"pass":true,"chip_elapsed_ns":209665,"call_ns":465780,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":327680,"kv_bytes_naive":2064384,"kv_blocks_unique":10,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split1_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0028454,"pass":true,"chip_elapsed_ns":209202,"call_ns":473460,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split2_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00202911,"pass":true,"chip_elapsed_ns":103873,"call_ns":181570,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2041)"},{"case":"paged_bf16_split4_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00111551,"pass":true,"chip_elapsed_ns":104689,"call_ns":262690,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split8_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.000737182,"pass":true,"chip_elapsed_ns":105633,"call_ns":277378,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split16_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.000577315,"pass":true,"chip_elapsed_ns":213890,"call_ns":415092,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split1_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0018292,"pass":true,"chip_elapsed_ns":113553,"call_ns":214337,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split2_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":105297,"call_ns":117665,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split4_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":104112,"call_ns":115617,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split8_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":116033,"call_ns":140209,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split16_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":107777,"call_ns":153105,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_batch_3seq_32q8kv_ctx40_0_100","n":6144,"rc":"OK","violations":0,"worst_scaled_err":0.00173417,"pass":true,"chip_elapsed_ns":207346,"call_ns":222178,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":229376,"kv_bytes_naive":229376,"kv_blocks_unique":7,"kv_blocks_logical":7,"mutants_run":4,"mutants_caught":4,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4095) SLOT:CAUGHT(rc=OK,bad=4095) Q_ROW:CAUGHT(rc=OK,bad=4092) OUT_ROW:CAUGHT(rc=OK,bad=4092)"},{"case":"paged_bf16_shared_prefix_4seq_8q2kv_10pre","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00136352,"pass":true,"chip_elapsed_ns":104369,"call_ns":216801,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":155648,"kv_bytes_naive":401408,"kv_blocks_unique":19,"kv_blocks_logical":49,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2046)"},{"case":"paged_bf16_shared_prefix_4seq_32q8kv_10pre","n":8192,"rc":"OK","violations":0,"worst_scaled_err":0.00205105,"pass":true,"chip_elapsed_ns":210930,"call_ns":474196,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":950272,"kv_bytes_naive":1605632,"kv_blocks_unique":29,"kv_blocks_logical":49,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=8190) SLOT:CAUGHT(rc=OK,bad=8186)"}],"mutant_count":6,"mutants":{"NO_MAX":{"run":1,"caught":1},"KV_HEAD":{"run":12,"caught":12},"SLOT":{"run":12,"caught":12},"NO_RESCALE":{"run":6,"caught":6},"Q_ROW":{"run":8,"caught":8},"OUT_ROW":{"run":8,"caught":8}},"device_opens":1,"checks":219,"failed":0,"verdict":"OMEGA_GPU_ATTENTION_PASS"} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention.log b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention.log new file mode 100644 index 0000000..735bed5 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention.log @@ -0,0 +1,65 @@ +PASS gqa_f32_tinyllama_32q4kv_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=216610 call_ns=129357544 calls=1 unwritten=0 kv_staged=2048/2048 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00189431 chip_ns=104497 call_ns=240194 calls=1 unwritten=0 kv_staged=34816/34816 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00189409 chip_ns=105153 call_ns=322051 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.0028582 chip_ns=419028 call_ns=1483245 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=2041) NO_RESCALE:CAUGHT(rc=OK,bad=1959) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_tinyllama_32q4kv_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00174821 chip_ns=102481 call_ns=207378 calls=1 unwritten=0 kv_staged=133120/133120 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00197914 chip_ns=103825 call_ns=108705 calls=1 unwritten=0 kv_staged=262144/262144 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00177573 chip_ns=103169 call_ns=107729 calls=1 unwritten=0 kv_staged=264192/264192 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00259576 chip_ns=262515 call_ns=274179 calls=1 unwritten=0 kv_staged=614400/614400 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00247545 chip_ns=311955 call_ns=362355 calls=1 unwritten=0 kv_staged=2048000/2048000 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=97552 call_ns=288818 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00174276 chip_ns=102977 call_ns=106049 calls=1 unwritten=0 kv_staged=69632/69632 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_llama32_1b_32q8kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00161378 chip_ns=105521 call_ns=226722 calls=1 unwritten=0 kv_staged=1048576/1048576 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.0029454 chip_ns=518613 call_ns=2091491 calls=1 unwritten=0 kv_staged=8388608/8388608 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=2045) NO_RESCALE:CAUGHT(rc=OK,bad=1904) Q_ROW:CAUGHT(rc=OK,bad=2042) OUT_ROW:CAUGHT(rc=OK,bad=2042) +PASS gqa_f32_llama32_1b_32q8kv_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.0014332 chip_ns=106097 call_ns=213554 calls=1 unwritten=0 kv_staged=266240/266240 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00186415 chip_ns=104049 call_ns=116385 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00185519 chip_ns=103537 call_ns=112177 calls=1 unwritten=0 kv_staged=528384/528384 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00162705 chip_ns=104993 call_ns=132177 calls=1 unwritten=0 kv_staged=1228800/1228800 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00330327 chip_ns=283650 call_ns=409267 calls=1 unwritten=0 kv_staged=4096000/4096000 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base0_rows1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=103841 call_ns=328131 calls=1 unwritten=0 kv_staged=2048/2048 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base17_rows5 n=10240 rc=OK violations=0 worst_scaled_err=0.00298047 chip_ns=104209 call_ns=380675 calls=1 unwritten=0 kv_staged=45056/225280 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base300_rows40 n=81920 rc=OK violations=0 worst_scaled_err=0.00332929 chip_ns=1220219 call_ns=1672830 calls=2 unwritten=0 kv_staged=696320/27852800 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=81807) NO_RESCALE:CAUGHT(rc=OK,bad=64191) Q_ROW:CAUGHT(rc=OK,bad=81812) OUT_ROW:CAUGHT(rc=OK,bad=81812) +PASS gqa_rows_f32_llama32_1b_32q8kv_base0_rows1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=103985 call_ns=212594 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_llama32_1b_32q8kv_base17_rows5 n=10240 rc=OK violations=0 worst_scaled_err=0.00177684 chip_ns=103233 call_ns=113665 calls=1 unwritten=0 kv_staged=90112/450560 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_llama32_1b_32q8kv_base300_rows40 n=81920 rc=OK violations=0 worst_scaled_err=0.00325614 chip_ns=1046729 call_ns=1160618 calls=2 unwritten=0 kv_staged=1392640/55705600 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=81806) NO_RESCALE:CAUGHT(rc=OK,bad=65973) Q_ROW:CAUGHT(rc=OK,bad=81824) OUT_ROW:CAUGHT(rc=OK,bad=81824) +PASS gqa_f32_large_scores_32q4kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.0830785 chip_ns=227122 call_ns=421715 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 1/1 NO_MAX:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_mha_16q16kv_ctx300 n=1024 rc=OK violations=0 worst_scaled_err=0.00184 chip_ns=108417 call_ns=391140 calls=1 unwritten=0 kv_staged=2457600/2457600 blocks=1/1 | mutants 3/3 Q_ROW:CAUGHT(rc=OK,bad=1024) OUT_ROW:CAUGHT(rc=OK,bad=1020) KV_HEAD:CAUGHT(rc=OK,bad=1023) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=105393 call_ns=213762 calls=1 unwritten=0 kv_staged=16384/16384 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00158694 chip_ns=104080 call_ns=198898 calls=1 unwritten=0 kv_staged=32768/32768 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2047) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00106953 chip_ns=104353 call_ns=217378 calls=1 unwritten=0 kv_staged=262144/262144 blocks=16/16 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.000545881 chip_ns=216194 call_ns=579638 calls=1 unwritten=0 kv_staged=2097152/2097152 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=2047) SLOT:CAUGHT(rc=OK,bad=2038) NO_RESCALE:CAUGHT(rc=OK,bad=1901) Q_ROW:CAUGHT(rc=OK,bad=2046) OUT_ROW:CAUGHT(rc=OK,bad=2046) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00144367 chip_ns=104577 call_ns=225906 calls=1 unwritten=0 kv_staged=81920/81920 blocks=5/5 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00159999 chip_ns=104385 call_ns=112433 calls=1 unwritten=0 kv_staged=131072/131072 blocks=8/8 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00170812 chip_ns=104369 call_ns=112273 calls=1 unwritten=0 kv_staged=147456/147456 blocks=9/9 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00140672 chip_ns=108688 call_ns=257075 calls=1 unwritten=0 kv_staged=311296/311296 blocks=19/19 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00143935 chip_ns=228306 call_ns=423188 calls=1 unwritten=0 kv_staged=163840/1032192 blocks=10/63 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=105921 call_ns=250354 calls=1 unwritten=0 kv_staged=32768/32768 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00205197 chip_ns=103569 call_ns=200449 calls=1 unwritten=0 kv_staged=65536/65536 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2046) SLOT:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00105953 chip_ns=187889 call_ns=329603 calls=1 unwritten=0 kv_staged=524288/524288 blocks=16/16 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.00055855 chip_ns=220690 call_ns=680566 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2044) NO_RESCALE:CAUGHT(rc=OK,bad=1963) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00171737 chip_ns=105361 call_ns=225266 calls=1 unwritten=0 kv_staged=163840/163840 blocks=5/5 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00153626 chip_ns=105025 call_ns=114945 calls=1 unwritten=0 kv_staged=262144/262144 blocks=8/8 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00162582 chip_ns=105457 call_ns=115777 calls=1 unwritten=0 kv_staged=294912/294912 blocks=9/9 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00144548 chip_ns=106577 call_ns=259235 calls=1 unwritten=0 kv_staged=622592/622592 blocks=19/19 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00094646 chip_ns=209665 call_ns=465780 calls=1 unwritten=0 kv_staged=327680/2064384 blocks=10/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.0028454 chip_ns=209202 call_ns=473460 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00202911 chip_ns=103873 call_ns=181570 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2041) +PASS paged_bf16_split4_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00111551 chip_ns=104689 call_ns=262690 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.000737182 chip_ns=105633 call_ns=277378 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.000577315 chip_ns=213890 call_ns=415092 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.0018292 chip_ns=113553 call_ns=214337 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=105297 call_ns=117665 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split4_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=104112 call_ns=115617 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=116033 call_ns=140209 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=107777 call_ns=153105 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_batch_3seq_32q8kv_ctx40_0_100 n=6144 rc=OK violations=0 worst_scaled_err=0.00173417 chip_ns=207346 call_ns=222178 calls=2 unwritten=0 kv_staged=229376/229376 blocks=7/7 | mutants 4/4 KV_HEAD:CAUGHT(rc=OK,bad=4095) SLOT:CAUGHT(rc=OK,bad=4095) Q_ROW:CAUGHT(rc=OK,bad=4092) OUT_ROW:CAUGHT(rc=OK,bad=4092) +PASS paged_bf16_shared_prefix_4seq_8q2kv_10pre n=2048 rc=OK violations=0 worst_scaled_err=0.00136352 chip_ns=104369 call_ns=216801 calls=1 unwritten=0 kv_staged=155648/401408 blocks=19/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2046) +PASS paged_bf16_shared_prefix_4seq_32q8kv_10pre n=8192 rc=OK violations=0 worst_scaled_err=0.00205105 chip_ns=210930 call_ns=474196 calls=2 unwritten=0 kv_staged=950272/1605632 blocks=29/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=8190) SLOT:CAUGHT(rc=OK,bad=8186) +mutant NO_MAX: caught 1 of 1 +mutant KV_HEAD: caught 12 of 12 +mutant SLOT: caught 12 of 12 +mutant NO_RESCALE: caught 6 of 6 +mutant Q_ROW: caught 8 of 8 +mutant OUT_ROW: caught 8 of 8 +device_opens=1 +PASS: 219 checks, 0 failed diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_hd128.json b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_hd128.json new file mode 100644 index 0000000..4a24ebe --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_hd128.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ATTENTION_V1","tolerances":{"rel":2e-4,"abs":2e-5,"large_scores_rel":1e-3,"large_scores_abs":1e-4},"cases":[{"case":"gqa_f32_qwen3_4b_32q8kv_ctx1","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":218146,"call_ns":104602977,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":8192,"kv_bytes_naive":8192,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_qwen3_4b_32q8kv_ctx17","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00198312,"pass":true,"chip_elapsed_ns":103921,"call_ns":287971,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":139264,"kv_bytes_naive":139264,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_qwen3_4b_32q8kv_ctx256","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00219175,"pass":true,"chip_elapsed_ns":107841,"call_ns":596549,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2097152,"kv_bytes_naive":2097152,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_qwen3_4b_32q8kv_ctx2048","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00376301,"pass":true,"chip_elapsed_ns":623621,"call_ns":3506046,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":16777216,"kv_bytes_naive":16777216,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=4090) NO_RESCALE:CAUGHT(rc=OK,bad=3905) Q_ROW:CAUGHT(rc=OK,bad=4086) OUT_ROW:CAUGHT(rc=OK,bad=4086)"},{"case":"gqa_f32_qwen3_4b_32q8kv_ctx127","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.0019369,"pass":true,"chip_elapsed_ns":107601,"call_ns":310595,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1040384,"kv_bytes_naive":1040384,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_qwen3_4b_32q8kv_ctx128","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00195072,"pass":true,"chip_elapsed_ns":106177,"call_ns":133730,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1048576,"kv_bytes_naive":1048576,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_qwen3_4b_32q8kv_ctx129","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00222211,"pass":true,"chip_elapsed_ns":105281,"call_ns":129297,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1056768,"kv_bytes_naive":1056768,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_qwen3_4b_32q8kv_ctx300","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00262496,"pass":true,"chip_elapsed_ns":107393,"call_ns":174962,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2457600,"kv_bytes_naive":2457600,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_qwen3_4b_32q8kv_ctx1000","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00318626,"pass":true,"chip_elapsed_ns":312499,"call_ns":627846,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":8192000,"kv_bytes_naive":8192000,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_gqa8_32q4kv_ctx1","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":105233,"call_ns":372915,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096,"kv_bytes_naive":4096,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_gqa8_32q4kv_ctx17","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00213223,"pass":true,"chip_elapsed_ns":103441,"call_ns":108593,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":69632,"kv_bytes_naive":69632,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4095)"},{"case":"gqa_f32_gqa8_32q4kv_ctx256","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00193136,"pass":true,"chip_elapsed_ns":106161,"call_ns":266834,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1048576,"kv_bytes_naive":1048576,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_gqa8_32q4kv_ctx2048","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00246504,"pass":true,"chip_elapsed_ns":518149,"call_ns":881144,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":8388608,"kv_bytes_naive":8388608,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=4084) NO_RESCALE:CAUGHT(rc=OK,bad=3914) Q_ROW:CAUGHT(rc=OK,bad=4078) OUT_ROW:CAUGHT(rc=OK,bad=4078)"},{"case":"gqa_f32_gqa8_32q4kv_ctx127","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00243573,"pass":true,"chip_elapsed_ns":104897,"call_ns":254962,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":520192,"kv_bytes_naive":520192,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_gqa8_32q4kv_ctx128","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00180964,"pass":true,"chip_elapsed_ns":104177,"call_ns":114961,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_gqa8_32q4kv_ctx129","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00188256,"pass":true,"chip_elapsed_ns":104305,"call_ns":114737,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":528384,"kv_bytes_naive":528384,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_gqa8_32q4kv_ctx300","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00199715,"pass":true,"chip_elapsed_ns":105281,"call_ns":143329,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1228800,"kv_bytes_naive":1228800,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_gqa8_32q4kv_ctx1000","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00296202,"pass":true,"chip_elapsed_ns":312947,"call_ns":463956,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096000,"kv_bytes_naive":4096000,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_qwen3_4b_32q8kv_base0_rows1","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":104977,"call_ns":368755,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":8192,"kv_bytes_naive":8192,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_qwen3_4b_32q8kv_base17_rows5","n":20480,"rc":"OK","violations":0,"worst_scaled_err":0.00238734,"pass":true,"chip_elapsed_ns":105457,"call_ns":431220,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":180224,"kv_bytes_naive":901120,"kv_blocks_unique":1,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_qwen3_4b_32q8kv_base300_rows40","n":163840,"rc":"OK","violations":0,"worst_scaled_err":0.00342033,"pass":true,"chip_elapsed_ns":628453,"call_ns":1412332,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":2785280,"kv_bytes_naive":111411200,"kv_blocks_unique":1,"kv_blocks_logical":40,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=163639) NO_RESCALE:CAUGHT(rc=OK,bad=96453) Q_ROW:CAUGHT(rc=OK,bad=163612) OUT_ROW:CAUGHT(rc=OK,bad=163612)"},{"case":"gqa_rows_f32_gqa8_32q4kv_base0_rows1","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":107409,"call_ns":315139,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096,"kv_bytes_naive":4096,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_gqa8_32q4kv_base17_rows5","n":20480,"rc":"OK","violations":0,"worst_scaled_err":0.00296019,"pass":true,"chip_elapsed_ns":103489,"call_ns":124337,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":90112,"kv_bytes_naive":450560,"kv_blocks_unique":1,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_gqa8_32q4kv_base300_rows40","n":163840,"rc":"OK","violations":0,"worst_scaled_err":0.0038327,"pass":true,"chip_elapsed_ns":732998,"call_ns":928968,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":1392640,"kv_bytes_naive":55705600,"kv_blocks_unique":1,"kv_blocks_logical":40,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=163626) NO_RESCALE:CAUGHT(rc=OK,bad=98605) Q_ROW:CAUGHT(rc=OK,bad=163626) OUT_ROW:CAUGHT(rc=OK,bad=163626)"},{"case":"gqa_f32_large_scores_32q4kv_ctx256","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.114366,"pass":true,"chip_elapsed_ns":105937,"call_ns":315475,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1048576,"kv_bytes_naive":1048576,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"NO_MAX:CAUGHT(rc=OK,bad=4096)"},{"case":"gqa_f32_mha_16q16kv_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00289382,"pass":true,"chip_elapsed_ns":107313,"call_ns":440084,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4915200,"kv_bytes_naive":4915200,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":3,"mutants_caught":3,"mutant_note":"Q_ROW:CAUGHT(rc=OK,bad=2045) OUT_ROW:CAUGHT(rc=OK,bad=2048) KV_HEAD:CAUGHT(rc=OK,bad=2045)"},{"case":"paged_bf16_qwen3_4b_32q8kv_bs16_ctx1","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":105313,"call_ns":266178,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":65536,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4096)"},{"case":"paged_bf16_qwen3_4b_32q8kv_bs16_ctx17","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00234242,"pass":true,"chip_elapsed_ns":104545,"call_ns":245314,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":131072,"kv_bytes_naive":131072,"kv_blocks_unique":2,"kv_blocks_logical":2,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4096) SLOT:CAUGHT(rc=OK,bad=4096)"},{"case":"paged_bf16_qwen3_4b_32q8kv_bs16_ctx256","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00164,"pass":true,"chip_elapsed_ns":105073,"call_ns":301667,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1048576,"kv_bytes_naive":1048576,"kv_blocks_unique":16,"kv_blocks_logical":16,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_qwen3_4b_32q8kv_bs16_ctx2048","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.000652093,"pass":true,"chip_elapsed_ns":108625,"call_ns":844215,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":8388608,"kv_bytes_naive":8388608,"kv_blocks_unique":128,"kv_blocks_logical":128,"mutants_run":5,"mutants_caught":5,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4094) SLOT:CAUGHT(rc=OK,bad=4088) NO_RESCALE:CAUGHT(rc=OK,bad=3458) Q_ROW:CAUGHT(rc=OK,bad=4088) OUT_ROW:CAUGHT(rc=OK,bad=4088)"},{"case":"paged_bf16_qwen3_4b_32q8kv_bs16_ctx127","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00206248,"pass":true,"chip_elapsed_ns":113105,"call_ns":333507,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":8,"kv_blocks_logical":8,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_qwen3_4b_32q8kv_bs16_ctx128","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00186796,"pass":true,"chip_elapsed_ns":111009,"call_ns":134673,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":8,"kv_blocks_logical":8,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_qwen3_4b_32q8kv_bs16_ctx129","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00209681,"pass":true,"chip_elapsed_ns":107809,"call_ns":343619,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":589824,"kv_bytes_naive":589824,"kv_blocks_unique":9,"kv_blocks_logical":9,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_qwen3_4b_32q8kv_bs16_ctx300","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00196382,"pass":true,"chip_elapsed_ns":107809,"call_ns":149202,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1245184,"kv_bytes_naive":1245184,"kv_blocks_unique":19,"kv_blocks_logical":19,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_qwen3_4b_32q8kv_bs16_ctx1000","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00109341,"pass":true,"chip_elapsed_ns":109265,"call_ns":434932,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":655360,"kv_bytes_naive":4128768,"kv_blocks_unique":10,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_gqa8_32q4kv_bs16_ctx1","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":105793,"call_ns":351843,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":32768,"kv_bytes_naive":32768,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4096)"},{"case":"paged_bf16_gqa8_32q4kv_bs16_ctx17","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00184997,"pass":true,"chip_elapsed_ns":105009,"call_ns":253059,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":65536,"kv_blocks_unique":2,"kv_blocks_logical":2,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4096) SLOT:CAUGHT(rc=OK,bad=4094)"},{"case":"paged_bf16_gqa8_32q4kv_bs16_ctx256","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00174993,"pass":true,"chip_elapsed_ns":106449,"call_ns":278130,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":16,"kv_blocks_logical":16,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_gqa8_32q4kv_bs16_ctx2048","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.000692334,"pass":true,"chip_elapsed_ns":110337,"call_ns":605973,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4194304,"kv_bytes_naive":4194304,"kv_blocks_unique":128,"kv_blocks_logical":128,"mutants_run":5,"mutants_caught":5,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4092) SLOT:CAUGHT(rc=OK,bad=4081) NO_RESCALE:CAUGHT(rc=OK,bad=3413) Q_ROW:CAUGHT(rc=OK,bad=4082) OUT_ROW:CAUGHT(rc=OK,bad=4082)"},{"case":"paged_bf16_gqa8_32q4kv_bs16_ctx127","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00233987,"pass":true,"chip_elapsed_ns":104945,"call_ns":267698,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":8,"kv_blocks_logical":8,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_gqa8_32q4kv_bs16_ctx128","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00222576,"pass":true,"chip_elapsed_ns":105793,"call_ns":116753,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":8,"kv_blocks_logical":8,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_gqa8_32q4kv_bs16_ctx129","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00158538,"pass":true,"chip_elapsed_ns":105665,"call_ns":278066,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":294912,"kv_bytes_naive":294912,"kv_blocks_unique":9,"kv_blocks_logical":9,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_gqa8_32q4kv_bs16_ctx300","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00184017,"pass":true,"chip_elapsed_ns":106369,"call_ns":133778,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":622592,"kv_bytes_naive":622592,"kv_blocks_unique":19,"kv_blocks_logical":19,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_gqa8_32q4kv_bs16_ctx1000","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00133,"pass":true,"chip_elapsed_ns":108417,"call_ns":353299,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":327680,"kv_bytes_naive":2064384,"kv_blocks_unique":10,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split1_32q8kv_ctx1000","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00241483,"pass":true,"chip_elapsed_ns":210130,"call_ns":517205,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4128768,"kv_bytes_naive":4128768,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split2_32q8kv_ctx1000","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00192453,"pass":true,"chip_elapsed_ns":105505,"call_ns":407715,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4128768,"kv_bytes_naive":4128768,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4094) SLOT:CAUGHT(rc=OK,bad=4089)"},{"case":"paged_bf16_split4_32q8kv_ctx1000","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.0012482,"pass":true,"chip_elapsed_ns":173585,"call_ns":474308,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4128768,"kv_bytes_naive":4128768,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split8_32q8kv_ctx1000","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.000781902,"pass":true,"chip_elapsed_ns":106561,"call_ns":468116,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4128768,"kv_bytes_naive":4128768,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split16_32q8kv_ctx1000","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.000781902,"pass":true,"chip_elapsed_ns":73041,"call_ns":449364,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4128768,"kv_bytes_naive":4128768,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split1_32q8kv_ctx100","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00257739,"pass":true,"chip_elapsed_ns":103665,"call_ns":112177,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":131072,"kv_bytes_naive":458752,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split2_32q8kv_ctx100","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00257739,"pass":true,"chip_elapsed_ns":103953,"call_ns":250802,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":131072,"kv_bytes_naive":458752,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split4_32q8kv_ctx100","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00257739,"pass":true,"chip_elapsed_ns":103232,"call_ns":123201,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":131072,"kv_bytes_naive":458752,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split8_32q8kv_ctx100","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00257739,"pass":true,"chip_elapsed_ns":103121,"call_ns":140033,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":131072,"kv_bytes_naive":458752,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split16_32q8kv_ctx100","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00257739,"pass":true,"chip_elapsed_ns":103393,"call_ns":175041,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":131072,"kv_bytes_naive":458752,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_batch_3seq_32q8kv_ctx40_0_100","n":12288,"rc":"OK","violations":0,"worst_scaled_err":0.00208243,"pass":true,"chip_elapsed_ns":209153,"call_ns":238291,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":458752,"kv_bytes_naive":458752,"kv_blocks_unique":7,"kv_blocks_logical":7,"mutants_run":4,"mutants_caught":4,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=8190) SLOT:CAUGHT(rc=OK,bad=8184) Q_ROW:CAUGHT(rc=OK,bad=8190) OUT_ROW:CAUGHT(rc=OK,bad=8190)"},{"case":"paged_bf16_shared_prefix_4seq_8q2kv_10pre","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.00212011,"pass":true,"chip_elapsed_ns":105521,"call_ns":256194,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":311296,"kv_bytes_naive":802816,"kv_blocks_unique":19,"kv_blocks_logical":49,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4095) SLOT:CAUGHT(rc=OK,bad=4093)"},{"case":"paged_bf16_shared_prefix_4seq_32q8kv_10pre","n":16384,"rc":"OK","violations":0,"worst_scaled_err":0.00198582,"pass":true,"chip_elapsed_ns":212802,"call_ns":542661,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":1900544,"kv_bytes_naive":3211264,"kv_blocks_unique":29,"kv_blocks_logical":49,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=16379) SLOT:CAUGHT(rc=OK,bad=16365)"}],"mutant_count":6,"mutants":{"NO_MAX":{"run":1,"caught":1},"KV_HEAD":{"run":12,"caught":12},"SLOT":{"run":12,"caught":12},"NO_RESCALE":{"run":6,"caught":6},"Q_ROW":{"run":8,"caught":8},"OUT_ROW":{"run":8,"caught":8}},"device_opens":1,"checks":221,"failed":0,"verdict":"OMEGA_GPU_ATTENTION_PASS"} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_hd128.log b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_hd128.log new file mode 100644 index 0000000..f57de5d --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_hd128.log @@ -0,0 +1,72 @@ +PASS gqa_f32_qwen3_4b_32q8kv_ctx1 n=4096 rc=OK violations=0 worst_scaled_err=0 chip_ns=218146 call_ns=104602977 calls=1 unwritten=0 kv_staged=8192/8192 blocks=1/1 | mutants 0/0 +PASS gqa_f32_qwen3_4b_32q8kv_ctx17 n=4096 rc=OK violations=0 worst_scaled_err=0.00198312 chip_ns=103921 call_ns=287971 calls=1 unwritten=0 kv_staged=139264/139264 blocks=1/1 | mutants 0/0 +PASS gqa_f32_qwen3_4b_32q8kv_ctx256 n=4096 rc=OK violations=0 worst_scaled_err=0.00219175 chip_ns=107841 call_ns=596549 calls=1 unwritten=0 kv_staged=2097152/2097152 blocks=1/1 | mutants 0/0 +PASS gqa_f32_qwen3_4b_32q8kv_ctx2048 n=4096 rc=OK violations=0 worst_scaled_err=0.00376301 chip_ns=623621 call_ns=3506046 calls=1 unwritten=0 kv_staged=16777216/16777216 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=4090) NO_RESCALE:CAUGHT(rc=OK,bad=3905) Q_ROW:CAUGHT(rc=OK,bad=4086) OUT_ROW:CAUGHT(rc=OK,bad=4086) +PASS gqa_f32_qwen3_4b_32q8kv_ctx127 n=4096 rc=OK violations=0 worst_scaled_err=0.0019369 chip_ns=107601 call_ns=310595 calls=1 unwritten=0 kv_staged=1040384/1040384 blocks=1/1 | mutants 0/0 +PASS gqa_f32_qwen3_4b_32q8kv_ctx128 n=4096 rc=OK violations=0 worst_scaled_err=0.00195072 chip_ns=106177 call_ns=133730 calls=1 unwritten=0 kv_staged=1048576/1048576 blocks=1/1 | mutants 0/0 +PASS gqa_f32_qwen3_4b_32q8kv_ctx129 n=4096 rc=OK violations=0 worst_scaled_err=0.00222211 chip_ns=105281 call_ns=129297 calls=1 unwritten=0 kv_staged=1056768/1056768 blocks=1/1 | mutants 0/0 +PASS gqa_f32_qwen3_4b_32q8kv_ctx300 n=4096 rc=OK violations=0 worst_scaled_err=0.00262496 chip_ns=107393 call_ns=174962 calls=1 unwritten=0 kv_staged=2457600/2457600 blocks=1/1 | mutants 0/0 +PASS gqa_f32_qwen3_4b_32q8kv_ctx1000 n=4096 rc=OK violations=0 worst_scaled_err=0.00318626 chip_ns=312499 call_ns=627846 calls=1 unwritten=0 kv_staged=8192000/8192000 blocks=1/1 | mutants 0/0 +PASS gqa_f32_gqa8_32q4kv_ctx1 n=4096 rc=OK violations=0 worst_scaled_err=0 chip_ns=105233 call_ns=372915 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_f32_gqa8_32q4kv_ctx17 n=4096 rc=OK violations=0 worst_scaled_err=0.00213223 chip_ns=103441 call_ns=108593 calls=1 unwritten=0 kv_staged=69632/69632 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=4095) +PASS gqa_f32_gqa8_32q4kv_ctx256 n=4096 rc=OK violations=0 worst_scaled_err=0.00193136 chip_ns=106161 call_ns=266834 calls=1 unwritten=0 kv_staged=1048576/1048576 blocks=1/1 | mutants 0/0 +PASS gqa_f32_gqa8_32q4kv_ctx2048 n=4096 rc=OK violations=0 worst_scaled_err=0.00246504 chip_ns=518149 call_ns=881144 calls=1 unwritten=0 kv_staged=8388608/8388608 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=4084) NO_RESCALE:CAUGHT(rc=OK,bad=3914) Q_ROW:CAUGHT(rc=OK,bad=4078) OUT_ROW:CAUGHT(rc=OK,bad=4078) +PASS gqa_f32_gqa8_32q4kv_ctx127 n=4096 rc=OK violations=0 worst_scaled_err=0.00243573 chip_ns=104897 call_ns=254962 calls=1 unwritten=0 kv_staged=520192/520192 blocks=1/1 | mutants 0/0 +PASS gqa_f32_gqa8_32q4kv_ctx128 n=4096 rc=OK violations=0 worst_scaled_err=0.00180964 chip_ns=104177 call_ns=114961 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_gqa8_32q4kv_ctx129 n=4096 rc=OK violations=0 worst_scaled_err=0.00188256 chip_ns=104305 call_ns=114737 calls=1 unwritten=0 kv_staged=528384/528384 blocks=1/1 | mutants 0/0 +PASS gqa_f32_gqa8_32q4kv_ctx300 n=4096 rc=OK violations=0 worst_scaled_err=0.00199715 chip_ns=105281 call_ns=143329 calls=1 unwritten=0 kv_staged=1228800/1228800 blocks=1/1 | mutants 0/0 +PASS gqa_f32_gqa8_32q4kv_ctx1000 n=4096 rc=OK violations=0 worst_scaled_err=0.00296202 chip_ns=312947 call_ns=463956 calls=1 unwritten=0 kv_staged=4096000/4096000 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_qwen3_4b_32q8kv_base0_rows1 n=4096 rc=OK violations=0 worst_scaled_err=0 chip_ns=104977 call_ns=368755 calls=1 unwritten=0 kv_staged=8192/8192 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_qwen3_4b_32q8kv_base17_rows5 n=20480 rc=OK violations=0 worst_scaled_err=0.00238734 chip_ns=105457 call_ns=431220 calls=1 unwritten=0 kv_staged=180224/901120 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_qwen3_4b_32q8kv_base300_rows40 n=163840 rc=OK violations=0 worst_scaled_err=0.00342033 chip_ns=628453 call_ns=1412332 calls=2 unwritten=0 kv_staged=2785280/111411200 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=163639) NO_RESCALE:CAUGHT(rc=OK,bad=96453) Q_ROW:CAUGHT(rc=OK,bad=163612) OUT_ROW:CAUGHT(rc=OK,bad=163612) +PASS gqa_rows_f32_gqa8_32q4kv_base0_rows1 n=4096 rc=OK violations=0 worst_scaled_err=0 chip_ns=107409 call_ns=315139 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_gqa8_32q4kv_base17_rows5 n=20480 rc=OK violations=0 worst_scaled_err=0.00296019 chip_ns=103489 call_ns=124337 calls=1 unwritten=0 kv_staged=90112/450560 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_gqa8_32q4kv_base300_rows40 n=163840 rc=OK violations=0 worst_scaled_err=0.0038327 chip_ns=732998 call_ns=928968 calls=2 unwritten=0 kv_staged=1392640/55705600 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=163626) NO_RESCALE:CAUGHT(rc=OK,bad=98605) Q_ROW:CAUGHT(rc=OK,bad=163626) OUT_ROW:CAUGHT(rc=OK,bad=163626) +PASS gqa_f32_large_scores_32q4kv_ctx256 n=4096 rc=OK violations=0 worst_scaled_err=0.114366 chip_ns=105937 call_ns=315475 calls=1 unwritten=0 kv_staged=1048576/1048576 blocks=1/1 | mutants 1/1 NO_MAX:CAUGHT(rc=OK,bad=4096) +PASS gqa_f32_mha_16q16kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00289382 chip_ns=107313 call_ns=440084 calls=1 unwritten=0 kv_staged=4915200/4915200 blocks=1/1 | mutants 3/3 Q_ROW:CAUGHT(rc=OK,bad=2045) OUT_ROW:CAUGHT(rc=OK,bad=2048) KV_HEAD:CAUGHT(rc=OK,bad=2045) +PASS paged_bf16_qwen3_4b_32q8kv_bs16_ctx1 n=4096 rc=OK violations=0 worst_scaled_err=0 chip_ns=105313 call_ns=266178 calls=1 unwritten=0 kv_staged=65536/65536 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=4096) +PASS paged_bf16_qwen3_4b_32q8kv_bs16_ctx17 n=4096 rc=OK violations=0 worst_scaled_err=0.00234242 chip_ns=104545 call_ns=245314 calls=1 unwritten=0 kv_staged=131072/131072 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=4096) SLOT:CAUGHT(rc=OK,bad=4096) +PASS paged_bf16_qwen3_4b_32q8kv_bs16_ctx256 n=4096 rc=OK violations=0 worst_scaled_err=0.00164 chip_ns=105073 call_ns=301667 calls=1 unwritten=0 kv_staged=1048576/1048576 blocks=16/16 | mutants 0/0 +PASS paged_bf16_qwen3_4b_32q8kv_bs16_ctx2048 n=4096 rc=OK violations=0 worst_scaled_err=0.000652093 chip_ns=108625 call_ns=844215 calls=1 unwritten=0 kv_staged=8388608/8388608 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=4094) SLOT:CAUGHT(rc=OK,bad=4088) NO_RESCALE:CAUGHT(rc=OK,bad=3458) Q_ROW:CAUGHT(rc=OK,bad=4088) OUT_ROW:CAUGHT(rc=OK,bad=4088) +PASS paged_bf16_qwen3_4b_32q8kv_bs16_ctx127 n=4096 rc=OK violations=0 worst_scaled_err=0.00206248 chip_ns=113105 call_ns=333507 calls=1 unwritten=0 kv_staged=524288/524288 blocks=8/8 | mutants 0/0 +PASS paged_bf16_qwen3_4b_32q8kv_bs16_ctx128 n=4096 rc=OK violations=0 worst_scaled_err=0.00186796 chip_ns=111009 call_ns=134673 calls=1 unwritten=0 kv_staged=524288/524288 blocks=8/8 | mutants 0/0 +PASS paged_bf16_qwen3_4b_32q8kv_bs16_ctx129 n=4096 rc=OK violations=0 worst_scaled_err=0.00209681 chip_ns=107809 call_ns=343619 calls=1 unwritten=0 kv_staged=589824/589824 blocks=9/9 | mutants 0/0 +PASS paged_bf16_qwen3_4b_32q8kv_bs16_ctx300 n=4096 rc=OK violations=0 worst_scaled_err=0.00196382 chip_ns=107809 call_ns=149202 calls=1 unwritten=0 kv_staged=1245184/1245184 blocks=19/19 | mutants 0/0 +PASS paged_bf16_qwen3_4b_32q8kv_bs16_ctx1000 n=4096 rc=OK violations=0 worst_scaled_err=0.00109341 chip_ns=109265 call_ns=434932 calls=1 unwritten=0 kv_staged=655360/4128768 blocks=10/63 | mutants 0/0 +PASS paged_bf16_gqa8_32q4kv_bs16_ctx1 n=4096 rc=OK violations=0 worst_scaled_err=0 chip_ns=105793 call_ns=351843 calls=1 unwritten=0 kv_staged=32768/32768 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=4096) +PASS paged_bf16_gqa8_32q4kv_bs16_ctx17 n=4096 rc=OK violations=0 worst_scaled_err=0.00184997 chip_ns=105009 call_ns=253059 calls=1 unwritten=0 kv_staged=65536/65536 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=4096) SLOT:CAUGHT(rc=OK,bad=4094) +PASS paged_bf16_gqa8_32q4kv_bs16_ctx256 n=4096 rc=OK violations=0 worst_scaled_err=0.00174993 chip_ns=106449 call_ns=278130 calls=1 unwritten=0 kv_staged=524288/524288 blocks=16/16 | mutants 0/0 +PASS paged_bf16_gqa8_32q4kv_bs16_ctx2048 n=4096 rc=OK violations=0 worst_scaled_err=0.000692334 chip_ns=110337 call_ns=605973 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=4092) SLOT:CAUGHT(rc=OK,bad=4081) NO_RESCALE:CAUGHT(rc=OK,bad=3413) Q_ROW:CAUGHT(rc=OK,bad=4082) OUT_ROW:CAUGHT(rc=OK,bad=4082) +PASS paged_bf16_gqa8_32q4kv_bs16_ctx127 n=4096 rc=OK violations=0 worst_scaled_err=0.00233987 chip_ns=104945 call_ns=267698 calls=1 unwritten=0 kv_staged=262144/262144 blocks=8/8 | mutants 0/0 +PASS paged_bf16_gqa8_32q4kv_bs16_ctx128 n=4096 rc=OK violations=0 worst_scaled_err=0.00222576 chip_ns=105793 call_ns=116753 calls=1 unwritten=0 kv_staged=262144/262144 blocks=8/8 | mutants 0/0 +PASS paged_bf16_gqa8_32q4kv_bs16_ctx129 n=4096 rc=OK violations=0 worst_scaled_err=0.00158538 chip_ns=105665 call_ns=278066 calls=1 unwritten=0 kv_staged=294912/294912 blocks=9/9 | mutants 0/0 +PASS paged_bf16_gqa8_32q4kv_bs16_ctx300 n=4096 rc=OK violations=0 worst_scaled_err=0.00184017 chip_ns=106369 call_ns=133778 calls=1 unwritten=0 kv_staged=622592/622592 blocks=19/19 | mutants 0/0 +PASS paged_bf16_gqa8_32q4kv_bs16_ctx1000 n=4096 rc=OK violations=0 worst_scaled_err=0.00133 chip_ns=108417 call_ns=353299 calls=1 unwritten=0 kv_staged=327680/2064384 blocks=10/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx1000 n=4096 rc=OK violations=0 worst_scaled_err=0.00241483 chip_ns=210130 call_ns=517205 calls=1 unwritten=0 kv_staged=4128768/4128768 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx1000 n=4096 rc=OK violations=0 worst_scaled_err=0.00192453 chip_ns=105505 call_ns=407715 calls=1 unwritten=0 kv_staged=4128768/4128768 blocks=63/63 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=4094) SLOT:CAUGHT(rc=OK,bad=4089) +PASS paged_bf16_split4_32q8kv_ctx1000 n=4096 rc=OK violations=0 worst_scaled_err=0.0012482 chip_ns=173585 call_ns=474308 calls=1 unwritten=0 kv_staged=4128768/4128768 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx1000 n=4096 rc=OK violations=0 worst_scaled_err=0.000781902 chip_ns=106561 call_ns=468116 calls=1 unwritten=0 kv_staged=4128768/4128768 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx1000 n=4096 rc=OK violations=0 worst_scaled_err=0.000781902 chip_ns=73041 call_ns=449364 calls=1 unwritten=0 kv_staged=4128768/4128768 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx100 n=4096 rc=OK violations=0 worst_scaled_err=0.00257739 chip_ns=103665 call_ns=112177 calls=1 unwritten=0 kv_staged=131072/458752 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx100 n=4096 rc=OK violations=0 worst_scaled_err=0.00257739 chip_ns=103953 call_ns=250802 calls=1 unwritten=0 kv_staged=131072/458752 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split4_32q8kv_ctx100 n=4096 rc=OK violations=0 worst_scaled_err=0.00257739 chip_ns=103232 call_ns=123201 calls=1 unwritten=0 kv_staged=131072/458752 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx100 n=4096 rc=OK violations=0 worst_scaled_err=0.00257739 chip_ns=103121 call_ns=140033 calls=1 unwritten=0 kv_staged=131072/458752 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx100 n=4096 rc=OK violations=0 worst_scaled_err=0.00257739 chip_ns=103393 call_ns=175041 calls=1 unwritten=0 kv_staged=131072/458752 blocks=2/7 | mutants 0/0 +PASS paged_bf16_batch_3seq_32q8kv_ctx40_0_100 n=12288 rc=OK violations=0 worst_scaled_err=0.00208243 chip_ns=209153 call_ns=238291 calls=2 unwritten=0 kv_staged=458752/458752 blocks=7/7 | mutants 4/4 KV_HEAD:CAUGHT(rc=OK,bad=8190) SLOT:CAUGHT(rc=OK,bad=8184) Q_ROW:CAUGHT(rc=OK,bad=8190) OUT_ROW:CAUGHT(rc=OK,bad=8190) +PASS paged_bf16_shared_prefix_4seq_8q2kv_10pre n=4096 rc=OK violations=0 worst_scaled_err=0.00212011 chip_ns=105521 call_ns=256194 calls=1 unwritten=0 kv_staged=311296/802816 blocks=19/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=4095) SLOT:CAUGHT(rc=OK,bad=4093) +PASS paged_bf16_shared_prefix_4seq_32q8kv_10pre n=16384 rc=OK violations=0 worst_scaled_err=0.00198582 chip_ns=212802 call_ns=542661 calls=2 unwritten=0 kv_staged=1900544/3211264 blocks=29/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=16379) SLOT:CAUGHT(rc=OK,bad=16365) +mutant NO_MAX: caught 1 of 1 +mutant KV_HEAD: caught 12 of 12 +mutant SLOT: caught 12 of 12 +mutant NO_RESCALE: caught 6 of 6 +mutant Q_ROW: caught 8 of 8 +mutant OUT_ROW: caught 8 of 8 +device_opens=1 + hd128 dominant token 5 (warp 0 of chunk 0): rc OK, 0 bad, worst 0 + hd128 dominant token 40 (warp 1 of chunk 0): rc OK, 0 bad, worst 0 + hd128 dominant token 70 (warp 2 of chunk 0): rc OK, 0 bad, worst 0 + hd128 dominant token 100 (warp 3 of chunk 0): rc OK, 0 bad, worst 0 + hd128 dominant token 127 (warp 3 of chunk 0): rc OK, 0 bad, worst 0 + hd128 dominant token 131 (warp 0 of chunk 1): rc OK, 0 bad, worst 0 + hd128 dominant token 299 (warp 1 of chunk 2): rc OK, 0 bad, worst 0 +PASS: 225 checks, 0 failed diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_timing.json b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_timing.json new file mode 100644 index 0000000..a18a874 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_timing.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ATTENTION_TIMING_V1","gate_median_ms":3.0,"calls":100,"cases":[{"case":"gqa_f32_tinyllama_32q4kv_ctx2048","first_call_ms":141.979,"ok_calls":100,"violations":0,"worst_scaled_err":0.00323017,"median_ms":0.6516,"p90_ms":1.1672,"min_ms":0.5115,"max_ms":1.5765,"chip_us_mean":567.0,"device_opens":1,"pass":true}],"checks":2,"failed":0,"verdict":"OMEGA_GPU_ATTENTION_TIMING_PASS"} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_timing.log b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_timing.log new file mode 100644 index 0000000..4d8ebe0 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/existing/attention_timing.log @@ -0,0 +1,2 @@ +PASS timing gqa_f32_tinyllama_32q4kv_ctx2048 first_call_ms=141.979 ok_calls=100/100 violations=0 worst_scaled_err=0.00323017 median_ms=0.652 p90_ms=1.167 min_ms=0.512 max_ms=1.577 chip_us_mean=567.0 device_opens=1 +PASS: 2 checks, 0 failed diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise.json b/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise.json new file mode 100644 index 0000000..2e6afc9 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ELEMENTWISE_V1","tolerances":{"ex2_rel":1e-6,"xchg":"exact","rmsnorm_rel":1e-5,"rmsnorm_abs":1e-6,"rope":"exact","swiglu_rel":1e-5,"swiglu_abs":1e-6},"cases":[{"case":"ex2_probe","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.152538,"pass":true,"chip_elapsed_ns":216513,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":4096,"mutant_caught":true},{"case":"shared_xchg_probe","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103681,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":4096,"mutant_caught":true},{"case":"rmsnorm_4x2048","n":8192,"rc":"OK","violations":0,"worst_scaled_err":0.0244808,"pass":true,"chip_elapsed_ns":103649,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":8192,"mutant_caught":true},{"case":"rmsnorm_1x256","n":256,"rc":"OK","violations":0,"worst_scaled_err":0.0206888,"pass":true,"chip_elapsed_ns":103633,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":256,"mutant_caught":true},{"case":"rmsnorm_2x8192","n":16384,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103952,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":16384,"mutant_caught":true},{"case":"rope_32h_64d_pos17_theta10000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103201,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1024,"mutant_caught":true},{"case":"rope_4h_64d_pos17_theta10000","n":256,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":102993,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":128,"mutant_caught":true},{"case":"rope_32h_64d_pos1023_theta500000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103008,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1024,"mutant_caught":true},{"case":"rope_8h_64d_pos1023_theta500000","n":512,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103217,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":256,"mutant_caught":true},{"case":"swiglu_5632","n":5632,"rc":"OK","violations":0,"worst_scaled_err":0.0196297,"pass":true,"chip_elapsed_ns":102977,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":5630,"mutant_caught":true},{"case":"swiglu_8192","n":8192,"rc":"OK","violations":0,"worst_scaled_err":0.0177689,"pass":true,"chip_elapsed_ns":65680,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":8192,"mutant_caught":true},{"case":"swiglu_1000","n":1000,"rc":"OK","violations":0,"worst_scaled_err":0.017264,"pass":true,"chip_elapsed_ns":103249,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1000,"mutant_caught":true},{"case":"swiglu_131073","n":131073,"rc":"OK","violations":0,"worst_scaled_err":0.0236441,"pass":true,"chip_elapsed_ns":213586,"chip_calls":2,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":131059,"mutant_caught":true},{"case":"swiglu_1572864","n":1572864,"rc":"OK","violations":0,"worst_scaled_err":0.0250368,"pass":true,"chip_elapsed_ns":1267596,"chip_calls":12,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1572612,"mutant_caught":true},{"case":"icache_reuse_rotation","n":20,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":2242660,"chip_calls":20,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":0,"mutant_caught":true}],"device_opens":1,"checks":35,"failed":0,"verdict":"OMEGA_GPU_ELEMENTWISE_PASS"} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise.log b/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise.log new file mode 100644 index 0000000..9e36746 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise.log @@ -0,0 +1,17 @@ +PASS ex2_probe n=4096 rc=OK violations=0 worst_scaled_err=0.152538 chip_ns=216513 calls=1 unwritten=0 | mutant rc=OK violations=4096 CAUGHT +PASS shared_xchg_probe n=4096 rc=OK violations=0 worst_scaled_err=0 chip_ns=103681 calls=1 unwritten=0 | mutant rc=OK violations=4096 CAUGHT +PASS rmsnorm_4x2048 n=8192 rc=OK violations=0 worst_scaled_err=0.0244808 chip_ns=103649 calls=1 unwritten=0 | mutant rc=OK violations=8192 CAUGHT +PASS rmsnorm_1x256 n=256 rc=OK violations=0 worst_scaled_err=0.0206888 chip_ns=103633 calls=1 unwritten=0 | mutant rc=OK violations=256 CAUGHT +PASS rmsnorm_2x8192 n=16384 rc=OK violations=0 worst_scaled_err=0 chip_ns=103952 calls=1 unwritten=0 | mutant rc=OK violations=16384 CAUGHT +PASS rope_32h_64d_pos17_theta10000 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=103201 calls=1 unwritten=0 | mutant rc=OK violations=1024 CAUGHT +PASS rope_4h_64d_pos17_theta10000 n=256 rc=OK violations=0 worst_scaled_err=0 chip_ns=102993 calls=1 unwritten=0 | mutant rc=OK violations=128 CAUGHT +PASS rope_32h_64d_pos1023_theta500000 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=103008 calls=1 unwritten=0 | mutant rc=OK violations=1024 CAUGHT +PASS rope_8h_64d_pos1023_theta500000 n=512 rc=OK violations=0 worst_scaled_err=0 chip_ns=103217 calls=1 unwritten=0 | mutant rc=OK violations=256 CAUGHT +PASS swiglu_5632 n=5632 rc=OK violations=0 worst_scaled_err=0.0196297 chip_ns=102977 calls=1 unwritten=0 | mutant rc=OK violations=5630 CAUGHT +PASS swiglu_8192 n=8192 rc=OK violations=0 worst_scaled_err=0.0177689 chip_ns=65680 calls=1 unwritten=0 | mutant rc=OK violations=8192 CAUGHT +PASS swiglu_1000 n=1000 rc=OK violations=0 worst_scaled_err=0.017264 chip_ns=103249 calls=1 unwritten=0 | mutant rc=OK violations=1000 CAUGHT +PASS swiglu_131073 n=131073 rc=OK violations=0 worst_scaled_err=0.0236441 chip_ns=213586 calls=2 unwritten=0 | mutant rc=OK violations=131059 CAUGHT +PASS swiglu_1572864 n=1572864 rc=OK violations=0 worst_scaled_err=0.0250368 chip_ns=1267596 calls=12 unwritten=0 | mutant rc=OK violations=1572612 CAUGHT +PASS icache_reuse_rotation n=20 rc=OK violations=0 worst_scaled_err=0 chip_ns=2242660 calls=20 unwritten=0 | mutant rc=OK violations=0 CAUGHT +device_opens=1 +PASS: 35 checks, 0 failed diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise_timing.json b/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise_timing.json new file mode 100644 index 0000000..0c4b5c0 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise_timing.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ELEMENTWISE_TIMING_V1","gate_median_ms":0.5,"calls":100,"cases":[{"case":"rmsnorm_1x2048","first_call_ms":140.205,"ok_calls":100,"violations":0,"worst_scaled_err":0,"median_ms":0.1053,"p90_ms":0.1062,"min_ms":0.0668,"max_ms":0.1129,"chip_us_mean":101.6,"device_opens":1,"pass":true},{"case":"swiglu_5632","first_call_ms":0.749,"ok_calls":100,"violations":0,"worst_scaled_err":0.0208791,"median_ms":0.1090,"p90_ms":0.1121,"min_ms":0.0640,"max_ms":0.1765,"chip_us_mean":101.7,"device_opens":1,"pass":true}],"checks":4,"failed":0,"verdict":"OMEGA_GPU_ELEMENTWISE_TIMING_PASS"} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise_timing.log b/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise_timing.log new file mode 100644 index 0000000..ad1e2d0 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/existing/elementwise_timing.log @@ -0,0 +1,3 @@ +PASS timing rmsnorm_1x2048 first_call_ms=140.205 ok_calls=100/100 violations=0 worst_scaled_err=0 median_ms=0.105 p90_ms=0.106 min_ms=0.067 max_ms=0.113 chip_us_mean=101.6 device_opens=1 +PASS timing swiglu_5632 first_call_ms=0.749 ok_calls=100/100 violations=0 worst_scaled_err=0.0208791 median_ms=0.109 p90_ms=0.112 min_ms=0.064 max_ms=0.177 chip_us_mean=101.7 device_opens=1 +PASS: 4 checks, 0 failed diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/mutant/check.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/mutant/check.jsonl new file mode 100644 index 0000000..65c0665 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/mutant/check.jsonl @@ -0,0 +1,9 @@ +{"case": "rmsnorm_1x2048", "arm": "omega", "n": 2048, "max_abs": 1.0463501221781581, "max_rel": 0.41499672458480197, "rtol": 1e-05, "atol": 1e-06, "violations": 2048, "nonfinite": 0} +{"case": "rmsnorm_64x2048", "arm": "omega", "n": 131072, "max_abs": 1.1510493200890521, "max_rel": 0.4402330274028913, "rtol": 1e-05, "atol": 1e-06, "violations": 131072, "nonfinite": 0} +{"case": "rope_32x128", "arm": "omega", "n": 4096, "max_abs": 1.9711659423594696, "max_rel": 1.4518684602397094, "rtol": 1e-06, "atol": 1e-06, "violations": 2048, "nonfinite": 0} +{"case": "swiglu_5632", "arm": "omega", "n": 5632, "max_abs": 5.407381506456285, "max_rel": 0.9497790228891604, "rtol": 1e-05, "atol": 1e-06, "violations": 5628, "nonfinite": 0} +{"case": "swiglu_131072", "arm": "omega", "n": 131072, "max_abs": 5.421297444147994, "max_rel": 0.9501898990924272, "rtol": 1e-05, "atol": 1e-06, "violations": 131004, "nonfinite": 0} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "arm": "omega", "n": 4096, "max_abs": 0.09116044633431741, "max_rel": 1.1799539179683023, "rtol": 0.0002, "atol": 2e-05, "violations": 4089, "nonfinite": 0} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "arm": "omega", "n": 2048, "max_abs": 0.06961602013324586, "max_rel": 1.7517398437193608, "rtol": 0.0002, "atol": 2e-05, "violations": 2046, "nonfinite": 0} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "arm": "omega", "n": 1048576, "max_abs": 1.96320378780365, "max_rel": 1.9652419811768818, "rtol": 0.0002, "atol": 2e-05, "violations": 1048265, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "omega", "n": 4096, "max_abs": 0.07354696002634531, "max_rel": 0.9293711491871574, "rtol": 0.0002, "atol": 2e-05, "violations": 4088, "nonfinite": 0} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/mutant/check_perturb_q.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/mutant/check_perturb_q.jsonl new file mode 100644 index 0000000..622eda8 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/mutant/check_perturb_q.jsonl @@ -0,0 +1,9 @@ +{"case": "rmsnorm_1x2048", "arm": "omega", "n": 2048, "max_abs": 1.729619456547482e-07, "max_rel": 6.859906584147514e-08, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "rmsnorm_64x2048", "arm": "omega", "n": 131072, "max_abs": 3.945226589863182e-07, "max_rel": 1.5089006310446218e-07, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "rope_32x128", "arm": "omega", "n": 4096, "max_abs": 9.849130577777032e-08, "max_rel": 7.254408033014421e-08, "rtol": 1e-06, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "swiglu_5632", "arm": "omega", "n": 5632, "max_abs": 5.538928160575551e-07, "max_rel": 9.728845227442306e-08, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "swiglu_131072", "arm": "omega", "n": 131072, "max_abs": 7.632354259712315e-07, "max_rel": 1.3377214584862993e-07, "rtol": 1e-05, "atol": 1e-06, "violations": 0, "nonfinite": 0} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "arm": "omega", "n": 4096, "max_abs": 1.0789449723935807e-07, "max_rel": 1.3965545350437207e-06, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "arm": "omega", "n": 2048, "max_abs": 6.390801764871723e-08, "max_rel": 1.6081100389551725e-06, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "arm": "omega", "n": 1048576, "max_abs": 1.44076562402784e-07, "max_rel": 1.4422614233765968e-07, "rtol": 0.0002, "atol": 2e-05, "violations": 0, "nonfinite": 0} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "arm": "omega", "n": 4096, "max_abs": 0.0009286766451099345, "max_rel": 0.01173515914974497, "rtol": 0.0002, "atol": 2e-05, "violations": 121, "nonfinite": 0} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/mutant/omega.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/mutant/omega.jsonl new file mode 100644 index 0000000..e8db7b4 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/mutant/omega.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":1,"first_call_ns":186141689,"warm":0,"reps":0,"timed_outputs_differing_from_first":0,"wall_ns":[],"chip_ns":[]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":1,"first_call_ns":892072,"warm":0,"reps":0,"timed_outputs_differing_from_first":0,"wall_ns":[],"chip_ns":[]} +{"case":"rope_32x128","rc":0,"mutant":1,"first_call_ns":317939,"warm":0,"reps":0,"timed_outputs_differing_from_first":0,"wall_ns":[],"chip_ns":[]} +{"case":"swiglu_5632","rc":0,"mutant":1,"first_call_ns":265714,"warm":0,"reps":0,"timed_outputs_differing_from_first":0,"wall_ns":[],"chip_ns":[]} +{"case":"swiglu_131072","rc":0,"mutant":1,"first_call_ns":627158,"warm":0,"reps":0,"timed_outputs_differing_from_first":0,"wall_ns":[],"chip_ns":[]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":1,"first_call_ns":4151061,"warm":0,"reps":0,"timed_outputs_differing_from_first":0,"wall_ns":[],"chip_ns":[]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":1,"first_call_ns":997017,"warm":0,"reps":0,"timed_outputs_differing_from_first":0,"wall_ns":[],"chip_ns":[]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":1,"first_call_ns":4376966,"warm":0,"reps":0,"timed_outputs_differing_from_first":0,"wall_ns":[],"chip_ns":[]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":1,"first_call_ns":490900,"warm":0,"reps":0,"timed_outputs_differing_from_first":0,"wall_ns":[],"chip_ns":[]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/omega/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/omega/stderr.txt new file mode 100644 index 0000000..f0cdabe --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/omega/stderr.txt @@ -0,0 +1 @@ +LOCK_HELD_S .758649163 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/omega/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/omega/stdout.jsonl new file mode 100644 index 0000000..8889f84 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/omega/stdout.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":0,"first_call_ns":95257055,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[106305,106721,107201,107840,106321,106337,111009,108369,109713,107553,107681,107729,107265,108129,107297,107521,108497,108081,108913,109201,109441,109361,108752,108913,108833,109393,110593,109009,108849,108257,108673,109361,108513,110161,64656,107985,108369,108849,109585,108289,108433,107361,107585,108673,109105,110273,108017,107665,107665,108129],"chip_ns":[103857,104241,104673,105184,103904,103889,104465,105617,106961,104833,104993,105153,104769,105329,104385,105025,105873,105121,106209,105921,106593,106576,105920,106081,105873,106417,107601,106049,105905,105345,105809,106353,105793,107553,61792,105361,105889,106033,106785,105489,105713,104609,105025,106017,106321,107409,105265,104977,105185,105553]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":0,"first_call_ns":999401,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[210322,208018,210034,210194,209810,209890,214834,208050,207185,207937,210978,167010,208690,212994,211602,211394,215489,211665,211041,211618,213074,213842,210626,208866,209650,209794,208546,207202,210385,214817,210065,211234,211842,212354,211122,209650,209058,209330,214754,210306,214050,211154,208994,208721,208993,213378,214370,218594,213410,213506],"chip_ns":[107969,106896,107201,107809,107217,107745,107953,107665,106785,107793,107953,64640,108577,108465,107585,108689,108689,108353,108385,108737,111265,108577,108273,107808,107777,107201,107057,107761,108193,109089,107937,108849,109681,110353,109761,107169,107697,107441,107905,108401,111537,108145,107937,106801,107473,108225,108033,108849,107841,107249]} +{"case":"rope_32x128","rc":0,"mutant":0,"first_call_ns":584021,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[107745,107521,107745,108401,109297,109345,110961,113297,109713,109617,111057,109793,110897,111793,112049,111361,110545,110369,110657,109713,108816,108961,109473,109857,110321,109873,111857,109889,109793,110353,109537,109985,108833,108225,108193,108497,109761,107969,107953,109329,109281,109521,110033,110113,110561,110656,111185,109745,110753,65441],"chip_ns":[103505,103569,103729,104225,104929,105089,106609,108785,105249,105377,106689,105553,106657,107185,107505,106497,106097,106081,105889,105281,104448,104897,105297,105729,106177,105889,107681,105745,105345,106017,105105,105793,104769,104337,104225,104449,105713,103921,104065,105089,105025,105201,105985,105937,106384,106320,107216,105425,106577,61025]} +{"case":"swiglu_5632","rc":0,"mutant":0,"first_call_ns":601190,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[109873,111297,111121,110865,111153,111361,111361,111313,111825,106609,110913,111745,110721,110737,112625,111473,111489,110753,105681,111841,110289,110913,110049,110113,109265,109745,108577,113169,109489,109104,109393,109617,109089,109169,109393,109345,109201,111041,109073,108881,109409,110449,111457,110145,109969,110689,110529,110625,109937,109569],"chip_ns":[104305,105873,105377,105473,105793,105505,105857,105569,106097,100961,105425,106561,105313,105393,107345,105697,105729,105233,99921,106513,104721,105233,104545,104433,103969,104641,103553,108081,104176,103872,103889,104241,103889,103937,103985,104113,103857,105553,103761,103569,104113,105153,105745,104689,104641,105361,105137,105297,104625,104161]} +{"case":"swiglu_131072","rc":0,"mutant":0,"first_call_ns":798055,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[224322,226402,193010,229154,228482,230146,232514,225458,221394,229826,225186,227266,220850,222690,224466,226642,227874,227506,228130,203330,226914,227522,223538,232002,228930,229522,231666,234898,236418,228402,225026,229794,234466,226914,226466,226386,225586,225010,223618,225474,223378,225698,221970,224738,226898,222530,222530,225506,222594,233010],"chip_ns":[108913,108241,75377,107985,108353,108609,109057,108257,107793,109393,108417,107553,106945,107361,107025,107345,108929,109105,109697,84833,109553,109057,109809,109953,108497,109425,109329,109473,107921,108529,109473,109040,108673,109665,109505,108385,107825,108977,109137,109329,107089,107457,108033,109009,106977,107745,107841,107649,106896,107137]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":0,"first_call_ns":5538641,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1222362,1378380,1252331,1406173,1313083,1427820,1217531,1194139,1148538,1213066,1403820,1310092,1457933,1351787,1233819,1212827,1117754,1117497,1204731,1334955,1455533,1308412,1435532,1135642,1336028,1232682,1170155,1142202,1133098,1162426,1396572,1266859,1362732,1270059,1296971,1238523,1106890,1100009,1244491,1336668,1263291,1345980,1324859,1225947,1250459,1127338,1253019,1380364,1232154,1301836],"chip_ns":[509972,519124,419891,515653,516500,525972,422132,419972,417924,422116,524612,522789,521909,520372,421684,417620,424100,422083,498485,525108,514980,522981,519076,420612,509909,418563,424772,420420,400900,420820,518709,524485,522837,524021,525700,508532,402148,420019,518212,520229,524133,525397,519764,418276,493589,415412,519653,521973,526340,517397]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":0,"first_call_ns":812951,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[652758,664277,674678,646006,653446,539636,541621,533429,536948,539589,594677,640502,681830,575989,540645,665493,586038,552580,651670,660182,803415,740550,955145,530100,880072,846839,540549,540037,555637,529684,516741,532196,553317,541765,577381,553461,658694,548468,552901,666726,537461,645605,524085,643686,642085,534469,538645,536356,540341,671142],"chip_ns":[523221,514180,519972,527061,514341,417683,410099,416772,415555,414899,470724,515813,520101,422404,415684,527076,431428,424195,532453,527589,661510,606565,827512,415875,749415,700086,422788,416692,414596,415571,398836,416467,416899,420836,439172,431396,525989,426915,428516,531125,420644,526148,411476,523829,522868,417620,413956,415715,417204,536821]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":0,"first_call_ns":3840929,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[2678648,2867321,3218701,2857321,2641895,2718328,3127147,2878553,3013051,3017674,3140763,2974394,3004042,2939786,3123691,2876057,2682327,2796681,3100043,2877993,3114028,3003467,2701880,2685191,2638087,2710408,2711768,2696887,2617830,2886937,2911562,2864953,2676727,2781640,2618327,2651815,2860873,2657367,2618310,2769944,2651527,2664103,2834664,2656471,2676119,3050122,2827865,2691255,3042475,2628823],"chip_ns":[1622013,1830096,2083425,1738815,1613118,1629501,1981970,1753229,1879745,1908497,2011523,1790417,1864881,1796607,1934082,1761712,1602029,1688302,2018321,1797679,2030529,1917969,1669918,1643310,1612814,1683199,1670558,1679966,1603134,1840831,1853775,1819968,1619503,1707776,1591086,1621694,1794944,1620382,1579407,1716320,1626238,1617214,1790160,1613599,1624687,2007058,1781519,1591999,1930256,1586510]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":0,"first_call_ns":518388,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[142514,168513,171698,171057,172738,199857,171858,173505,174722,171602,171857,173330,174769,172882,172945,175074,171617,177522,177425,175650,677350,173217,170482,172577,171026,172945,138145,1002553,175842,174369,174370,170529,174418,230210,174769,174034,174161,281603,176433,172834,174337,175346,173409,174770,171665,171266,171841,168818,170817,177554],"chip_ns":[75296,103793,105313,104401,105665,132641,105121,105937,104289,104785,105953,105793,105089,105281,105393,105873,105265,105041,108513,104497,609669,104817,104113,104145,104561,104689,69457,933097,106385,104433,105137,104321,104305,158545,104465,103633,103697,212466,105553,104369,104753,104353,104433,103936,103857,103824,103697,103856,103761,104961]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/torch/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/torch/stderr.txt new file mode 100644 index 0000000..588069f --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/torch/stderr.txt @@ -0,0 +1,15 @@ +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory efficient kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1240.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory Efficient attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:600.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1242.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:588.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1244.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Expected query, key and value to all be of dtype: {Half, BFloat16}. Got Query dtype: float, Key dtype: float, and Value dtype: float instead. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:110.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:922.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +LOCK_HELD_S 3.176894679 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/torch/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/torch/stdout.jsonl new file mode 100644 index 0000000..17ba7d2 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r-1/torch/stdout.jsonl @@ -0,0 +1,32 @@ +{"case": "rmsnorm_1x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [16608, 11424, 11008, 11488, 9600, 10368, 10400, 10656, 11424, 10112, 10656, 9984, 10496, 11552, 10720, 10464, 10592, 10432, 10784, 10080, 10304, 10080, 10592, 10240, 10240, 10592, 10336, 10176, 10656, 16928, 10112, 10176, 10496, 10560, 10496, 11200, 10432, 10304, 10240, 10048, 11232, 10176, 10400, 10400, 11072, 10464, 10368, 10144, 10208, 11680], "wall_ns": [50352, 21952, 19569, 18432, 20368, 19504, 19200, 18464, 19889, 18112, 18720, 19376, 18128, 17888, 17921, 19616, 18416, 20544, 20576, 20480, 18065, 17952, 17840, 18576, 18560, 18528, 18177, 19568, 17904, 17776, 17936, 22912, 19169, 18832, 17792, 18496, 20288, 17984, 18737, 19104, 17904, 17888, 18128, 18160, 19281, 18128, 18512, 18704, 17664, 17776]} +{"case": "rmsnorm_64x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [11936, 10336, 10432, 10368, 10432, 10624, 10400, 10208, 10176, 10368, 10784, 11008, 10400, 10496, 10336, 10848, 10208, 10176, 10272, 10400, 10368, 10240, 10304, 10496, 10528, 10272, 10272, 10464, 10304, 10272, 10240, 10688, 10400, 10432, 11488, 10208, 10528, 10528, 10560, 11584, 10816, 10656, 11328, 10560, 10176, 9792, 9248, 10880, 10176, 10848], "wall_ns": [351635, 46928, 38833, 38880, 38576, 38785, 39120, 38560, 37745, 39776, 39600, 37745, 38592, 40240, 38177, 38016, 38592, 38049, 37776, 37600, 43041, 37680, 38944, 38401, 38320, 37808, 38273, 38304, 38096, 37489, 38352, 37760, 39873, 38320, 37616, 38497, 38000, 38432, 37921, 38448, 38464, 37281, 37824, 38944, 38801, 38048, 38416, 38161, 37472, 37968]} +{"case": "rope_32x128", "backend": "torch_ops", "warm": 10, "reps": 50, "dev_ns": [43072, 35328, 37760, 35840, 35360, 35872, 35392, 36512, 36384, 36512, 36512, 36288, 34432, 35584, 36448, 40864, 37600, 36544, 36896, 35104, 35520, 35424, 35680, 34592, 35104, 35232, 35328, 35488, 35392, 34976, 35808, 36512, 35360, 35936, 36352, 36096, 36000, 35680, 39200, 35968, 36032, 37184, 36128, 37920, 34912, 37632, 34752, 36448, 38080, 37472], "wall_ns": [102544, 48017, 45600, 45201, 45104, 44144, 45105, 44192, 46689, 54032, 46480, 48257, 48272, 46321, 45632, 46033, 45024, 48640, 46961, 47408, 46321, 43760, 46416, 45025, 45168, 46097, 45904, 44640, 45601, 44032, 46865, 47408, 44176, 43969, 46064, 46545, 45888, 45376, 50177, 47616, 45825, 46672, 46816, 46097, 45616, 45041, 48128, 46080, 46785, 48048]} +{"case": "swiglu_5632", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [15968, 11264, 12352, 11904, 11328, 12480, 11008, 13088, 11200, 12544, 12736, 13152, 11648, 12672, 13472, 11424, 11392, 11360, 13408, 16288, 11296, 11232, 11264, 11264, 11072, 12288, 12256, 12224, 12512, 12704, 10752, 13024, 11392, 12832, 13056, 11264, 12928, 11904, 11808, 12800, 11232, 13568, 11392, 11552, 13408, 13536, 12352, 11744, 12640, 14112], "wall_ns": [59968, 34961, 34608, 32496, 30497, 29296, 32784, 43617, 32880, 31888, 31680, 34417, 32352, 32592, 30401, 29328, 31616, 29504, 33569, 30176, 33296, 36737, 29904, 30704, 32368, 28897, 31472, 31424, 29440, 29361, 31184, 31936, 34224, 33617, 32144, 30224, 31809, 32688, 38976, 31441, 32128, 30848, 32784, 32737, 35408, 33104, 36081, 31632, 30096, 29584]} +{"case": "swiglu_131072", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [13312, 11552, 11392, 12800, 12608, 12576, 13696, 14080, 11424, 12800, 13056, 12800, 11936, 13632, 11520, 13312, 12320, 13600, 12640, 11520, 21696, 12864, 13728, 11392, 11104, 13664, 11168, 12416, 12576, 13984, 12704, 13184, 12160, 20160, 11744, 11968, 12320, 12320, 11648, 12608, 12768, 12224, 13120, 11904, 11936, 11488, 13024, 13152, 12160, 14048], "wall_ns": [69297, 127793, 65633, 59680, 59313, 58048, 57457, 58640, 59313, 61360, 58449, 58336, 59265, 60144, 57953, 60176, 58977, 59184, 59889, 58513, 59648, 59377, 58384, 58001, 58992, 57729, 58848, 59793, 56608, 57729, 59024, 58913, 58896, 59745, 58880, 60273, 58144, 58417, 58832, 60369, 56944, 58353, 56592, 59473, 59808, 57969, 58624, 58097, 57696, 59761]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [237952, 236896, 237984, 236256, 236192, 234304, 238272, 236608, 235520, 236448, 236608, 235744, 236224, 236288, 238720, 235712, 233696, 237184, 235136, 236064, 237248, 234528, 235360, 236416, 236064, 235008, 235360, 236160, 234656, 236544, 234784, 235200, 235520, 235168, 237312, 234720, 234208, 233792, 273312, 238752, 269696, 274464, 268064, 234528, 236576, 236096, 242656, 267936, 237088, 237760], "wall_ns": [1916529, 1750975, 583685, 555813, 557781, 546549, 552885, 544724, 544581, 546341, 546549, 543700, 546661, 551093, 557765, 562085, 573461, 552501, 545588, 554821, 570453, 576213, 552085, 549829, 565173, 687030, 573637, 552085, 545268, 548773, 546709, 544501, 543956, 561317, 562421, 577445, 566037, 554837, 545957, 562069, 575413, 557477, 549172, 554453, 546901, 564069, 568437, 552501, 620629, 553797]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [982816, 979968, 979552, 979904, 963936, 1063296, 988736, 979296, 988256, 987008, 1050464, 1154432, 1214240, 1146176, 1169696, 1027264, 1105216, 1199168, 1123264, 1108384, 1042432, 1153088, 1185568, 1181472, 1084000, 1307232, 1168480, 1176864, 990336, 1166592, 1305440, 1031552, 1201536, 986720, 1145344, 1185664, 1207360, 1109120, 1149984, 1043104, 989568, 1079328, 992736, 991904, 994848, 982464, 994912, 980416, 1051584, 1009984], "wall_ns": [1519533, 1459773, 1438781, 1314171, 1564750, 1524493, 1709679, 1490717, 1514317, 1721199, 1385036, 1343276, 1294188, 1291467, 1333915, 1578286, 1515165, 1490013, 1485837, 1513182, 1417340, 1300235, 1512317, 1497998, 1362043, 1337772, 1277755, 1323820, 1310891, 1314828, 1299243, 1437485, 1445884, 1504717, 1275868, 1428428, 1473149, 1381468, 1427228, 1350604, 1414124, 1405069, 1499277, 1304283, 1307468, 1284859, 1302427, 1393548, 1599694, 1536798]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [79072, 78336, 80416, 79232, 78848, 83264, 82208, 84896, 92800, 84864, 88384, 84640, 87648, 84960, 87328, 90400, 85600, 82688, 85792, 87168, 88672, 86688, 85760, 89760, 87840, 89056, 83744, 86464, 83104, 81792, 83968, 77440, 80736, 84000, 85696, 86592, 85376, 84768, 83776, 84768, 83680, 86080, 85216, 78592, 78688, 79712, 77664, 78656, 75712, 83616], "wall_ns": [445268, 452404, 448980, 449156, 437092, 445428, 441988, 425203, 438212, 427764, 426676, 424115, 427764, 425188, 423619, 435140, 422836, 432132, 444164, 461620, 447236, 447443, 438515, 450292, 425716, 434084, 452708, 445092, 454596, 446595, 447268, 442228, 421668, 438164, 440276, 442387, 442388, 431108, 438036, 441204, 424675, 422612, 426772, 426020, 423699, 424884, 423764, 425315, 426612, 447652]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [86720, 83488, 86432, 89664, 96960, 92544, 94784, 94976, 88896, 93696, 93984, 94144, 96672, 92672, 93632, 93888, 91520, 92768, 94688, 94752, 93792, 94656, 95040, 94176, 90912, 92896, 91968, 83168, 90944, 92832, 92544, 92672, 91392, 95488, 95744, 94240, 90752, 86336, 86848, 85888, 82464, 82176, 87712, 84800, 83200, 88864, 89440, 88416, 88192, 90944], "wall_ns": [436580, 426004, 436020, 436212, 429955, 441124, 439092, 457460, 456932, 464756, 448452, 444500, 453460, 432787, 433220, 442436, 445172, 459700, 458596, 429732, 442356, 447795, 446116, 439284, 428884, 449188, 451812, 453620, 454804, 442772, 451620, 449508, 433971, 425812, 430932, 433108, 439187, 431060, 427812, 436308, 510836, 571637, 635318, 498052, 634934, 605237, 533541, 446035, 432228, 454372]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [175968, 174144, 172640, 326176, 195968, 192448, 197088, 369120, 176448, 172704, 170528, 183744, 195680, 187232, 196608, 215712, 189056, 188704, 173952, 220800, 174592, 214688, 198208, 198272, 188000, 187008, 202304, 200192, 180320, 208448, 180544, 180512, 171712, 171584, 171296, 170848, 170912, 171744, 171008, 170656, 171936, 173056, 172608, 174112, 171648, 170432, 171648, 171456, 173088, 172224], "wall_ns": [299219, 274882, 270531, 272306, 269123, 270338, 269394, 272227, 270130, 268882, 315715, 272034, 358436, 337490, 269379, 275010, 270915, 269218, 375683, 271011, 271378, 307123, 290034, 266163, 266674, 267154, 266354, 266947, 263378, 266226, 267971, 266002, 266418, 271491, 268194, 269027, 268354, 268242, 268019, 268082, 266290, 268931, 267074, 268114, 267587, 268962, 266322, 268995, 267154, 268402]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [553408, 554816, 523712, 521824, 527392, 523616, 525920, 540832, 540000, 560960, 544960, 565056, 681536, 601888, 591968, 550400, 552704, 545952, 547264, 550944, 529120, 741920, 535424, 542560, 546496, 544864, 573888, 606048, 549056, 556928, 540992, 572160, 548096, 567136, 538688, 541568, 547744, 557728, 549792, 545088, 556992, 531712, 536224, 583040, 553632, 566944, 698592, 620576, 573248, 551712], "wall_ns": [713542, 643333, 644022, 832631, 659878, 649142, 698438, 721446, 636982, 661045, 638998, 646934, 649765, 638054, 634725, 637846, 635798, 642933, 651062, 638853, 629382, 646118, 621605, 634342, 638165, 629062, 657189, 636886, 631973, 635414, 634965, 629206, 628021, 656566, 650518, 652982, 655701, 648678, 577317, 560933, 567029, 564965, 564949, 554292, 713398, 664646, 677765, 680294, 660710, 645478]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [41504, 38336, 37024, 36064, 36480, 40096, 36512, 36640, 36960, 37088, 36352, 35648, 36608, 36704, 36352, 36832, 36288, 35712, 36960, 36032, 34944, 35776, 34752, 36640, 36064, 35552, 35744, 35584, 35744, 35808, 37088, 36576, 36288, 36480, 35776, 35648, 36800, 35968, 36608, 35296, 39296, 36224, 36000, 35360, 36384, 35584, 35360, 36096, 35584, 36832], "wall_ns": [153746, 131665, 130033, 129377, 128817, 128097, 130609, 127682, 129201, 127889, 127249, 126817, 127889, 128033, 126113, 126881, 130402, 126081, 126097, 128001, 130097, 130193, 127233, 127697, 127857, 127394, 129425, 131585, 128689, 127953, 128737, 129041, 128417, 137170, 127905, 131233, 126961, 127905, 128657, 127681, 127650, 127249, 126993, 129633, 127361, 129089, 128465, 128097, 128546, 125953]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [43552, 39232, 39008, 38976, 37664, 37664, 37888, 38656, 37664, 37440, 46464, 37344, 37120, 37472, 37760, 36032, 37280, 51936, 74688, 34752, 37696, 37120, 37472, 36288, 36608, 38144, 54272, 53664, 39456, 33984, 33088, 36736, 40256, 44256, 61248, 58304, 34336, 37216, 36608, 37568, 36928, 37088, 37888, 36832, 37600, 37408, 37504, 39488, 41088, 37824], "wall_ns": [168465, 135633, 159890, 241458, 134545, 132833, 129249, 149730, 155505, 153057, 129601, 129953, 132562, 130577, 130833, 128529, 128721, 129505, 130721, 136226, 129841, 130417, 130129, 127745, 130593, 129009, 127890, 129137, 129041, 127889, 127889, 127233, 130257, 128305, 127202, 129953, 130241, 128417, 129745, 128705, 128977, 128529, 129122, 133857, 130561, 130161, 127393, 128545, 129569, 129265]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [94368, 91776, 90752, 92000, 89984, 90272, 90560, 92672, 90944, 90912, 92032, 90560, 90912, 90880, 90656, 90976, 91136, 92032, 90144, 90848, 93024, 90752, 90528, 90880, 90912, 90848, 90720, 90048, 90752, 91872, 90784, 90880, 90816, 91328, 90304, 93824, 90816, 90880, 89152, 90720, 90688, 90688, 90912, 90944, 89792, 90912, 90848, 90624, 89760, 91136], "wall_ns": [738903, 471076, 297667, 289346, 287875, 301922, 295043, 300611, 290578, 291683, 293794, 296163, 286194, 286819, 294706, 287027, 293506, 287683, 294210, 285875, 288354, 285843, 297059, 294178, 291283, 299234, 292675, 288930, 288403, 285474, 289747, 301363, 291122, 298691, 289378, 294083, 289458, 285731, 298850, 293843, 291794, 300323, 292659, 290866, 296099, 291522, 292547, 287650, 295731, 286626]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [474368, 652864, 423264, 510144, 521216, 427232, 436192, 442912, 447392, 434112, 480192, 472512, 486240, 478336, 458976, 470080, 426528, 465312, 488864, 484832, 482624, 443392, 469760, 445824, 440512, 463520, 464640, 467840, 472544, 461152, 463040, 467904, 429248, 441472, 450880, 501408, 447712, 623136, 588832, 455744, 429920, 486816, 510496, 649248, 455520, 506976, 544384, 425280, 439552, 427328], "wall_ns": [673958, 634486, 705814, 706694, 681110, 684390, 642373, 709159, 689542, 683590, 678070, 642373, 660982, 635317, 639126, 664230, 646230, 655813, 767511, 937128, 813143, 653958, 697030, 915336, 735238, 717495, 691830, 701270, 681894, 682694, 640773, 674390, 628998, 626277, 631878, 633733, 675334, 685078, 699142, 707814, 664390, 689110, 650294, 696150, 686534, 682470, 687398, 645030, 691958, 699446]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [55936, 52992, 52288, 52096, 52096, 52032, 50816, 57184, 50880, 50880, 52032, 50976, 52896, 50880, 52128, 52864, 52736, 52000, 52128, 50784, 52256, 51200, 52544, 51872, 51712, 50080, 51200, 51872, 50528, 51872, 51072, 51136, 51840, 51200, 50976, 50688, 52064, 52128, 51840, 51104, 52096, 52480, 50848, 51776, 51104, 50720, 50656, 50912, 51072, 50816], "wall_ns": [19312232, 247762, 224162, 220434, 222242, 218706, 223554, 219858, 217026, 222466, 226274, 220418, 221506, 227378, 226306, 221858, 226370, 288754, 222642, 222466, 221298, 221682, 219634, 220146, 225122, 227298, 227154, 230450, 225634, 226626, 224914, 222210, 224625, 222482, 221314, 217810, 224466, 219794, 231554, 223234, 326867, 223330, 223058, 219954, 218354, 223794, 222530, 220530, 217217, 218818]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [55008, 53056, 55936, 51872, 52704, 52512, 53088, 52992, 53600, 52128, 54048, 51840, 51968, 53696, 51936, 52096, 50624, 51200, 53792, 53024, 52096, 52896, 52256, 50016, 49952, 56096, 51072, 53600, 50208, 52064, 51136, 51776, 51424, 51232, 51200, 51360, 49344, 49536, 48544, 49440, 51392, 51392, 52064, 51072, 50592, 49824, 51296, 52000, 49184, 50656], "wall_ns": [257170, 244242, 230562, 235122, 242786, 224226, 216882, 227090, 222770, 224258, 216338, 221938, 229730, 226450, 228546, 227042, 228482, 223906, 228530, 218225, 223154, 223810, 221298, 217634, 218370, 228962, 219554, 218594, 220274, 218754, 221074, 221186, 216322, 221810, 224561, 217346, 216578, 229810, 227122, 225522, 224578, 238738, 250354, 223762, 222146, 224770, 220370, 217938, 221506, 231170]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_cudnn_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [35808, 33088, 30656, 30912, 29600, 29344, 31648, 31520, 30464, 29760, 31168, 37728, 30080, 30464, 31328, 40224, 30688, 29632, 29568, 30272, 29248, 32576, 29472, 30304, 30624, 29824, 31616, 30496, 29152, 30752, 29568, 30656, 29696, 29664, 29952, 30784, 29824, 3210656, 40096, 30432, 29376, 31008, 29664, 31264, 30656, 29664, 31072, 29792, 28576, 29600], "wall_ns": [72209, 45712, 43472, 42993, 44832, 42305, 50800, 42736, 40257, 41328, 40896, 40929, 41824, 40865, 44880, 44048, 40913, 41856, 40832, 40337, 42784, 41440, 41985, 40960, 41841, 42800, 42416, 42353, 40864, 40864, 52129, 39392, 40385, 41872, 40912, 40929, 42240, 42560, 40961, 41248, 42641, 42656, 51264, 39857, 43136, 41504, 41073, 40512, 41217, 42608]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_cudnn_bf16", "warm": 10, "reps": 50, "dev_ns": [199904, 222624, 265280, 234464, 219552, 204768, 198368, 194016, 202464, 213792, 218816, 216384, 218720, 216480, 216544, 216480, 234848, 228096, 211712, 198368, 209280, 233984, 238272, 213248, 219872, 196832, 196320, 193344, 198560, 203584, 207520, 208928, 213536, 207360, 209152, 209664, 217472, 222784, 219648, 213152, 213248, 213280, 205536, 197184, 237280, 238272, 228000, 234016, 198400, 195520], "wall_ns": [222802, 207490, 213793, 232515, 216129, 212050, 213138, 208866, 204562, 208866, 204833, 205570, 206738, 206770, 204834, 223265, 210642, 207890, 204530, 209954, 213666, 229426, 221426, 204465, 208914, 217762, 232402, 241602, 236610, 240466, 247747, 232274, 235634, 235730, 235906, 213778, 209921, 208258, 265987, 249762, 246482, 224850, 217026, 205202, 200481, 210530, 224258, 239698, 240946, 243938]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_flash_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [36736, 35072, 35648, 35808, 34368, 34880, 34624, 35520, 35392, 34720, 35552, 34560, 41152, 35424, 34880, 34656, 34688, 33920, 34848, 34784, 34560, 34304, 34560, 34784, 35488, 35712, 34880, 34496, 35616, 34240, 36512, 34784, 35680, 35584, 35616, 34720, 34688, 34432, 34848, 34880, 34592, 35200, 35488, 35776, 34848, 34464, 34656, 34848, 34560, 34432], "wall_ns": [52177, 52112, 51072, 50961, 50144, 51073, 51168, 46289, 49808, 51233, 51056, 50352, 49985, 51184, 52001, 51008, 49041, 50016, 49104, 49281, 49920, 50097, 50192, 49969, 50192, 49185, 50000, 52336, 51153, 49968, 49953, 49184, 50065, 50016, 50160, 49025, 49104, 50177, 51024, 52129, 49376, 50833, 50048, 50336, 52001, 50000, 50161, 53136, 49937, 52448]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_flash_bf16", "warm": 10, "reps": 50, "dev_ns": [226560, 226208, 231904, 233952, 229952, 224448, 215808, 222048, 237920, 210816, 202912, 252096, 247584, 229760, 215936, 199200, 204576, 217824, 220576, 221280, 227104, 223872, 216992, 228736, 228512, 221568, 219040, 205920, 201728, 243168, 242880, 230304, 223264, 201792, 201184, 209440, 219008, 221440, 224992, 217568, 216768, 219328, 217536, 243328, 261824, 218240, 221600, 219136, 287264, 367168], "wall_ns": [259890, 332707, 229282, 237186, 219122, 215170, 219778, 211794, 217170, 210674, 226529, 227298, 345427, 267411, 250786, 225314, 210722, 226450, 242418, 289842, 277283, 257890, 240530, 250690, 248995, 253618, 213762, 219298, 277410, 252754, 240658, 228162, 211890, 215090, 229234, 236578, 232274, 234434, 249394, 246914, 233346, 248515, 244498, 214962, 244930, 267010, 253842, 240690, 211714, 211858]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [108256, 106464, 108096, 106368, 107040, 105984, 107424, 106496, 105376, 105024, 105504, 105120, 107136, 105632, 105344, 106400, 105440, 107456, 104672, 105856, 108224, 107136, 107232, 107424, 104800, 107072, 104512, 106016, 106432, 106528, 106048, 107104, 107296, 105248, 106016, 107072, 106976, 106336, 107360, 107104, 105984, 105760, 107136, 105664, 107232, 104800, 106112, 106880, 105376, 105120], "wall_ns": [130177, 119009, 119473, 117729, 117681, 126738, 116321, 117233, 117681, 118625, 126769, 116801, 123825, 121985, 117409, 117713, 117745, 117585, 124945, 118625, 125697, 122193, 124545, 126018, 117473, 117777, 116593, 117729, 117841, 116689, 115537, 125745, 116657, 116609, 124753, 123793, 125073, 123841, 119569, 124833, 116625, 124993, 119425, 115809, 116545, 115729, 123874, 116769, 123409, 123825]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_efficient_bf16", "warm": 10, "reps": 50, "dev_ns": [275776, 293600, 292576, 291264, 284352, 295968, 293856, 286304, 314080, 298592, 268704, 269920, 286784, 292448, 290592, 302752, 295296, 278912, 290176, 272320, 286880, 316992, 301408, 270048, 314368, 269920, 346752, 276096, 283200, 398528, 378464, 272704, 293184, 288832, 275808, 281952, 299808, 384480, 353216, 296640, 300224, 280256, 346144, 296416, 277952, 273216, 275840, 286816, 295296, 289568], "wall_ns": [345315, 320194, 292323, 282770, 311827, 321267, 304083, 281538, 278882, 296531, 307763, 304914, 302035, 314963, 306018, 298835, 284819, 297714, 331011, 319091, 280338, 284883, 287538, 294803, 282818, 286323, 284530, 280467, 279378, 280611, 282434, 281459, 276818, 286306, 276275, 288738, 280819, 286226, 280515, 282594, 285699, 304498, 293395, 350003, 292451, 340499, 399923, 437924, 309299, 301026]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_math_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [1293376, 1137632, 1096064, 1172704, 1207360, 1231648, 1172736, 1136992, 1126784, 1132640, 1275392, 1185664, 1101856, 1118528, 1104896, 1150240, 1119328, 1182688, 1359520, 1291648, 1582912, 1139456, 1280160, 1298400, 1420576, 1192736, 1302240, 1228896, 1261728, 1204384, 1232064, 1133952, 1103168, 1170016, 1115456, 1126784, 1123232, 1167648, 1236608, 1290304, 1274400, 1257216, 1182016, 1187104, 1288448, 1272480, 1208896, 1215072, 1162048, 1282048], "wall_ns": [1382028, 1297211, 1163867, 1389404, 1118857, 1175403, 1141530, 1129465, 1156187, 1179802, 1163338, 1336460, 1310843, 1194042, 1344540, 1155898, 1286428, 1307851, 1217115, 1307691, 1167706, 1266379, 1266539, 1217355, 1275675, 1206859, 1178570, 1149610, 1137866, 1231435, 1186682, 1147002, 1281755, 1352476, 1247419, 1363996, 1160346, 1276443, 1286987, 1267467, 1252283, 1210923, 1251963, 1263467, 1225706, 1350364, 1133770, 1274699, 1320860, 1317771]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_math_bf16", "warm": 10, "reps": 50, "dev_ns": [1504064, 1509664, 1507520, 1516928, 1502208, 1469632, 1451232, 1485760, 1455616, 1493568, 1469408, 1491968, 1496096, 1491136, 1491904, 1468160, 1499936, 1480576, 1476704, 1496224, 1473216, 1475488, 1495776, 1545984, 1576800, 1618432, 1385376, 1301856, 1456224, 1592448, 1558912, 1554496, 1559904, 1585632, 1581728, 1591648, 1597728, 1532736, 1610656, 1579296, 1603296, 1465120, 1337888, 1256512, 1234368, 1242496, 1239456, 1246496, 1239136, 1246784], "wall_ns": [1269291, 1256187, 1256795, 1259995, 1252203, 1246955, 1258683, 1250043, 1252378, 1247739, 1254539, 1249947, 1242011, 1240843, 1249115, 1257179, 1247291, 1255179, 1249019, 1256299, 1261450, 1255179, 1256347, 1251339, 1259323, 1254747, 1256523, 1251051, 1251291, 1251819, 1248107, 1256379, 1249211, 1259803, 1244379, 1258203, 1255483, 1248042, 1254091, 1251067, 1387260, 1281404, 1311755, 1336268, 1489229, 1302731, 1266619, 1263339, 1260491, 1263499]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_f32q_f32kv_pregathered", "warm": 10, "reps": 50, "dev_ns": [236224, 236032, 234240, 233760, 234592, 233536, 234176, 234112, 234400, 235232, 232544, 234144, 235552, 233376, 234080, 232512, 233024, 233440, 234048, 233440, 235360, 234528, 233984, 234336, 234144, 234176, 233792, 234496, 234208, 233472, 234080, 233056, 234432, 233664, 234304, 234176, 234400, 235040, 234976, 235360, 234144, 233536, 235296, 236608, 234368, 234592, 235296, 236128, 234304, 235232], "wall_ns": [266018, 247346, 248850, 248594, 247843, 248194, 249938, 246402, 246882, 246082, 246163, 245714, 246130, 246162, 244866, 245714, 244594, 246419, 245842, 245698, 245762, 245794, 246706, 244658, 246771, 246450, 245010, 246306, 245810, 245490, 245058, 246947, 246418, 247314, 249010, 246258, 246914, 246531, 244850, 249522, 247938, 248834, 247314, 247842, 247731, 245602, 247698, 244690, 244978, 245362]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/omega/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/omega/stderr.txt new file mode 100644 index 0000000..90adf16 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/omega/stderr.txt @@ -0,0 +1 @@ +LOCK_HELD_S .804653101 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/omega/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/omega/stdout.jsonl new file mode 100644 index 0000000..7a31059 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/omega/stdout.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":0,"first_call_ns":88536644,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[107441,107073,107521,107617,92049,107104,108065,107697,107153,107377,108465,108337,108129,108321,107825,107265,106977,109137,107265,106369,163617,106913,109873,107905,106737,107121,107809,108113,106641,107681,107264,106801,107777,108225,106881,108401,107521,107169,106609,107697,107841,63456,106641,107569,107425,107601,107185,107937,108001,107457],"chip_ns":[104705,104465,105025,104881,89536,104720,105425,105041,104577,104849,105825,105377,105361,105665,105121,104561,104449,106481,104577,103793,161137,104385,107265,105105,104241,104545,105329,105713,104145,105281,104640,104304,105377,105649,104209,105841,104945,104689,104017,105249,105153,61008,104177,104993,104929,105089,104833,105553,105345,104577]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":0,"first_call_ns":996665,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[208418,209346,208497,213121,209457,208434,216530,214866,212914,212162,214882,211410,214530,212322,208466,213538,213218,214178,213586,207762,215937,212273,208690,214050,216850,209378,210274,212258,212066,214930,214114,213922,209570,213490,211522,213713,208001,211426,210370,211970,214946,209730,214706,210610,216866,210594,215666,211442,211058,208370],"chip_ns":[107649,109537,108289,109361,109377,108433,107985,108081,108065,108897,110736,108321,108577,108225,107873,107873,107937,107809,107809,105073,107601,106641,107617,109041,106801,108545,107841,107552,110081,108513,107617,108193,107329,107649,106929,108593,107361,111201,108593,107505,108545,109409,107537,109569,111153,109345,112321,109681,109569,108929]} +{"case":"rope_32x128","rc":0,"mutant":0,"first_call_ns":552789,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[110305,111569,110225,110065,109121,109457,108785,109361,109905,110241,109761,110161,109681,110065,109473,110049,110001,110480,110737,111025,111185,110225,111041,109569,109921,109873,782295,112609,110577,110737,110305,110241,110241,110097,111137,109937,109921,110609,110401,110881,109921,62608,109441,109793,110945,110529,110481,110897,111137,110609],"chip_ns":[106065,107057,106113,105937,105105,105425,104721,105201,105761,105393,105521,105921,105585,105569,105025,105937,106016,106432,106513,106529,106929,106017,106721,105329,105761,105889,778263,107905,106161,106449,105953,105505,105969,106129,107009,105601,105857,106337,106225,106849,105889,58512,105473,105617,106641,105745,106529,106897,106785,106369]} +{"case":"swiglu_5632","rc":0,"mutant":0,"first_call_ns":644374,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[111585,112385,110801,111729,112177,116001,112609,111889,112417,111313,111473,112561,112689,112817,111297,112641,110657,111393,111185,117297,111041,109857,110465,110832,110433,110401,110641,116353,110113,110321,110945,111649,111169,112129,112385,111729,107025,111825,112369,111441,111873,111665,110657,110193,110161,105553,109313,110017,110369,110305],"chip_ns":[106097,106529,105105,106209,106241,108097,106497,106049,106689,105793,106081,106865,106689,106865,105809,107281,104929,105665,105409,106081,105505,104561,105088,105648,105168,105057,105393,111153,104833,104849,105393,105905,105473,106593,106561,106257,101505,106177,106449,105777,106305,106081,105073,104897,104769,100385,104081,104769,104401,104481]} +{"case":"swiglu_131072","rc":0,"mutant":0,"first_call_ns":877656,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[229122,228770,238594,235762,238994,229586,235074,235458,228786,232530,240194,233554,227250,235058,226338,235075,233266,231266,228130,231122,228706,178962,228066,231250,228242,234626,230162,232706,231442,227442,228994,231602,232258,231650,229714,231698,233394,231330,224274,234946,231826,228610,228850,749814,234114,231058,231698,227698,212482,231138],"chip_ns":[110385,108897,110625,110897,112305,109025,112353,110689,110689,110145,111713,109985,109953,108737,110689,110497,111041,110065,109553,110993,109681,60592,109313,111425,110817,109232,108833,111745,113601,109745,109841,111441,111073,109649,110464,108929,109729,110769,110625,110257,109905,108417,108049,630854,107889,106881,108913,109889,90513,108465]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":0,"first_call_ns":5102716,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[3709905,1784255,1202347,1185466,1146154,1126234,1128074,1229818,1220507,1151274,1169146,1353228,1386572,1297004,1439532,1175258,1246683,1333884,1232139,1360748,1311771,1269339,1185002,1218091,1155994,1133306,1137866,1314027,1247611,1332524,1320107,1346140,1226955,1160826,1151930,1152330,1183099,1166090,1156010,1104409,1130074,1207723,1206154,1157658,1123738,1185195,1113913,1109594,1195226,1127898],"chip_ns":[432708,420628,422884,420820,420548,420148,418900,521988,422340,430628,427795,518852,531076,508229,671174,422595,528884,529653,419764,531845,508980,423476,429299,424628,426036,426564,416452,523956,420323,582341,508516,528548,421476,418212,416211,416787,422372,428532,424868,421715,413539,478980,424371,423923,420803,423188,410467,394387,429107,425315]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":0,"first_call_ns":847464,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[541269,543509,548293,552404,700838,545556,1451613,548981,543925,555508,544853,543285,1169466,558197,636118,565493,642389,538997,545989,541268,547909,616501,582022,623957,671782,648790,539716,650790,661862,617893,548165,660374,673318,671909,548565,536613,552085,535796,546997,534389,546597,539460,544613,651798,573749,543348,544245,547589,591237,551029],"chip_ns":[419411,418244,417684,418083,572149,416995,1321116,415588,418260,424547,418419,419572,1025305,415252,486197,415668,499524,418180,416500,421427,420772,491572,451604,476388,519925,525685,415411,520389,519189,492212,418676,511925,519493,526020,416659,415940,416292,417043,418436,416596,419844,415139,419316,524085,427060,395187,417859,418500,420484,417748]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":0,"first_call_ns":4157572,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[2579063,2498038,2715831,2744104,2957178,2306564,2463766,2461541,2655287,2504614,2406117,2814632,2576614,2415125,2624231,2511829,2670232,2551911,2752872,2847129,2635015,2381957,2523462,2851161,2641639,2482661,2497142,2516118,2430789,2419253,2635815,2420133,2532038,2465862,2467509,2573926,2456165,2432134,2412101,2555990,2265284,2402885,2530806,2423701,2524502,2432837,2537974,2501877,2655159,2585318],"chip_ns":[1487340,1459325,1661583,1693231,1884929,1278682,1379083,1383533,1585838,1489341,1380349,1766080,1503165,1384972,1594398,1444716,1595471,1500076,1556015,1582639,1569470,1366189,1491454,1763791,1581646,1370395,1421980,1475389,1374524,1369773,1580718,1375931,1480717,1382284,1394332,1481118,1390363,1384764,1363645,1500638,1236251,1369500,1481517,1374779,1474316,1385853,1479133,1444141,1617311,1582446]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":0,"first_call_ns":488484,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[181057,177506,173745,175218,178801,167794,175233,173778,172497,171746,173489,236322,173714,173825,171154,174578,179489,171394,174577,175362,175073,174866,144977,176290,172209,171986,173185,173234,132881,173073,172594,172369,174258,174593,231522,173010,170673,174290,170737,180594,174897,177762,176481,173186,174514,147265,174241,173842,175425,175170],"chip_ns":[104577,104657,104657,105121,104657,100593,105809,104433,104705,105105,104673,166018,105120,106465,105809,107345,106337,105329,105857,106817,105073,107185,76753,104961,104881,104945,106129,106593,64640,106129,106209,105969,106113,106273,164786,105745,106449,107377,106049,106641,107809,106896,106769,105425,105537,78656,104977,105457,104737,104913]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/torch/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/torch/stderr.txt new file mode 100644 index 0000000..f7fda9e --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/torch/stderr.txt @@ -0,0 +1,15 @@ +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory efficient kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1240.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory Efficient attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:600.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1242.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:588.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1244.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Expected query, key and value to all be of dtype: {Half, BFloat16}. Got Query dtype: float, Key dtype: float, and Value dtype: float instead. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:110.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:922.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +LOCK_HELD_S 3.490689865 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/torch/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/torch/stdout.jsonl new file mode 100644 index 0000000..83f87f4 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r0/torch/stdout.jsonl @@ -0,0 +1,32 @@ +{"case": "rmsnorm_1x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [16064, 11008, 11648, 10240, 10464, 10272, 10240, 11136, 10016, 10080, 16800, 10176, 10048, 11136, 10560, 10432, 10624, 10432, 10368, 10496, 10816, 10656, 10624, 10592, 10624, 10496, 9248, 9792, 10848, 10624, 10368, 10592, 10464, 9824, 10432, 11072, 10272, 10528, 10272, 10272, 10624, 10688, 10688, 10432, 9952, 10432, 10464, 10432, 9728, 9248], "wall_ns": [48672, 23601, 19520, 21104, 18752, 19872, 19537, 19088, 18832, 20176, 18688, 19200, 18257, 23248, 18656, 19856, 18880, 19952, 19697, 20128, 18800, 18960, 18896, 19136, 18849, 20624, 18720, 20272, 18672, 18176, 19729, 19344, 18352, 19040, 19120, 19280, 18625, 18400, 19984, 20320, 18768, 19328, 19825, 18912, 18576, 19328, 19632, 18929, 18688, 19968]} +{"case": "rmsnorm_64x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [10944, 10528, 10240, 10304, 10240, 10144, 10016, 10400, 11008, 9440, 10400, 10272, 10144, 10368, 10112, 10400, 10720, 10432, 9344, 10336, 10688, 10944, 10112, 10368, 10368, 10528, 10112, 18080, 10112, 10208, 9632, 9408, 10880, 9248, 10528, 10272, 10304, 10272, 10496, 10976, 10144, 10144, 10208, 10560, 10336, 10368, 10400, 10176, 10272, 9760], "wall_ns": [345187, 49328, 39040, 38049, 37392, 36576, 37473, 46304, 37008, 36945, 36592, 37408, 37313, 36848, 37760, 36289, 37136, 38096, 37425, 37024, 37232, 37329, 37456, 36800, 37617, 37504, 36736, 37089, 37040, 37728, 37377, 38560, 38784, 37745, 37760, 38480, 40241, 49920, 38192, 37921, 37824, 37184, 37153, 36864, 37840, 36817, 37152, 37584, 37873, 37168]} +{"case": "rope_32x128", "backend": "torch_ops", "warm": 10, "reps": 50, "dev_ns": [43040, 36352, 35936, 35136, 35968, 35104, 34880, 36480, 33792, 34848, 35392, 35072, 34944, 35776, 35040, 35712, 35200, 35360, 34912, 34816, 36864, 40640, 35392, 35296, 34752, 35424, 35232, 35104, 35168, 35744, 34784, 36352, 35392, 35136, 35680, 35296, 35936, 35200, 34976, 35168, 35072, 35488, 35008, 35936, 39200, 36320, 35392, 35072, 35328, 34848], "wall_ns": [71329, 46512, 42560, 42001, 42272, 42161, 42496, 44208, 43841, 44800, 44128, 45105, 44064, 44849, 45760, 44080, 47329, 46752, 43905, 44320, 44208, 43905, 43120, 43856, 46321, 43728, 43745, 43872, 44144, 44225, 44352, 46161, 46000, 44720, 44369, 45744, 44497, 43856, 44208, 47105, 43712, 43649, 44176, 43344, 45105, 44912, 46032, 46849, 45552, 45169]} +{"case": "swiglu_5632", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [14560, 12800, 12832, 12576, 12672, 11744, 13312, 13248, 12512, 12192, 13376, 13248, 12640, 12192, 12128, 12832, 12384, 11968, 12768, 14880, 12224, 12832, 12384, 12288, 11712, 13120, 12288, 12096, 12896, 12576, 11904, 12896, 12480, 12000, 12928, 12192, 12096, 12960, 12320, 12096, 12896, 13120, 12384, 12160, 12832, 12288, 12096, 12832, 12320, 12576], "wall_ns": [46096, 36401, 31376, 31872, 32417, 29424, 31664, 31744, 32257, 32160, 32160, 31233, 30048, 30288, 29040, 29201, 31712, 29888, 29712, 29537, 28960, 29104, 30016, 30337, 30672, 29056, 32064, 30033, 31184, 29232, 29441, 28064, 28240, 34208, 28801, 28272, 30864, 28400, 32769, 29904, 29568, 31568, 31521, 29648, 32848, 29489, 29296, 29904, 34048, 29537]} +{"case": "swiglu_131072", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [14496, 12256, 11584, 11808, 11872, 12896, 12224, 11872, 12896, 13056, 12288, 11904, 12896, 12096, 12064, 12032, 11712, 11840, 11936, 13024, 12128, 11904, 12896, 13056, 12032, 12128, 12864, 12320, 12000, 12896, 12224, 12000, 12832, 5472, 11936, 11808, 11936, 11808, 13280, 12160, 12032, 12768, 12032, 11808, 12544, 12192, 11936, 11872, 11616, 12128], "wall_ns": [62673, 102272, 58481, 57248, 58369, 57088, 56609, 56272, 56129, 56528, 56177, 57776, 57585, 58384, 57009, 56368, 56081, 55984, 56161, 56208, 56097, 56848, 56385, 57568, 55665, 55872, 56385, 56192, 56305, 57728, 56353, 55792, 56929, 57616, 56433, 56688, 56945, 56400, 55441, 55952, 56305, 56528, 57153, 56816, 56353, 58192, 57457, 62112, 57441, 57776]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [236928, 237184, 238208, 237344, 235552, 236160, 239520, 238496, 237344, 236288, 235200, 238304, 236512, 235488, 313792, 242400, 237344, 237504, 235392, 242656, 235584, 233856, 235520, 234528, 234112, 236096, 236480, 237472, 235232, 235168, 234432, 236448, 234720, 235712, 235648, 234336, 234272, 234176, 235520, 236320, 235968, 240000, 235424, 269600, 239488, 272192, 278400, 273728, 236256, 236352], "wall_ns": [1983585, 1748479, 558309, 547365, 546661, 543877, 547396, 557045, 571109, 566261, 551573, 543525, 566101, 562133, 550228, 548261, 560165, 553301, 567317, 547573, 546772, 548837, 548613, 547061, 545444, 554725, 565333, 578821, 667318, 853880, 566436, 579029, 764967, 645414, 576325, 567189, 550837, 550660, 544725, 545269, 545045, 545140, 547461, 549333, 568341, 573061, 552229, 550533, 554244, 569029]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [986432, 984736, 989408, 996384, 1004000, 1007840, 975744, 975776, 968192, 966848, 963200, 982752, 995136, 996416, 988384, 980704, 986400, 980256, 974048, 970496, 973504, 970688, 980192, 976352, 973440, 987872, 975296, 980384, 985696, 984352, 1053504, 1026144, 1167584, 1068832, 979008, 984864, 984928, 1075104, 1047456, 979392, 1046912, 1069664, 1002720, 999456, 989664, 1021056, 980384, 1003936, 994656, 987680], "wall_ns": [1938064, 1345308, 1300716, 1326155, 1308604, 1326699, 1307596, 1296491, 1310235, 1296956, 1310811, 1301371, 1292156, 1300859, 1302091, 1313436, 1308571, 1283804, 1291115, 1299147, 1310811, 1304364, 1296235, 1297260, 1304651, 1290731, 1290299, 1357724, 1554750, 1482637, 1380492, 1460269, 1438316, 1291979, 1305356, 1296203, 1276107, 1313548, 1371132, 1283675, 1280971, 1281387, 1284171, 1271868, 1277579, 1273755, 1283019, 1283787, 1276875, 1284908]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [91584, 88864, 87552, 87520, 86144, 88832, 87840, 86624, 89792, 89280, 88672, 86208, 88416, 89472, 87872, 87008, 91648, 87712, 88256, 88960, 90976, 87840, 89920, 89216, 91904, 87392, 91072, 88160, 86400, 89984, 86912, 88224, 89504, 87424, 92544, 90944, 86176, 87808, 88608, 90016, 87296, 88352, 92704, 88096, 89664, 88416, 92096, 85312, 89152, 88736], "wall_ns": [425572, 433604, 429620, 429827, 426804, 497684, 447028, 716215, 492996, 423204, 446148, 642805, 437124, 451428, 548885, 424851, 441412, 434804, 427908, 425908, 424995, 424260, 427716, 436995, 442788, 446836, 449428, 446548, 443316, 434036, 438132, 421811, 430884, 421524, 429923, 421236, 432804, 420483, 431012, 421492, 429316, 424163, 423060, 419540, 424675, 420852, 426980, 425924, 446371, 482213]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [171712, 94080, 96352, 95008, 100384, 104096, 95040, 101184, 94016, 94240, 103200, 97760, 100032, 105824, 101952, 101344, 96416, 99936, 95200, 98880, 102688, 142112, 141600, 122880, 106688, 110592, 106944, 103360, 105856, 106624, 104704, 106080, 104672, 123264, 104032, 126176, 124608, 121952, 102336, 96224, 102240, 104896, 106496, 102912, 102336, 104224, 103360, 99104, 101856, 94016], "wall_ns": [38758482, 454708, 429540, 434195, 431060, 431044, 431044, 428851, 428980, 438548, 468612, 450452, 457908, 444308, 441636, 427268, 439811, 465828, 471669, 457780, 440819, 445620, 447396, 434948, 26240501, 455316, 427908, 447860, 465716, 467492, 461652, 2483861, 594294, 35218195, 573829, 446436, 450356, 430771, 440180, 422740, 426916, 423331, 439124, 425060, 463636, 426900, 447316, 455332, 460116, 453556]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [175232, 171168, 173248, 171040, 172032, 172576, 171648, 170592, 171744, 172544, 171520, 172608, 170528, 172672, 172640, 170912, 170528, 172736, 170816, 171680, 170976, 171104, 172736, 170880, 173024, 172032, 171136, 171424, 174848, 170080, 170144, 171072, 172864, 172192, 172736, 171520, 170816, 170720, 173024, 172064, 171744, 171200, 171968, 171904, 172672, 172864, 171936, 172032, 171200, 171872], "wall_ns": [297955, 270610, 265570, 266995, 268162, 268002, 264323, 266674, 264306, 299299, 265970, 267043, 265346, 266994, 263218, 267043, 265250, 263106, 264099, 263170, 264226, 266243, 265106, 267426, 266083, 266082, 38303422, 266082, 267763, 267122, 265154, 264179, 266290, 267762, 265363, 267410, 266866, 267347, 267058, 266098, 265235, 270546, 267122, 266259, 266050, 268322, 264115, 265250, 263922, 266947]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [568768, 596288, 608128, 520064, 490208, 562720, 558880, 454656, 495872, 633024, 572992, 516352, 516352, 526304, 575680, 626912, 468192, 452576, 480288, 472480, 465600, 463328, 483776, 461120, 483776, 486240, 453696, 489760, 518656, 528800, 526464, 532800, 525344, 490240, 551936, 538560, 454272, 695168, 547456, 560896, 571424, 543040, 524672, 570784, 528544, 480768, 465312, 469504, 459936, 466208], "wall_ns": [606805, 570613, 569045, 571221, 562933, 564069, 19727900, 582805, 570501, 558261, 570213, 559061, 562085, 557941, 557716, 573493, 588614, 571365, 578277, 569141, 570277, 571285, 566325, 570212, 19430010, 568405, 568053, 564277, 566117, 571093, 568133, 566341, 567077, 565557, 566293, 569060, 565285, 568005, 579669, 566981, 35267540, 700758, 571653, 565781, 584053, 767671, 578149, 565125, 670934, 584085]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [41888, 38912, 46144, 37216, 36768, 40480, 36320, 36160, 37408, 36704, 36960, 36704, 36768, 36864, 37664, 36576, 34976, 36704, 36864, 35808, 35136, 36576, 36800, 36224, 40672, 36704, 36608, 37984, 35840, 35456, 36576, 36384, 36832, 37248, 35360, 36800, 35904, 35840, 36192, 36544, 36768, 36512, 35840, 36672, 36736, 36288, 36896, 41024, 36832, 37600], "wall_ns": [166305, 136545, 130737, 130993, 140914, 130977, 128849, 128225, 127073, 129857, 127409, 130818, 129697, 131185, 130817, 131073, 129281, 127649, 130001, 131378, 129009, 131985, 128033, 129649, 126769, 128433, 128178, 129265, 129585, 129921, 127313, 129633, 128849, 129089, 130882, 129361, 128273, 132273, 130065, 129793, 129249, 129746, 131457, 130529, 133489, 127761, 127057, 127921, 127633, 128066]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [41376, 38528, 38880, 38208, 37504, 46240, 38176, 39328, 37056, 39552, 37440, 36032, 37824, 37472, 37440, 36544, 36896, 37504, 36800, 36960, 37184, 36640, 36800, 37152, 37664, 38080, 36672, 39584, 37760, 38944, 36864, 36608, 36832, 36608, 37216, 36384, 36704, 37280, 36960, 36896, 36896, 36448, 37088, 37312, 37088, 37952, 38976, 40480, 37024, 40608], "wall_ns": [159089, 132226, 132161, 132001, 130625, 130913, 129665, 130849, 142626, 129537, 129265, 130497, 130497, 129057, 132626, 129841, 130689, 131057, 128785, 132257, 130721, 129650, 129937, 132097, 128481, 130017, 129121, 129537, 132050, 134785, 131185, 132001, 130961, 130321, 129841, 129746, 129985, 131249, 128049, 130465, 130993, 128881, 130241, 130162, 128785, 129937, 129553, 130145, 129361, 130929]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [95616, 90272, 93056, 91936, 93312, 90560, 95808, 90880, 93216, 91776, 93312, 92736, 91616, 92512, 91360, 90304, 92992, 91296, 91616, 91296, 92160, 92256, 90976, 91008, 90656, 92480, 91808, 88640, 90016, 91392, 90592, 90240, 93280, 91552, 90656, 92800, 90432, 91328, 92288, 89888, 90464, 90752, 91136, 91040, 91936, 92288, 92064, 91296, 92384, 91872], "wall_ns": [684646, 483156, 297443, 288658, 296643, 291810, 288691, 286530, 298979, 287634, 301155, 301699, 301170, 294387, 299234, 289683, 295858, 572117, 288563, 288051, 301826, 299523, 299026, 296819, 288850, 292435, 298819, 291570, 293075, 292866, 286355, 287650, 295891, 294002, 295331, 290419, 297090, 286339, 285234, 287075, 287858, 298659, 298994, 291699, 298995, 299266, 296563, 287058, 287891, 287522]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [471744, 468288, 463680, 464608, 445440, 430336, 429600, 435424, 428512, 462784, 480544, 432544, 435616, 425568, 447744, 469888, 478112, 476512, 467584, 431424, 488256, 489920, 436288, 452032, 459776, 466240, 461664, 467808, 474496, 473216, 517984, 447296, 510816, 490400, 656704, 549856, 437216, 438784, 427616, 683648, 447680, 491072, 543136, 551040, 463200, 499008, 489664, 428576, 458016, 485728], "wall_ns": [723366, 686870, 705639, 669541, 680998, 677606, 690326, 730423, 638357, 691382, 657686, 639510, 651269, 669270, 683334, 779303, 860263, 960153, 665126, 746838, 995433, 716406, 782231, 659286, 704726, 755542, 717351, 705062, 637381, 665606, 634134, 646613, 641302, 650822, 776438, 748119, 707238, 694182, 694358, 724695, 722982, 689382, 674438, 742598, 713366, 727607, 667654, 708374, 629589, 659046]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [56512, 54272, 52320, 52704, 53056, 53760, 51904, 53120, 53312, 52096, 53120, 51200, 52000, 51648, 51584, 53216, 52480, 51776, 51936, 56416, 51968, 52544, 52768, 50496, 51296, 50976, 51104, 50656, 52256, 51904, 52128, 52992, 52960, 52096, 53184, 50816, 50880, 52096, 51264, 51776, 51008, 51104, 51744, 51264, 50304, 51904, 53248, 52128, 52064, 52288], "wall_ns": [29104782, 262722, 224722, 216882, 220498, 219426, 218482, 219698, 228850, 219362, 221506, 218498, 230082, 230610, 239314, 228738, 235970, 232626, 223106, 224018, 333891, 217746, 219506, 229058, 302370, 230130, 231362, 229858, 232626, 222850, 219634, 223410, 220722, 217634, 229874, 229458, 228850, 223554, 294418, 229810, 222450, 222434, 220786, 222482, 219634, 217202, 219586, 223778, 223762, 216210]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [53216, 51712, 51904, 52160, 52128, 52736, 52224, 59392, 52160, 50976, 52864, 52192, 52160, 51936, 52160, 51200, 50400, 52160, 51872, 52192, 51808, 51456, 52000, 52768, 53376, 56800, 52800, 52160, 52064, 50912, 51136, 52064, 50976, 51456, 50976, 51552, 50912, 50112, 51456, 51040, 52000, 52864, 51680, 51840, 50944, 51904, 54208, 53088, 51264, 51328], "wall_ns": [258466, 245250, 224386, 220530, 224402, 224706, 222626, 225698, 228338, 229026, 234194, 225474, 360691, 225858, 219586, 218610, 223026, 222626, 220338, 217442, 220690, 217425, 217634, 217586, 220594, 217554, 221490, 217362, 219762, 219858, 218322, 218466, 222481, 217762, 220418, 217490, 219474, 218658, 228834, 223714, 218898, 224290, 233682, 235074, 232034, 228178, 228370, 230434, 224770, 227042]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_cudnn_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [33440, 30784, 29344, 30592, 29600, 31232, 29088, 29504, 31456, 30624, 31648, 29600, 29984, 31616, 31520, 29824, 30336, 31872, 29408, 30592, 31648, 31712, 29216, 30080, 31520, 30208, 30368, 29088, 29344, 28544, 30560, 30656, 30304, 30592, 28640, 28480, 29792, 29888, 30144, 30432, 29216, 27968, 32512, 30688, 32960, 28000, 28448, 28032, 30368, 29472], "wall_ns": [48128, 42897, 41712, 43616, 39809, 40496, 41921, 41216, 44640, 43873, 41872, 49313, 43792, 43792, 39265, 43584, 42528, 39329, 49968, 40849, 42016, 39344, 43457, 43856, 41040, 42273, 46416, 43121, 41856, 39872, 41137, 42496, 41024, 41809, 40800, 42896, 40481, 50816, 41617, 41168, 45760, 48705, 49136, 41953, 40880, 41632, 42913, 40960, 41920, 39329]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_cudnn_bf16", "warm": 10, "reps": 50, "dev_ns": [197088, 206464, 200096, 198240, 198240, 196224, 196320, 210048, 220064, 206496, 198304, 208320, 201376, 217344, 198784, 196384, 200672, 209632, 213696, 215712, 220864, 228224, 222816, 227232, 219712, 219744, 221472, 203456, 198208, 201280, 204640, 201760, 204544, 198240, 197760, 198464, 202976, 206752, 225600, 245504, 216512, 216192, 199392, 206688, 197408, 200480, 199328, 201472, 198656, 212096], "wall_ns": [235490, 233938, 235379, 243282, 239634, 242770, 235234, 234338, 218050, 213714, 215218, 210849, 213826, 211826, 219394, 210818, 219266, 209858, 231090, 246594, 247778, 236770, 218530, 219282, 215842, 220034, 215618, 208065, 210018, 222242, 226130, 222050, 236354, 229314, 237170, 220770, 239810, 223346, 227314, 229346, 225938, 207074, 213298, 212114, 210641, 206674, 207954, 214994, 212786, 218898]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_flash_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [36288, 34944, 36608, 34976, 34624, 35392, 35552, 35520, 35488, 35264, 35520, 34880, 34816, 36768, 34016, 34912, 35968, 35520, 35648, 34816, 34848, 34848, 35616, 35104, 35264, 35872, 34624, 35904, 34848, 34752, 34144, 34720, 34848, 33984, 34816, 35040, 35744, 34560, 34368, 36800, 35808, 35872, 34624, 36800, 34912, 35168, 34208, 34784, 36288, 34816], "wall_ns": [59040, 53025, 50928, 53200, 51313, 51936, 50257, 52272, 52113, 50928, 54497, 49680, 51264, 52145, 50464, 51681, 52240, 50049, 51152, 50017, 50224, 49888, 51313, 50000, 51169, 50032, 51281, 51024, 50305, 49888, 51296, 49937, 50144, 50129, 51008, 50049, 50256, 53057, 50176, 52000, 50305, 50704, 50369, 52016, 50177, 50096, 51153, 49968, 51249, 54816]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_flash_bf16", "warm": 10, "reps": 50, "dev_ns": [205344, 206016, 212576, 229536, 231520, 232992, 230912, 227776, 230368, 228544, 227968, 230944, 219968, 267424, 208832, 211616, 217280, 313696, 325632, 238752, 339200, 230208, 231168, 230912, 231008, 220864, 220544, 216576, 212576, 208736, 204032, 222976, 391936, 229024, 238016, 228992, 230176, 234688, 231488, 264704, 240672, 250592, 244320, 212672, 213440, 212608, 214816, 211776, 211136, 207520], "wall_ns": [289522, 267235, 261922, 249842, 228130, 223794, 226498, 231490, 218834, 229282, 225234, 229266, 234370, 221170, 220962, 224290, 226322, 225938, 221266, 231394, 233234, 232370, 220210, 228146, 218242, 218833, 215922, 226306, 223234, 226450, 220594, 228514, 224978, 220130, 223138, 221154, 221106, 221970, 254386, 256754, 261283, 261442, 220898, 219234, 217906, 221137, 251795, 252738, 235442, 223154]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [109216, 106144, 106528, 107200, 106944, 106880, 107296, 106240, 105120, 106240, 107328, 106048, 106240, 106304, 107136, 106432, 106944, 106208, 107328, 105184, 107392, 109664, 105536, 106304, 105824, 105056, 105888, 107328, 105696, 107328, 107488, 105728, 107360, 107744, 108128, 106528, 107232, 107296, 106752, 108064, 105536, 106848, 107488, 107232, 105472, 107296, 108320, 108320, 106304, 106400], "wall_ns": [141121, 118193, 125009, 117329, 116641, 118881, 125730, 119745, 123649, 123793, 124849, 117681, 123825, 123873, 124721, 117745, 123953, 116497, 116753, 117617, 115633, 117729, 125889, 126050, 116625, 117521, 125009, 115585, 117793, 116625, 117825, 127921, 117953, 118225, 126993, 117553, 128273, 118609, 125729, 125793, 125922, 117665, 117761, 124785, 116529, 116609, 119409, 118289, 117409, 117601]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_efficient_bf16", "warm": 10, "reps": 50, "dev_ns": [287296, 291520, 284256, 293056, 284992, 272832, 274112, 274112, 277600, 278336, 278560, 295808, 322688, 322112, 271680, 271008, 272192, 281376, 280192, 273280, 271104, 270208, 270688, 285376, 280096, 271424, 268896, 269824, 288608, 290496, 273984, 291712, 289184, 306208, 312288, 294592, 311008, 305728, 318144, 311904, 276512, 308384, 290624, 283360, 270304, 285440, 298816, 316064, 300352, 312896], "wall_ns": [333411, 290770, 326163, 319219, 288834, 289779, 306931, 305298, 316691, 323027, 316435, 319634, 305715, 328659, 330803, 319011, 281506, 287843, 296978, 298755, 283570, 283363, 318290, 294499, 304867, 434068, 351555, 401939, 329443, 311571, 316178, 323507, 313411, 386275, 404660, 287842, 297891, 347091, 357923, 310611, 332435, 315763, 287922, 311139, 327651, 295714, 289683, 312210, 303379, 316051]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_math_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [1290528, 1110176, 1243520, 1263392, 1240224, 1278816, 1131232, 1199616, 1241024, 1239552, 1214592, 1302176, 1115360, 1158688, 1181024, 1139968, 1451680, 1255808, 1279232, 1303072, 1403840, 1162080, 1245888, 1315968, 1252192, 1280224, 1121696, 1203360, 1227616, 1221888, 1267040, 1446016, 1325312, 1117440, 1092128, 1123584, 1331488, 1148608, 1318784, 1290752, 1206112, 1305792, 1105920, 1231488, 1205472, 1201824, 1147072, 1124832, 1272160, 1157728], "wall_ns": [1160954, 1239003, 1254634, 1252651, 1138106, 1256891, 1184491, 1117033, 1191931, 1272667, 1274283, 1283483, 1267547, 1281836, 1255562, 1268571, 1259324, 1251114, 1240907, 1267387, 1244187, 1322796, 1297579, 1315019, 1329836, 1314428, 1309771, 1301675, 1295756, 1284043, 1322043, 1311532, 1310187, 1300444, 1299435, 1305323, 1292108, 1333211, 1311692, 1305819, 1270379, 1297244, 1318939, 1291419, 1302748, 1310331, 1292635, 1311292, 1291243, 1334348]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_math_bf16", "warm": 10, "reps": 50, "dev_ns": [1267968, 1283360, 1489344, 1295200, 1332928, 1251040, 1264960, 1315520, 1365120, 1281568, 1278144, 1260864, 1251392, 1254560, 1249664, 1249408, 1255296, 1275360, 1266688, 1244672, 1264480, 1240448, 1262016, 1258912, 1260544, 1259520, 1251776, 1268864, 1265920, 1271168, 1264704, 1273984, 1259552, 1248352, 1270208, 1269920, 1262688, 1253504, 1266816, 1257792, 1254688, 1252960, 1259776, 1252832, 1251648, 1247296, 1250496, 1258976, 1254528, 1259904], "wall_ns": [1285803, 1284027, 1282651, 1276891, 1277067, 1276604, 1290923, 1293275, 1296491, 1304956, 1298395, 1296140, 1291067, 1296155, 1288955, 1288620, 1280459, 1300011, 1287995, 1289052, 1292283, 1293083, 1284491, 1294572, 1288027, 1293819, 1288043, 1280828, 1285675, 1289515, 1299419, 1296076, 1308427, 1286555, 1296428, 1295163, 1298315, 1286716, 1295307, 1292219, 1280827, 1300988, 1294059, 1306699, 1280668, 1292027, 1296299, 1290059, 1293628, 1304027]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_f32q_f32kv_pregathered", "warm": 10, "reps": 50, "dev_ns": [240576, 238688, 237152, 235072, 236608, 238240, 235136, 235104, 234848, 238688, 236448, 235584, 236416, 236384, 235936, 236288, 234272, 237600, 236384, 237248, 235776, 236992, 238656, 237600, 235552, 237344, 237184, 235456, 235520, 235552, 235488, 236544, 236416, 237504, 237344, 237504, 235712, 235936, 237248, 235776, 235328, 235904, 236448, 236736, 236672, 236736, 237568, 236768, 237376, 235424], "wall_ns": [271698, 249474, 247554, 255907, 246866, 247570, 247762, 247794, 249475, 247634, 248770, 255042, 247746, 256002, 247859, 247426, 255954, 254690, 255506, 254675, 256018, 254546, 254978, 253859, 256066, 248722, 254914, 255762, 254947, 255970, 255986, 247794, 257107, 255234, 255042, 256242, 248498, 247987, 254754, 295874, 256019, 318850, 358211, 315779, 257938, 249539, 255954, 354707, 249714, 257122]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/omega/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/omega/stderr.txt new file mode 100644 index 0000000..2ffe5be --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/omega/stderr.txt @@ -0,0 +1 @@ +LOCK_HELD_S .945308408 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/omega/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/omega/stdout.jsonl new file mode 100644 index 0000000..9a966ca --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/omega/stdout.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":0,"first_call_ns":90441589,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[106209,112721,106368,107313,106017,108177,83553,106897,106673,107121,106017,107553,106417,106673,106176,107041,106769,106449,106561,109249,106369,111025,106481,107249,107057,70592,106465,106849,106881,106849,106609,108401,106817,108177,107057,106961,106193,106593,107025,106208,106257,107249,107201,107025,73105,107473,106993,106561,107841,110849],"chip_ns":[103777,110337,103920,104577,103521,105761,81041,104353,104081,104465,103537,105105,103793,104209,103712,104609,104305,104049,104097,106769,103905,108561,103777,104593,104529,68288,103985,104385,104481,104481,103985,106097,104161,105617,104753,104625,103793,104081,104481,103920,103905,104769,104433,104545,70801,105185,104417,104017,105329,108449]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":0,"first_call_ns":904264,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[205442,209185,211121,178242,205074,208114,207186,212162,208002,217506,206097,207793,211522,207442,205890,209586,204242,205218,206338,210785,209377,212946,212386,211314,205938,211458,177634,206178,205473,209010,210690,208882,210130,211346,208114,210306,209650,209218,204594,209889,210529,211746,209474,208626,208946,207506,208562,208098,205938,182513],"chip_ns":[106657,106161,108129,77184,106017,109185,107073,111041,107521,118913,106337,107553,105761,108177,106577,109361,105825,106401,105281,107281,105521,107153,106513,107617,105921,107632,75857,107441,106225,107089,105617,106609,105553,106640,105313,107585,105857,107217,105393,106897,105665,106945,105889,107217,105728,107057,105601,107537,106689,85089]} +{"case":"rope_32x128","rc":0,"mutant":0,"first_call_ns":527717,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[107937,107985,117873,107841,107921,108129,109153,107281,108417,108161,109073,107713,110913,107889,107633,107872,112641,107297,111361,107937,108705,107745,109313,107665,107697,109169,108689,655030,108977,109393,110208,68161,111249,108081,603381,109393,66833,108673,107841,108401,109217,108785,108721,108881,108400,109089,109409,108801,107857,108929],"chip_ns":[103841,103761,114001,103713,103793,103825,104977,103377,104401,104145,104913,103505,106817,103361,103713,103744,108433,103281,107297,103313,104593,103457,105121,103537,103729,104897,104545,650694,104593,105009,105680,64208,106961,104049,599157,105297,62881,104577,103873,104385,104673,104625,104577,104641,104256,104881,105105,104593,103681,104641]} +{"case":"swiglu_5632","rc":0,"mutant":0,"first_call_ns":551941,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[111105,109569,109441,109281,110241,109409,114177,109697,110129,110321,109313,109345,110129,109136,109857,109537,110449,109697,111009,110545,110561,108849,109345,109025,110097,109857,142625,109345,108801,110065,109089,109537,109025,111265,109201,109873,109249,109745,110033,110577,109281,109761,109153,113329,109249,109136,109409,109217,109649,109313],"chip_ns":[105601,103809,104081,103793,104945,103777,105025,104209,104785,104881,103921,103921,104736,103744,104288,104145,105025,104161,105713,104833,105153,103825,104081,103777,104577,104369,136961,103617,103425,104401,103729,104081,103569,106097,103601,104321,103905,104065,104769,104785,103873,104241,103665,104241,103920,103936,104065,103889,104161,103857]} +{"case":"swiglu_131072","rc":0,"mutant":0,"first_call_ns":826071,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[178226,227890,223394,228898,232146,224338,228066,223074,225714,231042,223794,232242,225026,227906,224498,232034,222818,188626,226786,234434,223378,231042,228178,227762,230002,229186,234498,231650,228802,225810,229906,228306,230210,228978,230450,225986,224114,226706,216658,230930,228402,233026,233666,227810,229602,231698,228882,236290,226770,234226],"chip_ns":[63216,109697,107264,107280,107121,106705,105825,106417,105457,107889,106097,107377,106369,106881,106593,107105,106112,69296,107665,107121,106913,107168,106465,108209,109105,108641,108561,110673,107649,108609,106449,107585,107376,108225,107313,107265,107937,107297,99089,107025,106529,107329,107713,106625,107745,107616,108129,107585,107713,108017]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":0,"first_call_ns":5166941,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1113194,1210843,1165914,1184026,1209067,1198106,1162282,1162891,1152058,1105769,1167675,1165546,1140394,1139002,1124857,1110346,1121866,1133386,1114314,1191818,1181914,1271291,1253611,1278540,1120761,1186843,1162058,1224987,1411948,1296027,1190411,1150554,1200426,1255963,1281067,1301484,1360491,1299004,1218554,1191083,1398316,1295323,1354092,1276379,1399629,1220970,1202827,1211626,1339692,1339980],"chip_ns":[424404,425332,421972,418899,415140,425203,426579,425700,425028,375779,428148,421332,424756,425300,426259,425524,426900,426644,413460,422724,426483,425443,411603,423172,423107,424292,421924,403860,524293,421380,418499,421892,419236,420564,512996,424660,523924,423348,424307,420036,529397,424003,434404,420291,478629,392163,421972,420307,525333,498821]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":0,"first_call_ns":846951,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[550516,553205,649542,707014,655846,556405,540404,543189,530389,514484,540709,632677,685814,551749,492805,548500,533621,669862,652662,533748,560213,663142,666246,552741,552036,532213,522053,536628,528213,541765,597765,653958,543124,550069,532773,620885,675414,548981,532997,658101,558101,549557,550629,632101,907064,559205,822167,754871,657062,540948],"chip_ns":[415603,416116,495509,517461,504677,412244,419875,415108,412676,386499,412852,517540,517476,415459,380772,413267,416020,515829,508997,413763,415364,516021,516677,415812,415955,414100,394308,419779,416148,419028,489252,516229,414131,412564,417252,476356,541765,418756,413459,472564,417876,414212,417220,521892,796167,416052,707318,621654,517381,416931]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":0,"first_call_ns":3855970,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[2729624,2598103,2640887,2598230,2579430,2366357,2747416,2830777,2441749,2681191,2815672,2676775,2357989,2597831,2603815,2679496,2564551,2624966,2632535,2659815,2453221,2547126,2529942,2506678,2493030,2489845,2728616,2493765,2521110,2445461,2507686,2468294,2508438,2422917,2507286,2600135,2870106,2402149,2486806,2588983,2447142,2299732,2556038,2608679,2498518,2421349,2446694,2634775,2475830,2404293],"chip_ns":[1684847,1581102,1575758,1535118,1531518,1359963,1678863,1767328,1430429,1678862,1755551,1621085,1361467,1574669,1532526,1566829,1541565,1549390,1585709,1585661,1440732,1485006,1468220,1461581,1465261,1421933,1672990,1461629,1479245,1369260,1448813,1473132,1494286,1387453,1475132,1540749,1856703,1372141,1447517,1551549,1431324,1289898,1472509,1558590,1428605,1426076,1367723,1569118,1434477,1374156]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":0,"first_call_ns":476100,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[171090,171329,135697,170914,172993,169538,169681,172834,143361,172370,173441,172946,171905,176082,236146,175617,171394,174065,172162,177186,171105,170770,173377,175906,175089,159297,174450,172193,173937,174690,169745,132273,174658,171041,174866,170033,173506,129841,171393,174626,173249,174866,173522,236562,173457,173634,170033,170482,174513,173634],"chip_ns":[105537,104113,70145,103713,104593,103681,105025,104753,76145,104177,103793,104497,103601,104481,167938,107217,103985,105297,104129,105441,105185,105377,104033,105809,104465,89121,103873,104961,104673,104609,103985,64241,105825,104817,106145,104721,106433,63776,104081,106352,104817,105281,104609,167425,104481,105937,104049,104833,104769,105105]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/torch/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/torch/stderr.txt new file mode 100644 index 0000000..0bb7150 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/torch/stderr.txt @@ -0,0 +1,15 @@ +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory efficient kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1240.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory Efficient attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:600.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1242.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:588.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1244.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Expected query, key and value to all be of dtype: {Half, BFloat16}. Got Query dtype: float, Key dtype: float, and Value dtype: float instead. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:110.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:922.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +LOCK_HELD_S 3.414120252 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/torch/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/torch/stdout.jsonl new file mode 100644 index 0000000..34749de --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r1/torch/stdout.jsonl @@ -0,0 +1,32 @@ +{"case": "rmsnorm_1x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [22912, 10912, 10624, 10176, 10176, 10016, 10336, 10176, 10688, 10496, 10528, 10400, 10208, 10368, 10816, 10176, 10592, 10528, 11328, 10528, 10720, 10656, 10560, 10432, 10144, 10304, 10848, 11136, 11104, 11616, 11392, 10400, 10624, 10400, 9216, 10080, 10272, 10848, 11072, 10592, 10624, 10304, 10496, 10496, 10656, 10656, 10944, 10944, 10528, 11168], "wall_ns": [40096, 21504, 18673, 18256, 22496, 18096, 19040, 18352, 19345, 17680, 17952, 19552, 17840, 18240, 19649, 18000, 18080, 19168, 17920, 19712, 18833, 19312, 18064, 20128, 17920, 18768, 18560, 18737, 18768, 18112, 19712, 18416, 19696, 18273, 18560, 18928, 18048, 19856, 18576, 19393, 20304, 20368, 18144, 18496, 19616, 18081, 17792, 19584, 17936, 20256]} +{"case": "rmsnorm_64x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [11296, 10848, 10752, 10496, 10400, 10496, 13024, 10912, 10336, 10496, 10208, 10656, 10688, 10656, 10176, 11072, 10176, 10912, 10304, 10432, 10656, 10880, 10208, 10176, 10848, 10208, 10176, 10880, 10112, 9440, 10080, 4224, 10368, 10400, 10688, 10464, 10432, 10496, 10464, 10720, 10656, 10688, 10368, 10528, 10336, 10528, 10464, 10592, 10400, 9824], "wall_ns": [331123, 46465, 38768, 37904, 38113, 37760, 38592, 37825, 43488, 37552, 37329, 38256, 37872, 37153, 38208, 37728, 38129, 38128, 38208, 37185, 38416, 38176, 38737, 37568, 38400, 37809, 37232, 37904, 37729, 38192, 37952, 37121, 37680, 38144, 39473, 36960, 37632, 36753, 37024, 36688, 37313, 37056, 37808, 36961, 37264, 38640, 37041, 38032, 38432, 39121]} +{"case": "rope_32x128", "backend": "torch_ops", "warm": 10, "reps": 50, "dev_ns": [42944, 36160, 36096, 36896, 37312, 35424, 35264, 36320, 34272, 36032, 43872, 35968, 35584, 35168, 36384, 35712, 35968, 36416, 35424, 35712, 35936, 35456, 36608, 38176, 36736, 35776, 35648, 35552, 36832, 36192, 36160, 37024, 36000, 38944, 36544, 35552, 35872, 36096, 36064, 34976, 35360, 35808, 35456, 36800, 35520, 36576, 35168, 35808, 36000, 34272], "wall_ns": [83313, 47792, 44032, 44977, 43648, 45713, 42608, 44992, 46769, 44224, 45201, 44800, 47200, 46561, 43600, 46417, 44848, 46080, 45649, 45152, 45521, 43872, 43840, 43585, 44384, 43793, 46576, 48416, 44545, 44048, 45825, 44976, 45984, 46129, 43664, 44592, 45665, 45904, 47649, 44928, 46672, 45793, 46080, 46417, 45360, 45024, 45985, 48192, 44657, 48592]} +{"case": "swiglu_5632", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [14976, 11680, 13056, 12032, 13344, 12192, 12640, 11776, 13184, 12256, 12192, 12256, 12448, 12928, 12384, 12096, 12896, 13056, 19616, 14752, 12256, 12832, 10560, 11776, 12256, 11744, 12896, 11968, 12192, 11872, 13472, 13024, 11968, 12416, 12256, 11936, 12192, 11168, 11808, 12896, 12384, 12064, 11776, 12224, 13056, 13152, 12384, 12896, 12032, 11712], "wall_ns": [53264, 30608, 34577, 28912, 29552, 31377, 33920, 30176, 32768, 33633, 33808, 33376, 32225, 29824, 31968, 33232, 33441, 28656, 33152, 30657, 33136, 29872, 30672, 31569, 33312, 32704, 35152, 35649, 32496, 29104, 31505, 31920, 30976, 31392, 36001, 33072, 33616, 32545, 29920, 32192, 29840, 37169, 29008, 33200, 32081, 32016, 32592, 29824, 32513, 30704]} +{"case": "swiglu_131072", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [13408, 12448, 12224, 11808, 12512, 12160, 12864, 12064, 12864, 12288, 11968, 12160, 11904, 12032, 11712, 12416, 11840, 12000, 11744, 12096, 11968, 11936, 12192, 12608, 12384, 11872, 13312, 12256, 11904, 13024, 12320, 12064, 12864, 12128, 11616, 12320, 11968, 11968, 12128, 12800, 12096, 12160, 12640, 12096, 12896, 12128, 12096, 12416, 12864, 11776], "wall_ns": [66305, 105809, 57360, 57009, 58240, 57393, 55776, 56641, 56736, 56849, 57072, 56497, 56224, 56897, 56368, 56913, 55952, 55537, 56320, 56865, 56224, 57473, 56864, 56193, 56640, 56017, 58256, 56417, 55680, 55505, 57168, 59329, 56416, 55809, 56752, 57105, 56096, 56513, 56544, 56065, 55664, 57521, 56528, 68721, 55840, 55665, 57216, 56017, 56768, 56833]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [242272, 238016, 235648, 236640, 234528, 233696, 234528, 238080, 237280, 237216, 235744, 235328, 235648, 234368, 233632, 237408, 234560, 233600, 233376, 234624, 235648, 237664, 234400, 235648, 234464, 237376, 234624, 237600, 236448, 234688, 237280, 237760, 237440, 236000, 235424, 235456, 236672, 242880, 236480, 236576, 235712, 235776, 233952, 237568, 235328, 236704, 235680, 236736, 235776, 234560], "wall_ns": [1798048, 1633166, 579157, 553413, 604133, 702662, 734471, 548597, 776086, 628166, 595813, 556981, 545669, 544596, 544789, 542501, 545813, 544308, 542517, 543797, 542517, 545572, 545669, 544773, 543669, 543332, 545701, 544533, 544805, 544596, 542901, 542325, 546165, 543812, 544661, 546725, 544869, 544564, 545813, 560517, 732486, 733655, 545845, 737030, 646566, 552581, 555860, 543653, 543653, 545733]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [995360, 1058112, 999264, 1040320, 1186016, 1136832, 1093600, 1097984, 1089792, 1034784, 1123360, 1126976, 1086752, 1145696, 1018816, 1037184, 1106496, 1150432, 1110208, 1267648, 1132640, 1048320, 996704, 1004448, 1113632, 1131584, 1021376, 1201792, 1153952, 1119936, 1057472, 1110560, 983488, 1114208, 1117376, 1241056, 1111392, 1361472, 1161248, 1131104, 1117504, 1108192, 1071744, 1254976, 1028128, 1091840, 990560, 977824, 990880, 1035232], "wall_ns": [1410092, 1470893, 1355916, 1416380, 1795152, 1360860, 1404460, 1638382, 1550014, 1529437, 1298444, 1299115, 1292395, 1319900, 1338939, 1448941, 1385548, 1385740, 1409181, 1462044, 1413197, 1301163, 1418060, 1442733, 1449885, 1279595, 1341003, 1296188, 1283051, 1351596, 1421132, 1463517, 1439325, 1290715, 1441836, 1394316, 1420445, 1407724, 1409148, 1445805, 1287931, 1353740, 1296299, 1329116, 1345324, 1464461, 1392172, 1379404, 1428460, 1439533]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [97184, 86944, 95136, 99040, 100064, 97440, 97344, 95872, 96800, 96672, 96128, 90816, 88064, 90112, 88736, 90176, 87264, 91520, 92864, 98272, 93824, 101536, 97152, 99392, 99040, 98784, 98592, 102144, 100992, 96288, 96160, 101152, 103328, 103904, 97248, 96032, 95968, 97216, 98368, 96416, 91488, 88544, 95072, 97728, 100672, 100224, 98080, 98144, 96576, 94048], "wall_ns": [432468, 456116, 449364, 452916, 458740, 441572, 444980, 427923, 428916, 440068, 426324, 433811, 427844, 434500, 429684, 432307, 458740, 452292, 449476, 437684, 447844, 425908, 426963, 451620, 452516, 461796, 445076, 445284, 445620, 430612, 449732, 445060, 444324, 451155, 435316, 437076, 441172, 425684, 426051, 440404, 429508, 423540, 426771, 424100, 422484, 426163, 441300, 426644, 453956, 457460]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [104128, 102112, 104832, 103296, 102880, 102912, 102208, 104128, 104160, 102208, 104416, 102336, 98944, 95296, 94656, 101664, 104928, 106208, 104544, 101920, 102752, 105952, 104384, 96928, 96384, 97056, 95296, 95104, 98272, 96224, 95520, 95936, 93920, 98720, 101376, 110496, 100256, 104384, 103200, 108960, 100064, 100672, 101504, 105184, 117280, 100128, 100576, 104416, 110528, 108512], "wall_ns": [458036, 459620, 453604, 460308, 463012, 470948, 459700, 465956, 469764, 466900, 463556, 472212, 462565, 462884, 462868, 471908, 467780, 471348, 460132, 484580, 478004, 473076, 458596, 464020, 465589, 462900, 459876, 462644, 469924, 464724, 463828, 459652, 467140, 468148, 461124, 474164, 461844, 475988, 467972, 507957, 465780, 460404, 457668, 472932, 460852, 466820, 459972, 469508, 473156, 469941]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [175584, 172608, 173024, 171840, 171936, 171872, 170688, 169856, 173056, 172192, 171296, 172000, 171168, 169760, 170784, 171136, 171264, 170816, 170976, 168160, 172160, 170848, 169984, 170432, 169280, 171872, 169088, 171296, 175712, 170112, 169056, 169088, 171296, 171808, 172032, 172224, 170176, 170176, 169952, 172160, 169984, 171744, 172000, 172992, 172256, 171136, 172000, 171104, 171104, 171360], "wall_ns": [297170, 270418, 266483, 265250, 263730, 265187, 265986, 264210, 266387, 265906, 265266, 265219, 267426, 264722, 266307, 266178, 264210, 267027, 266194, 267186, 264035, 266450, 266274, 265890, 266371, 267282, 268242, 267907, 264210, 268114, 266435, 263874, 266386, 268179, 267266, 264946, 265155, 265506, 267890, 267059, 265362, 265730, 266115, 267010, 266290, 266483, 265218, 266914, 266115, 269986]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [486400, 475360, 459776, 454656, 453184, 453888, 454112, 456160, 463328, 457184, 466464, 517856, 457824, 493888, 591712, 609312, 457728, 448128, 459584, 461152, 462560, 481760, 492768, 642784, 473376, 477984, 457856, 486016, 564704, 464416, 502240, 480864, 461504, 514688, 514176, 544384, 544288, 550016, 519840, 470464, 467584, 473024, 483808, 483968, 471712, 462816, 462368, 463648, 465472, 575520], "wall_ns": [680118, 628085, 621301, 803623, 797591, 624422, 648358, 570037, 614325, 748358, 661670, 621238, 599861, 745382, 626502, 563061, 606933, 588549, 568437, 560021, 564037, 570245, 571525, 606917, 593749, 601846, 640613, 627574, 626789, 592357, 661462, 608933, 576453, 623206, 644133, 639974, 590453, 664870, 623157, 573045, 599638, 612533, 616341, 612054, 610085, 649254, 638453, 558821, 578757, 571253]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [43136, 39840, 38080, 36256, 43968, 40640, 35328, 37664, 36960, 36384, 35488, 37504, 36832, 34784, 37536, 36352, 36032, 35776, 36800, 36928, 37856, 37440, 36608, 37984, 36640, 36096, 35008, 42144, 37696, 36736, 34112, 35648, 36416, 36096, 34944, 36384, 36896, 36672, 36576, 34592, 37728, 36032, 36288, 35936, 36800, 34880, 35424, 35744, 36608, 35328], "wall_ns": [170929, 135762, 131361, 135009, 131985, 132289, 129217, 129921, 141586, 174881, 129729, 131490, 188129, 195026, 170273, 216578, 129121, 130417, 130786, 129761, 129073, 133665, 132625, 137553, 168754, 238626, 132737, 131281, 131570, 149265, 156001, 155042, 134465, 130465, 126913, 127441, 130513, 129121, 128145, 130978, 140721, 127537, 126577, 127329, 127057, 128817, 126769, 126498, 127281, 128913]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [42208, 38848, 39296, 37952, 39136, 38240, 37632, 37760, 38176, 37792, 37792, 37792, 37344, 38336, 40224, 37600, 36832, 37760, 36992, 37280, 36800, 37248, 36896, 38240, 37856, 37632, 36960, 36800, 38880, 37760, 38272, 37152, 36928, 42208, 37696, 37376, 37280, 37984, 36864, 37120, 37600, 37344, 37056, 37600, 36800, 36736, 36064, 39328, 37632, 37696], "wall_ns": [159042, 134625, 131553, 130849, 129009, 130946, 129793, 130161, 131105, 131889, 131249, 131857, 130353, 130658, 132865, 132145, 135953, 133425, 131889, 134402, 132305, 133281, 132977, 132961, 131329, 132802, 130481, 131921, 132321, 128625, 132177, 133490, 129841, 131265, 128961, 130001, 129217, 129105, 128977, 131458, 129505, 183761, 129153, 136130, 159953, 240962, 150641, 218594, 131953, 129730]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [95008, 90816, 92640, 107776, 92352, 91712, 91936, 91104, 90752, 93120, 91936, 91904, 91040, 90816, 90912, 90592, 93120, 90912, 90880, 90464, 90304, 90496, 91072, 90688, 90496, 90432, 91296, 91584, 92160, 90176, 89888, 90080, 90112, 91616, 91040, 90432, 91200, 90976, 90688, 92128, 90848, 91136, 90208, 91968, 89824, 89536, 90976, 90752, 90880, 90880], "wall_ns": [665477, 474180, 300051, 290995, 289922, 296691, 292978, 289411, 291122, 290979, 292450, 300339, 302643, 297074, 295235, 341027, 357427, 297699, 415907, 438356, 305939, 300322, 305427, 292531, 434179, 293539, 304771, 376867, 344659, 300194, 292275, 291139, 292130, 294883, 289138, 290419, 288354, 297075, 294146, 293491, 289122, 294067, 288435, 296130, 289171, 299250, 296867, 304387, 304194, 290355]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [434624, 446880, 491360, 594080, 707008, 512544, 531744, 477984, 465696, 676992, 434528, 533536, 601344, 497600, 482112, 474624, 488832, 434336, 473536, 528128, 504320, 498976, 498976, 467648, 464480, 484000, 448352, 427200, 456544, 447840, 431232, 430496, 433600, 418848, 432192, 450752, 439968, 500000, 516064, 545952, 513760, 445024, 551328, 456448, 648864, 712480, 541952, 467552, 485728, 467712], "wall_ns": [934584, 836999, 719623, 681125, 638262, 681222, 648630, 630725, 635734, 634645, 626166, 649669, 651590, 684278, 777479, 739334, 729975, 648325, 710087, 744774, 725766, 2593751, 751511, 667349, 638582, 650454, 631845, 633302, 635269, 641958, 716630, 741479, 685686, 678821, 634438, 670870, 730374, 725639, 658501, 685526, 661734, 730854, 741479, 697238, 675334, 646070, 627093, 654950, 630693, 636710]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [55424, 54848, 52928, 53632, 52992, 51744, 51584, 52032, 51232, 50912, 53184, 52000, 51840, 51936, 50944, 52128, 50976, 52128, 52128, 52320, 52256, 51136, 52192, 51648, 52736, 50784, 51872, 50688, 51296, 50752, 51200, 51232, 50592, 51584, 51328, 50176, 51584, 51168, 51264, 52160, 52128, 50848, 51328, 51232, 52064, 50464, 50304, 50688, 51680, 49664], "wall_ns": [19183864, 259218, 223522, 225330, 222402, 220610, 221378, 223874, 219538, 219425, 220338, 221986, 219778, 216162, 216658, 216242, 222594, 221906, 221266, 218738, 220322, 221058, 230946, 230866, 227746, 282770, 223202, 217682, 222770, 225266, 218466, 218770, 322466, 228226, 222226, 225074, 222146, 267107, 220529, 222290, 220482, 219186, 217154, 219634, 221554, 221650, 220562, 224770, 227826, 224578]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [53504, 52672, 52800, 51936, 50816, 51072, 52064, 51264, 51296, 51136, 51136, 51200, 51072, 51168, 50880, 50432, 51712, 51936, 52064, 51328, 51104, 51552, 51168, 49376, 52160, 54944, 52064, 51552, 51136, 51232, 50080, 51200, 52064, 51872, 50816, 51168, 51136, 51360, 51296, 50784, 52096, 51520, 50336, 51200, 51328, 52192, 50976, 51136, 51072, 51264], "wall_ns": [242562, 248418, 221778, 223058, 225346, 221970, 223378, 220418, 218754, 218930, 224146, 218658, 337715, 224482, 223426, 223762, 223794, 226706, 223265, 217906, 219586, 225650, 221346, 216770, 219362, 218754, 222546, 218546, 217298, 218818, 216210, 219681, 219410, 217650, 218386, 220738, 216194, 219730, 218786, 223666, 225554, 224802, 225602, 224562, 221409, 220626, 223698, 222706, 219522, 216402]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_cudnn_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [32576, 31264, 29248, 29920, 29152, 30432, 29760, 38144, 30688, 29408, 29632, 29888, 29376, 29952, 29504, 31328, 29760, 29728, 29568, 29728, 30528, 29632, 31616, 29184, 29728, 28256, 29792, 30400, 29696, 30496, 29088, 29696, 28320, 29472, 34816, 30432, 29760, 29856, 31648, 28896, 28640, 30304, 29888, 29728, 31584, 30048, 28512, 31584, 31808, 29664], "wall_ns": [51840, 45233, 43696, 43889, 43792, 44816, 42705, 40720, 50385, 41936, 40688, 41777, 42064, 41776, 43873, 41296, 49953, 41840, 39632, 51361, 41776, 42864, 42913, 39840, 40929, 51360, 41088, 43201, 42160, 49393, 41072, 40752, 41937, 49920, 42848, 42945, 41760, 42913, 40864, 42992, 41713, 42384, 42336, 43825, 41072, 41888, 42801, 40816, 50225, 39984]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_cudnn_bf16", "warm": 10, "reps": 50, "dev_ns": [244256, 210208, 200160, 198720, 209088, 218176, 214912, 222688, 228576, 222912, 222080, 222912, 220960, 220736, 221792, 212320, 208672, 222784, 245216, 254880, 244992, 209408, 197440, 197216, 201376, 202624, 211552, 211200, 197504, 213280, 198304, 201472, 196320, 201344, 199392, 200000, 206400, 196480, 198880, 197312, 206688, 213408, 211968, 210592, 197280, 194464, 212768, 222912, 228480, 234240], "wall_ns": [268611, 236530, 245682, 246226, 245746, 228354, 218786, 271266, 262499, 256626, 230690, 216594, 206530, 206833, 216882, 234482, 241859, 234946, 243042, 250530, 253202, 265746, 232514, 258051, 236242, 245314, 245954, 219874, 286962, 265059, 231202, 238338, 215010, 210674, 219106, 227298, 240546, 235266, 232290, 3169467, 368820, 221969, 211122, 209522, 209602, 230210, 226882, 227202, 209234, 211394]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_flash_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [37568, 36992, 35488, 35552, 35584, 34752, 36832, 35776, 35072, 35968, 34624, 36896, 36896, 34976, 35680, 35232, 35872, 34624, 34784, 34432, 35776, 34624, 34880, 34496, 35712, 35456, 34944, 34720, 34016, 34080, 34848, 34816, 33952, 34656, 34880, 34688, 34944, 34880, 34592, 36960, 36928, 34976, 37504, 35136, 36000, 36160, 34880, 34880, 35040, 34400], "wall_ns": [52224, 52945, 52848, 53361, 53424, 52961, 51856, 52177, 51280, 51104, 51905, 51120, 51201, 53360, 52209, 52128, 51153, 52880, 52129, 53408, 51024, 50065, 51056, 49105, 50112, 51041, 49120, 50209, 51056, 50368, 49841, 50144, 51105, 54304, 51057, 50320, 49937, 52480, 50912, 52929, 50080, 51553, 51680, 50929, 52288, 51137, 50944, 52240, 52097, 53120]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_flash_bf16", "warm": 10, "reps": 50, "dev_ns": [230560, 211072, 214656, 206624, 205600, 207456, 202656, 204224, 211744, 201376, 205696, 203680, 202496, 205184, 203328, 203648, 211744, 220896, 207936, 217856, 203040, 202496, 217376, 226720, 234560, 236256, 241472, 237120, 242304, 229856, 229632, 224832, 208096, 258944, 246240, 230176, 242368, 203808, 203616, 211776, 222944, 227968, 226496, 237280, 232352, 242496, 238976, 248672, 235168, 215648], "wall_ns": [257811, 260930, 263010, 225970, 221058, 217026, 231474, 246610, 239618, 251154, 237090, 234450, 232658, 239123, 244738, 236530, 233186, 220962, 218818, 239170, 272818, 248258, 268531, 223138, 216177, 211602, 219202, 224162, 234386, 222210, 218914, 218002, 210914, 221954, 218114, 220994, 224129, 213074, 209986, 216882, 212882, 219938, 245570, 223122, 231682, 229826, 215026, 214338, 236066, 246770]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [107712, 108256, 108736, 106144, 107168, 105856, 106592, 106176, 105152, 107360, 106400, 106368, 105312, 106688, 108064, 104320, 107360, 106368, 105472, 105280, 105792, 107392, 107488, 107104, 107392, 106080, 107392, 107136, 106176, 105760, 108384, 106144, 108608, 105824, 105344, 107488, 106592, 107520, 104384, 105312, 107200, 106336, 104704, 105248, 107488, 106368, 105536, 105984, 104928, 106464], "wall_ns": [130641, 120545, 117297, 118930, 117649, 117537, 116449, 125073, 118497, 119777, 117601, 117697, 126977, 116577, 119729, 124897, 117345, 118913, 118577, 118721, 117793, 117393, 116833, 117409, 152594, 128337, 127441, 130321, 156945, 169266, 128081, 187986, 118289, 118113, 117553, 120017, 116369, 117761, 119633, 118289, 125329, 146113, 143170, 129121, 120593, 126081, 128113, 145265, 130193, 120129]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_efficient_bf16", "warm": 10, "reps": 50, "dev_ns": [274336, 270272, 292672, 297664, 287488, 315200, 287872, 306848, 300864, 305696, 313856, 302848, 304480, 320608, 302656, 297664, 317408, 308096, 303840, 303008, 309120, 303200, 305728, 288288, 306240, 321952, 304224, 299392, 314080, 307264, 308896, 316224, 311392, 312480, 300704, 313312, 320160, 301888, 290304, 312064, 294656, 300448, 323072, 314432, 341216, 320448, 374560, 389376, 446528, 319872], "wall_ns": [326067, 324595, 332387, 310258, 335379, 481892, 349507, 312899, 303379, 380931, 380579, 320291, 318323, 341763, 316387, 320067, 329234, 346083, 312195, 330819, 335651, 328611, 301234, 304803, 311923, 338147, 311906, 317603, 335699, 318947, 327459, 331235, 309106, 319251, 325619, 327539, 331251, 328115, 333635, 314194, 331715, 318755, 310211, 329539, 328642, 323955, 331347, 344947, 317315, 319715]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_math_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [1129792, 1178112, 1148448, 1132224, 1125952, 1179008, 1149760, 1446752, 1117632, 1124448, 1127840, 1298688, 1120640, 1165792, 1175104, 1110272, 1117376, 1114048, 1110016, 1112064, 1111232, 1121728, 1122240, 1249248, 1310976, 1319264, 1132992, 1120256, 1125280, 1296704, 1168864, 1163392, 1214816, 1161152, 1126912, 1136672, 1134016, 1134304, 1131264, 1140448, 1135072, 1147104, 1140768, 1125568, 1149440, 1154624, 1144192, 1130400, 1113408, 1116000], "wall_ns": [1165994, 1120266, 1126697, 1166715, 1169530, 1148522, 1530877, 1194875, 1176282, 1190426, 1163306, 1155002, 1165883, 1151450, 1151594, 1150666, 1147066, 1140714, 1172186, 1154138, 1119802, 1138586, 1109241, 1116586, 1117194, 1112682, 1122393, 1112666, 1136458, 1109162, 1134218, 1113769, 1130618, 1153114, 1145050, 1147450, 1135722, 1130266, 1148730, 1139514, 1127434, 4000339, 1309963, 1117130, 1108938, 1109753, 1146106, 1151466, 1146858, 1152746]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_math_bf16", "warm": 10, "reps": 50, "dev_ns": [1370272, 1255840, 1271552, 1261600, 1264768, 1258624, 1256448, 1267680, 1274016, 1263168, 1274560, 1419264, 1272704, 1276192, 1267808, 1257696, 1274976, 1267776, 1268832, 1264704, 1413376, 1283456, 1274816, 1274912, 1276320, 1276064, 1495328, 1272544, 1257824, 1291904, 1298496, 1284160, 1275136, 1274624, 1274272, 1271296, 1273952, 1304320, 1618144, 1635104, 1605248, 1633280, 1595936, 1617056, 1586272, 1587936, 1604288, 1620864, 1647744, 1541568], "wall_ns": [1462013, 1530845, 1328876, 1264203, 1269531, 1272539, 1281003, 1276843, 1273035, 1260763, 1254491, 1361596, 1316780, 1357691, 1434365, 1522685, 1419997, 1329627, 1263435, 1268475, 1274683, 1263515, 1261499, 1265531, 1264476, 1255978, 1255355, 1266796, 1258170, 1268492, 1244202, 1255115, 1323244, 1357132, 1459117, 1258090, 1276876, 1442060, 1284651, 1379404, 1544638, 1422812, 1483741, 1377388, 1454541, 1420364, 1415773, 1406780, 1510413, 1295292]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_f32q_f32kv_pregathered", "warm": 10, "reps": 50, "dev_ns": [334720, 239744, 237568, 235232, 234016, 236192, 235520, 234656, 236128, 234880, 235840, 236544, 235456, 233920, 233600, 235456, 234400, 233920, 233472, 233472, 234496, 235392, 234560, 233728, 236256, 234976, 234432, 236160, 236096, 234400, 236032, 233760, 235520, 233792, 235424, 234400, 274080, 235520, 284672, 290528, 279552, 234592, 234336, 234272, 266944, 256384, 236288, 260288, 252608, 235360], "wall_ns": [280834, 249539, 247842, 257666, 247714, 247474, 248243, 246274, 245634, 244658, 250098, 249378, 250067, 248674, 246018, 247218, 246642, 246962, 245810, 247683, 249826, 247570, 246754, 245586, 246994, 247347, 245762, 244690, 247618, 246642, 245842, 248723, 245138, 245298, 245506, 244594, 244850, 244530, 246610, 245491, 246898, 245634, 247666, 255650, 255075, 246242, 255922, 246578, 246834, 248818]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/omega/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/omega/stderr.txt new file mode 100644 index 0000000..08003b6 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/omega/stderr.txt @@ -0,0 +1 @@ +LOCK_HELD_S 1.127103514 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/omega/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/omega/stdout.jsonl new file mode 100644 index 0000000..41ec49f --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/omega/stdout.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":0,"first_call_ns":91565183,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[106977,106065,105969,106177,106129,106337,106400,106065,105953,106001,107377,106321,106113,105889,106065,105953,106033,106145,84880,105921,106673,106273,106081,105985,105921,106065,106113,106561,106129,106193,106769,106192,106385,105969,106129,105905,105953,85297,105825,105745,105761,106529,106096,105857,105857,105793,106049,106081,105841,105969],"chip_ns":[104417,103649,103537,103633,103569,103648,103664,103569,103569,103569,104609,103697,103537,103521,103505,103489,103505,103681,82448,103617,104225,103777,103665,103569,103473,103601,103441,103489,103633,103585,104017,103520,103856,103505,103537,103457,103521,82977,103473,103457,103505,104257,103680,103473,103409,103505,103553,103585,103489,103489]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":0,"first_call_ns":824423,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[197586,209762,209266,211186,212642,210562,211058,213538,207073,212609,211794,210546,212594,210274,211410,206786,212386,210274,209266,206770,206706,207249,207314,209810,208962,209362,206802,211106,210418,208178,208898,210481,173937,209298,206738,207474,206354,207713,209313,207266,206482,214274,205826,207602,204802,205202,163505,206962,205954,203554],"chip_ns":[96593,106689,106849,105073,105105,106129,106065,106417,107521,107217,106433,105809,106849,106369,106480,106657,106977,106529,107361,107409,106465,107505,107009,107777,107777,108705,107681,108161,107617,108129,107553,107697,73921,108016,107217,107473,107361,107361,107601,107425,107361,107473,107313,108609,106673,107585,64961,107489,107697,107553]} +{"case":"rope_32x128","rc":0,"mutant":0,"first_call_ns":495028,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[107633,107600,108097,108369,107569,107777,107905,107809,107473,108257,107585,107633,78529,108289,107584,107681,107505,107521,107857,107809,107505,107665,107665,107553,108193,107905,107937,107665,107601,107793,107585,107825,107920,107537,107809,107505,107601,107681,107729,107473,85361,107889,107489,107393,107489,107760,107665,107617,107457,107777],"chip_ns":[103473,103728,103937,104417,103537,103649,103889,103825,103537,104129,103761,103617,74593,103713,103568,103713,103745,103697,103873,103633,103681,103473,103585,103601,104081,103697,103601,103729,103537,103489,103521,103857,103680,103505,103841,103473,103745,103681,103505,103601,81377,103809,103537,103425,103441,103552,103536,103553,103505,103761]} +{"case":"swiglu_5632","rc":0,"mutant":0,"first_call_ns":469956,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[108433,108993,108705,109569,109633,109105,109201,108913,108577,108769,109249,108832,109009,108593,109137,108945,108817,109233,108801,108769,108849,109601,108961,109121,109537,109025,109121,108881,109345,109073,62400,108721,108865,109169,109233,109441,108881,108945,109441,109089,109553,109217,109025,108913,109457,108929,108640,108753,108817,109249],"chip_ns":[103425,103777,103777,104385,104225,103649,104161,103729,103633,103729,103744,103696,103873,103569,104145,103777,103601,103777,103649,103521,103569,104209,103729,103969,104353,103633,103601,103505,103521,103569,57248,103617,103809,103841,104161,104273,103697,103569,104017,103953,104289,103761,103825,103633,104161,103616,103664,103537,103473,104097]} +{"case":"swiglu_131072","rc":0,"mutant":0,"first_call_ns":775303,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[222386,221010,221186,226130,224130,223538,227970,229186,225874,227602,225874,228194,216658,221954,221970,224514,231266,227794,227954,227010,229026,228882,222818,221970,225666,225874,227714,227442,229362,205666,224194,227826,226962,224578,219586,226642,220114,216834,218930,221586,219746,217202,207138,221522,219810,221154,230514,228386,228194,226498],"chip_ns":[106433,107153,107473,108097,107041,107009,106977,106912,107537,106961,106993,107473,96081,106833,106833,107889,107345,107697,106849,106977,107377,106897,106961,107025,107009,105936,107169,107169,107313,86993,107153,107409,107217,108305,107121,108257,106993,107041,107025,107297,107425,107697,93601,106913,106977,107041,106929,106721,107281,107281]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":0,"first_call_ns":6088438,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1169962,1294651,1262075,1287627,1195771,1188874,1314652,1457565,1362491,1390493,1441468,1247291,1164010,1249211,1456381,1334091,1376476,1377484,1313660,1162922,1120922,1266779,1370076,1201514,1335420,1226507,1219098,1096250,1023753,1102314,1241178,1170043,1279483,1203498,1305500,1137770,1072921,1158746,1324204,1220698,1274155,1295660,1303339,1153050,1106698,1087385,1240571,1191115,1231498,1269067],"chip_ns":[420356,416787,497620,416771,417332,417139,520885,519972,526100,481925,519988,413844,414499,488884,519221,478996,417843,523204,419684,419092,417204,523925,523125,522356,518980,517685,417139,414004,388899,475941,520708,415380,522005,482116,518293,415604,414932,516516,502341,417475,418515,485909,416228,419332,415060,414675,511460,416724,492692,520388]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":0,"first_call_ns":827799,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[629797,542197,537572,521925,498020,525749,537845,526164,510549,634485,667574,550965,544709,600501,662182,548469,550100,528469,563125,661702,588149,544724,520949,523029,524356,519525,634197,935624,658134,827383,642614,646134,661157,642246,612469,646838,649014,601173,517764,584101,520436,534037,521236,529941,642822,652421,603829,537269,631174,619797],"chip_ns":[485860,413252,412211,412788,372771,412964,412612,413267,386212,514372,515892,415892,412676,490260,514485,413492,412643,413620,415716,519749,480644,413027,412852,410452,411763,414228,515284,820343,514564,691750,513653,514437,512820,514484,506660,512996,514293,477844,410451,470308,410532,415108,410579,408116,512997,514212,489732,410675,514021,477540]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":0,"first_call_ns":4114996,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[2539063,2352869,2405477,2400837,2438517,2363156,2346596,2365620,2363605,2531734,2396229,2994075,2765577,2935706,2310565,2681544,2863097,3083242,3003242,2907337,2593302,2376836,2377845,2366981,2384261,2483365,2334196,2394660,2375381,2364725,2372181,2427526,2481606,2687608,2465398,2368293,2602294,2525206,2478997,2477510,2596103,2629991,2818105,2465558,2549622,2639991,2407797,2546550,2505158,2640968],"chip_ns":[1545374,1365100,1416797,1417309,1456957,1365564,1357244,1364620,1364268,1532270,1343051,1878416,1672511,1859584,1318700,1684591,1864385,2089314,1999506,1908785,1552781,1373196,1377852,1374556,1373996,1491085,1358684,1388892,1375404,1356652,1375883,1435324,1480990,1684045,1442348,1371772,1343725,1469917,1437629,1447629,1573326,1570157,1778624,1466925,1557933,1639662,1415004,1490013,1455149,1573711]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":0,"first_call_ns":512420,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[173265,170562,170545,170834,157889,173505,191042,170690,173921,170914,172689,177202,181345,173298,175905,173954,177105,180418,177666,177441,179010,176849,177650,178017,177330,175009,177426,177826,173313,175234,174241,175954,178225,176034,175137,177970,178145,178098,164545,171618,178033,173986,177857,176818,176450,175313,175746,176449,176754,177617],"chip_ns":[104913,103905,104337,104545,91713,103905,112033,104017,105281,104401,105089,104129,106177,103873,104417,103953,104209,103792,104529,103729,104177,101489,105505,103921,104561,103553,104544,104273,103985,103553,104705,104017,103633,103617,103617,103601,103441,103361,93793,103361,104641,103504,103681,103472,104769,103537,104609,103777,104017,103569]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/torch/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/torch/stderr.txt new file mode 100644 index 0000000..e4f75ec --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/torch/stderr.txt @@ -0,0 +1,15 @@ +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory efficient kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1240.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory Efficient attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:600.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1242.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:588.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1244.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Expected query, key and value to all be of dtype: {Half, BFloat16}. Got Query dtype: float, Key dtype: float, and Value dtype: float instead. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:110.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:922.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +LOCK_HELD_S 2.859327892 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/torch/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/torch/stdout.jsonl new file mode 100644 index 0000000..d197a9b --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r2/torch/stdout.jsonl @@ -0,0 +1,32 @@ +{"case": "rmsnorm_1x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [15616, 11264, 10304, 11648, 11424, 10368, 12000, 10880, 9568, 9472, 9120, 9568, 9536, 10496, 10816, 9504, 10080, 10016, 9952, 10144, 10528, 11200, 11328, 10560, 8768, 10240, 10112, 10272, 10976, 11232, 11424, 10528, 10848, 10560, 10816, 10304, 10656, 10752, 10688, 11232, 10720, 10496, 9792, 10048, 10432, 11168, 11616, 11168, 10656, 11712], "wall_ns": [48017, 21680, 18960, 20432, 18785, 19152, 18496, 18240, 18704, 18992, 18865, 20512, 19536, 19248, 18704, 19312, 18305, 19584, 18144, 18272, 19920, 18768, 19121, 18368, 18096, 19536, 18304, 18176, 18673, 18512, 18816, 18464, 18288, 20000, 18193, 19616, 18048, 20064, 21392, 18656, 18849, 27488, 18432, 18304, 18496, 18960, 19489, 18176, 18320, 19328]} +{"case": "rmsnorm_64x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [11808, 10208, 9600, 9504, 10688, 11456, 9312, 11264, 9376, 10304, 10368, 10464, 10272, 10656, 10240, 11072, 9760, 10560, 15776, 10720, 10880, 9696, 10976, 10272, 10624, 10400, 10176, 10464, 10240, 10432, 10272, 11488, 11776, 10784, 10368, 11808, 10368, 10944, 11232, 10368, 10944, 10400, 9536, 10496, 9504, 10912, 10368, 10304, 11552, 10208], "wall_ns": [353139, 45968, 39361, 38320, 38305, 38432, 39632, 40481, 38064, 37424, 37809, 37056, 37888, 37345, 37728, 38128, 37361, 37712, 37840, 38177, 37200, 37440, 38993, 38704, 38080, 37969, 38384, 37472, 38609, 37264, 37376, 37697, 38848, 37792, 38017, 41552, 37280, 37441, 37088, 37536, 37345, 37056, 37824, 37121, 37808, 37088, 38033, 38432, 37152, 37841]} +{"case": "rope_32x128", "backend": "torch_ops", "warm": 10, "reps": 50, "dev_ns": [41216, 35360, 35264, 35424, 35168, 35168, 40576, 35392, 35424, 35136, 35392, 35328, 35328, 34336, 35296, 35584, 35424, 35616, 35040, 34912, 34304, 35168, 35456, 35424, 35264, 34816, 35360, 35424, 34944, 35264, 42272, 35488, 35264, 34400, 35296, 35296, 35328, 35424, 34880, 35168, 35072, 35168, 34848, 35328, 35328, 35232, 35040, 35520, 35168, 34976], "wall_ns": [73968, 46609, 47152, 42257, 42224, 41952, 42001, 43984, 44081, 44352, 44144, 47169, 43808, 45152, 43857, 43968, 43729, 43712, 44336, 45393, 43968, 44161, 44336, 44448, 43649, 47712, 43633, 44240, 43536, 43841, 43072, 43568, 45201, 42960, 43665, 44016, 44112, 44897, 46672, 43713, 43792, 43376, 44689, 44144, 43632, 44193, 44528, 43841, 48224, 43520]} +{"case": "swiglu_5632", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [14720, 12896, 12416, 12032, 12960, 12064, 12160, 13376, 12160, 11744, 12000, 12832, 12256, 11808, 12832, 12160, 10752, 12224, 12448, 14624, 12384, 12064, 11680, 12608, 12832, 12000, 11968, 12832, 12480, 12320, 12224, 12032, 12896, 12032, 11904, 12320, 12064, 11584, 12864, 12064, 16832, 12160, 11936, 12640, 12032, 11904, 12288, 12832, 12192, 11776], "wall_ns": [49024, 33040, 31697, 31616, 31296, 32785, 31680, 29136, 29152, 29729, 29136, 30704, 30432, 29633, 29152, 28432, 31408, 29489, 29472, 31888, 32465, 29824, 29664, 31856, 32289, 32944, 30160, 32400, 30817, 31264, 28304, 34353, 29536, 29184, 28784, 30385, 29696, 30256, 30608, 29233, 30640, 30416, 32208, 29393, 29168, 29312, 29584, 31521, 30704, 28336]} +{"case": "swiglu_131072", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [13440, 12960, 12032, 11712, 12064, 11648, 12256, 12544, 12288, 12224, 11872, 12352, 11872, 13056, 12352, 13408, 12128, 12416, 12896, 12096, 12256, 11968, 11840, 16832, 13152, 12288, 11840, 11968, 11936, 12000, 12096, 12896, 12224, 12000, 12928, 12224, 11808, 12416, 11936, 12288, 11808, 12384, 11744, 12256, 12064, 12224, 12064, 11744, 12192, 12000], "wall_ns": [64240, 924184, 78625, 58593, 56848, 56177, 56864, 55729, 56608, 55649, 60656, 56529, 56208, 55713, 56752, 55392, 56193, 56112, 56769, 56032, 56481, 56432, 56577, 55648, 67617, 55408, 56273, 56128, 55825, 55760, 56609, 56176, 56833, 56464, 56241, 56336, 56417, 55536, 55809, 55296, 56001, 55344, 56081, 55568, 55889, 56864, 55601, 55440, 55793, 55952]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [239648, 238656, 235936, 239520, 237952, 235104, 235104, 235392, 236576, 235552, 234848, 234880, 236256, 235040, 234560, 235616, 233632, 236512, 235712, 236288, 236672, 235776, 234432, 236384, 236480, 235136, 236352, 233856, 235264, 236576, 236448, 235456, 233600, 234432, 235680, 234944, 236480, 236544, 234368, 236160, 234528, 234944, 233504, 233728, 236672, 234848, 235392, 236576, 233984, 237312], "wall_ns": [1807919, 1693295, 558261, 548565, 569141, 559765, 579893, 551237, 544820, 543061, 543669, 544340, 540613, 540549, 541877, 540500, 541301, 540069, 541573, 541492, 543669, 542645, 546693, 545636, 546917, 546005, 545749, 547892, 545845, 546741, 545429, 546660, 602470, 710854, 763687, 546804, 749191, 600165, 633814, 557012, 547605, 545333, 544693, 545333, 557636, 546613, 546693, 548885, 548709, 546676]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [1045408, 1133344, 1093312, 1104384, 1041632, 1166784, 967616, 1039040, 1084160, 1035840, 1244736, 1057888, 1119328, 1149984, 1124800, 1302976, 999200, 1158400, 1148736, 1148096, 1130496, 1065440, 1040928, 1095360, 1095712, 1102944, 1045216, 1189536, 1022656, 1216320, 1084960, 1005024, 1071456, 1025920, 1320160, 1132192, 1162976, 1136128, 983552, 1041408, 1114752, 1170976, 1143040, 1045408, 1267168, 1039200, 1275328, 1237408, 1056352, 1252288], "wall_ns": [1557165, 1329436, 1602446, 1504381, 1628622, 1452653, 1515565, 1430685, 1690335, 3645999, 1968626, 1308123, 1635374, 1919793, 1448669, 1619150, 1681038, 1681119, 1593374, 1603454, 1724047, 1342204, 1293275, 1295131, 1336268, 1445725, 1432476, 1506029, 1420253, 1446780, 1507133, 1375084, 1421709, 1427644, 1570030, 1519229, 1321804, 1585006, 1470588, 1465309, 1373900, 1363164, 1397804, 1445677, 1544253, 1386172, 1415213, 1439740, 1642287, 1396508]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [105632, 101600, 103680, 100064, 94592, 112480, 134816, 92768, 93056, 96224, 95296, 101888, 105696, 105696, 119232, 182240, 137792, 114080, 114432, 115232, 168288, 141952, 102976, 105344, 108864, 100928, 93536, 98976, 103872, 107968, 110176, 102208, 103232, 101024, 101216, 104672, 92672, 92096, 95168, 91744, 95712, 93536, 96768, 103424, 125536, 179424, 140032, 99456, 103776, 102432], "wall_ns": [461860, 569637, 432435, 436276, 450436, 445268, 427924, 422643, 436100, 439188, 428836, 424708, 425075, 425076, 428644, 427875, 424852, 422660, 427044, 422083, 421908, 419524, 443971, 449444, 454836, 458964, 443284, 444324, 421620, 437540, 452036, 446467, 454484, 434228, 439220, 442756, 422084, 434851, 452436, 449412, 443252, 439764, 434148, 446020, 429875, 424996, 450420, 448452, 457524, 464772]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [123488, 106176, 120416, 103072, 106592, 112416, 108384, 120480, 106976, 115424, 108224, 112288, 119360, 106176, 108064, 106240, 117472, 106048, 108256, 108128, 106592, 116128, 107072, 118400, 107232, 110848, 109216, 104832, 110240, 107072, 109984, 113184, 116736, 106592, 110496, 109152, 112192, 114368, 107552, 109152, 122432, 107616, 108128, 110368, 114016, 109792, 104000, 104768, 109984, 111680], "wall_ns": [478868, 465124, 468389, 469812, 458692, 460708, 479044, 462516, 461252, 458420, 464164, 471524, 470004, 474980, 460628, 458676, 461956, 465669, 467924, 466100, 470596, 472148, 469076, 484420, 466388, 470308, 468484, 470853, 473860, 475444, 476548, 474164, 468084, 473588, 470340, 465829, 536388, 558725, 481540, 486053, 469268, 480932, 481844, 470404, 474868, 469876, 482341, 476276, 475796, 459892]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [172128, 171936, 171008, 173056, 170112, 171168, 171104, 170976, 173088, 171456, 170080, 170336, 171424, 169216, 172032, 170016, 170880, 171808, 170528, 170080, 171680, 170080, 170208, 170144, 170848, 170912, 172064, 169888, 172736, 170112, 170816, 170976, 170144, 171456, 171584, 169568, 169888, 172320, 172704, 172160, 171008, 171648, 171808, 169824, 172128, 171328, 170432, 170784, 169760, 171936], "wall_ns": [292355, 270786, 268290, 267059, 267090, 267106, 267219, 266130, 268226, 266995, 266082, 267314, 267123, 266034, 268338, 294915, 270402, 327379, 336243, 329155, 269266, 267299, 269842, 376579, 268739, 274450, 318611, 276034, 266275, 267154, 267346, 266035, 267442, 266962, 266114, 265235, 270658, 264658, 265587, 264706, 268370, 266755, 268226, 265106, 266195, 265138, 266098, 266275, 267010, 266082]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [473152, 469664, 466656, 472320, 465408, 471200, 503680, 469216, 463872, 462176, 467456, 513856, 467616, 468416, 575840, 531584, 618048, 469568, 467040, 459520, 464448, 460288, 464704, 473568, 654784, 463360, 460736, 464320, 515968, 511360, 469056, 459712, 460480, 458592, 459232, 461120, 466112, 457504, 459168, 461312, 463616, 462304, 462272, 463968, 467232, 466784, 472704, 476672, 467552, 463424], "wall_ns": [612150, 571237, 575589, 579429, 568309, 569941, 577589, 570197, 567204, 569926, 567493, 573092, 560325, 565141, 577477, 569093, 577397, 563173, 568069, 561061, 573557, 568309, 574101, 569509, 577285, 570965, 568213, 567061, 573013, 562453, 572373, 563989, 560037, 564677, 570597, 567029, 559780, 588582, 610293, 746310, 736263, 581061, 574341, 572373, 583589, 762519, 579589, 571477, 676086, 578853]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [43680, 38944, 38240, 36576, 37792, 39424, 36352, 37408, 37984, 36736, 36992, 36608, 36352, 35776, 36928, 36384, 35584, 36288, 36032, 35552, 37472, 36224, 37184, 34560, 36768, 36064, 36288, 36064, 36032, 35744, 40704, 36768, 36736, 36576, 36576, 35232, 34976, 35296, 35872, 35680, 35552, 35744, 35840, 35520, 36512, 34496, 36128, 35424, 36896, 35968], "wall_ns": [167746, 135601, 131713, 131633, 130194, 130161, 129089, 129281, 129329, 128961, 132193, 128210, 127409, 128577, 128049, 129585, 128065, 129329, 126321, 127649, 129858, 127169, 129905, 129345, 129041, 142161, 159842, 128593, 138465, 230690, 174722, 197553, 201986, 127361, 127969, 127025, 131330, 127585, 129553, 127761, 205298, 207394, 130241, 129041, 126849, 128225, 162306, 139121, 162033, 127633]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [42208, 40032, 38592, 37440, 37952, 37824, 37760, 37536, 38144, 36544, 36544, 36992, 37408, 37216, 37760, 36704, 37088, 36480, 36320, 37120, 37696, 37376, 36800, 36832, 37152, 36480, 37760, 36160, 36864, 36896, 36800, 40224, 37600, 36352, 37024, 37088, 36864, 37088, 38496, 36928, 37248, 38624, 36736, 37088, 37408, 37056, 37248, 39040, 36224, 37056], "wall_ns": [155122, 200433, 130530, 130081, 128161, 129329, 128881, 128305, 128769, 128833, 130210, 129569, 129441, 129201, 129041, 130737, 130049, 129313, 129330, 129921, 128833, 128737, 128865, 130241, 128257, 127249, 128946, 128849, 128577, 129265, 128193, 129105, 130145, 130033, 131042, 130417, 132305, 128897, 131313, 129633, 129377, 128530, 128241, 131473, 128257, 128529, 131553, 129505, 130417, 128994]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [91616, 91520, 91904, 95488, 92960, 91072, 90592, 90752, 90112, 89920, 90944, 91744, 92896, 91872, 90848, 91040, 90016, 91872, 93024, 90144, 91296, 92000, 91296, 90976, 90176, 92032, 91616, 89984, 90432, 89792, 90304, 89344, 90048, 90240, 90720, 89920, 90688, 90208, 90432, 92736, 91040, 90368, 88896, 89184, 91680, 90208, 91328, 90112, 91680, 91072], "wall_ns": [693542, 473876, 292563, 300258, 300179, 288306, 299315, 289442, 287075, 284898, 293027, 293379, 284994, 297363, 287250, 301491, 287106, 286195, 284978, 1119882, 308019, 287090, 293123, 286450, 293939, 286450, 287507, 290434, 286803, 293539, 284834, 292387, 293250, 284595, 293042, 293459, 291970, 292595, 293954, 292499, 285906, 286915, 286914, 293235, 296499, 295554, 295283, 294482, 294051, 295474]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [493632, 500736, 557056, 463744, 430144, 431296, 431424, 429056, 430016, 430080, 427648, 433696, 428512, 428672, 431392, 430528, 432576, 430528, 430816, 427744, 428704, 429600, 429536, 427360, 424960, 429248, 425504, 422176, 432128, 430784, 430208, 424288, 423264, 430176, 471008, 547872, 492416, 678368, 612448, 437888, 430656, 439680, 433152, 645536, 438720, 494944, 498688, 434016, 434336, 423520], "wall_ns": [664293, 644742, 634710, 643989, 628726, 643941, 640502, 637349, 635318, 634885, 634502, 721814, 705303, 648389, 634310, 632229, 632502, 641941, 636646, 718966, 1050505, 641910, 636374, 873799, 671078, 743414, 639606, 650534, 630021, 633430, 630629, 638598, 628885, 635494, 628149, 635606, 628853, 641718, 628661, 631270, 629589, 643622, 630054, 634437, 624774, 634549, 627830, 634373, 640406, 696950]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [56576, 53248, 53024, 51968, 51232, 60608, 53376, 52416, 51008, 52768, 51744, 51840, 53088, 52224, 52736, 51904, 52928, 51808, 52480, 52192, 51328, 52096, 52864, 53024, 50848, 51680, 52416, 52256, 51936, 50944, 51744, 52192, 51328, 51648, 51968, 52256, 51872, 51104, 51680, 51264, 51232, 51712, 51520, 51168, 52992, 51136, 52064, 51200, 51552, 52672], "wall_ns": [17701546, 248002, 222018, 221250, 219346, 217602, 218514, 217490, 219426, 215586, 217313, 216690, 219506, 218642, 215378, 217602, 217458, 216674, 217586, 217410, 217489, 217650, 216226, 217810, 218370, 216322, 221074, 215922, 218402, 216610, 218273, 218642, 218578, 218450, 216370, 216610, 219490, 225026, 218114, 216978, 217041, 218674, 221490, 218338, 219330, 215682, 218274, 216610, 216434, 217410]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [53952, 50976, 53472, 50880, 50304, 52064, 51360, 51136, 50944, 51328, 51488, 50560, 51072, 50976, 51232, 51200, 50816, 50112, 51072, 51008, 51584, 50528, 51168, 51168, 52160, 54144, 50912, 51136, 52320, 51040, 52256, 51392, 50144, 52928, 51072, 49088, 50176, 51200, 50752, 49280, 50880, 50496, 52128, 51136, 50688, 51808, 50208, 52256, 51264, 50944], "wall_ns": [239858, 222370, 217314, 225458, 215538, 217345, 218706, 216258, 219506, 215554, 218642, 217538, 217394, 216626, 216626, 218241, 217666, 215570, 218706, 216274, 217762, 218546, 216994, 217794, 218482, 217489, 216578, 217618, 218498, 216354, 215490, 216578, 217602, 224514, 218546, 215553, 218466, 215586, 215346, 217586, 218338, 218498, 216338, 217906, 217921, 216546, 217522, 217426, 219762, 225378]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_cudnn_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [33152, 29664, 30688, 29696, 29216, 30976, 30688, 29312, 29664, 30560, 29632, 30752, 29088, 31936, 31648, 29152, 30176, 30624, 29792, 28544, 29952, 30016, 28576, 29344, 32064, 38368, 30624, 30656, 30752, 31872, 31520, 29856, 29184, 28800, 30688, 28768, 30560, 31712, 30848, 29856, 29696, 31264, 30016, 29408, 29216, 30464, 29696, 28672, 32672, 27904], "wall_ns": [48833, 47136, 41745, 42816, 41616, 42913, 39808, 40208, 42545, 51040, 43041, 39856, 43856, 42993, 40448, 42288, 41137, 41664, 43456, 50673, 50272, 40721, 39936, 40800, 41281, 40480, 49105, 40752, 38912, 40849, 49056, 41936, 40817, 40800, 42097, 42816, 42832, 48225, 41840, 40848, 48145, 40640, 42849, 41264, 42752, 41553, 39888, 40832, 46977, 40928]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_cudnn_bf16", "warm": 10, "reps": 50, "dev_ns": [203808, 203232, 199008, 200864, 201344, 200288, 199456, 209632, 201216, 193792, 195808, 196512, 199040, 198528, 198720, 204384, 202784, 202464, 204992, 199584, 201600, 203008, 198368, 199520, 201056, 200256, 202752, 200256, 224480, 212640, 214336, 220704, 220320, 226688, 215680, 223040, 214592, 225248, 216032, 204416, 212352, 206528, 211648, 207808, 210880, 204384, 211872, 203520, 205920, 206400], "wall_ns": [227762, 241874, 238450, 215890, 214802, 221122, 210898, 210594, 215265, 214754, 216130, 209650, 215138, 217970, 209938, 214930, 213777, 213186, 214594, 211122, 218866, 212098, 217794, 218514, 214449, 209762, 214802, 214018, 210770, 214210, 212514, 210801, 214290, 215746, 211650, 215090, 211810, 209922, 211825, 215522, 219570, 212450, 216898, 214994, 215202, 212770, 217921, 208978, 212722, 209730]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_flash_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [37504, 35808, 36736, 34848, 33472, 34688, 36032, 35264, 41216, 34816, 36032, 34784, 35040, 34720, 34816, 33664, 34080, 34784, 34912, 34848, 34624, 36032, 34848, 34688, 34976, 34848, 34816, 34784, 35744, 35072, 33856, 33440, 34976, 34720, 34752, 34528, 34528, 34912, 35136, 34240, 35872, 33664, 34752, 34912, 35104, 35200, 35776, 34816, 33568, 34048], "wall_ns": [53872, 53681, 52080, 51041, 54640, 51633, 50368, 53025, 53472, 51825, 50848, 52416, 52497, 52816, 52081, 52208, 54305, 52272, 53921, 51296, 51057, 51312, 53168, 54001, 51248, 54289, 50832, 51393, 53056, 51185, 51008, 51153, 50032, 51008, 52161, 52176, 51169, 52064, 50113, 52224, 53185, 50112, 69329, 51200, 51217, 51040, 51200, 50961, 51200, 52129]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_flash_bf16", "warm": 10, "reps": 50, "dev_ns": [208640, 207392, 204256, 205536, 208672, 209152, 207616, 206784, 205632, 205664, 206688, 213504, 256224, 211104, 205120, 213760, 318912, 290080, 268128, 336640, 203808, 209792, 204064, 214688, 209344, 205344, 208544, 208864, 213696, 206464, 318688, 301536, 214432, 211200, 213888, 208576, 210624, 248768, 232384, 268768, 206368, 208384, 202176, 203168, 202688, 204704, 203712, 204768, 207744, 203616], "wall_ns": [224770, 215906, 220034, 213842, 210866, 212898, 219969, 214018, 230274, 240418, 221154, 215122, 219810, 214050, 214690, 214114, 218130, 214850, 216818, 211201, 223090, 211778, 213938, 210002, 212722, 214050, 208369, 211122, 211938, 213746, 210050, 214818, 219330, 212433, 211986, 1283643, 281330, 215826, 214834, 220242, 217970, 218817, 221138, 215874, 222130, 213938, 218802, 217042, 221170, 216946]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [109280, 106400, 108224, 105312, 106592, 106240, 105216, 107328, 107328, 105280, 107616, 106592, 105504, 107360, 106976, 105088, 105472, 105120, 107424, 107648, 104480, 106304, 105600, 107328, 105600, 104832, 105280, 107552, 107424, 105536, 107648, 104576, 104640, 107136, 107456, 106528, 105216, 113536, 107552, 104064, 107488, 106368, 106624, 104640, 106528, 106400, 105120, 105472, 106336, 107424], "wall_ns": [135313, 120865, 119537, 124641, 125777, 120705, 126913, 125889, 124881, 125729, 123857, 117697, 118737, 119921, 118545, 116657, 124738, 115761, 126705, 115825, 127937, 117553, 116913, 118497, 125985, 117633, 116609, 124913, 117633, 116961, 118593, 120833, 118801, 116513, 124881, 116785, 118465, 119122, 126465, 126145, 116273, 119569, 123825, 124225, 124497, 123825, 124289, 124497, 117505, 124961]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_efficient_bf16", "warm": 10, "reps": 50, "dev_ns": [276160, 271424, 277440, 273536, 275296, 334720, 274688, 347872, 381440, 420064, 277920, 277248, 281440, 276384, 283168, 287360, 462240, 284224, 279392, 284704, 319488, 316800, 277408, 283840, 273152, 274144, 273280, 276256, 271232, 272064, 296192, 310816, 293824, 300384, 302176, 300800, 275392, 296672, 276224, 275040, 274464, 275904, 274272, 271232, 276032, 275648, 275200, 276608, 276480, 275520], "wall_ns": [303619, 288450, 287571, 294754, 286883, 286274, 288851, 285826, 292643, 292547, 286626, 291139, 285330, 285491, 292226, 288291, 290866, 287731, 287506, 286643, 293986, 287619, 288642, 285683, 295842, 288595, 285826, 292323, 293971, 289730, 286563, 285746, 289619, 285330, 290979, 308834, 339075, 328915, 318131, 327587, 292610, 292323, 298018, 287491, 286562, 294851, 286627, 290562, 282355, 287058]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_math_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [1124800, 1403968, 1176256, 1176992, 1126784, 1205888, 1113760, 1116320, 1108032, 1112064, 1105696, 1116704, 1110560, 1103200, 1121440, 1355488, 1340832, 1325152, 1152352, 1146304, 1147680, 1365056, 1154560, 1220448, 1175968, 1128640, 1137152, 1128672, 1120928, 1130944, 1135008, 1115104, 1125120, 1123168, 1104192, 1100896, 1112608, 1102368, 1102944, 1121984, 1251232, 1324416, 1153024, 1120512, 1116800, 1130976, 1123424, 1136992, 1123712, 1121504], "wall_ns": [1147258, 1134586, 1155786, 1148106, 1155226, 1149546, 1136666, 1137114, 1122106, 1135434, 1134697, 1145514, 1152250, 1121786, 1122138, 1127434, 1266555, 1245019, 1175386, 1147658, 1142794, 1204107, 1141450, 1152090, 1140698, 1154858, 1151626, 1153002, 1152906, 1150826, 1143466, 1137930, 1130330, 1131834, 1127353, 1126522, 1201179, 1393372, 1309771, 1164010, 1159467, 1140841, 1142602, 1134378, 1142714, 1142618, 1141722, 1142746, 1147994, 1132394]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_math_bf16", "warm": 10, "reps": 50, "dev_ns": [1244320, 1251072, 1425024, 1282624, 1295040, 1274624, 1275104, 1292448, 1286240, 1279392, 1274624, 1268992, 1263296, 1278176, 1250272, 1291584, 1261152, 1253600, 1261952, 1250688, 1247296, 1283840, 1461856, 1427584, 1267904, 1285952, 1277888, 1277088, 1281728, 1279232, 1272832, 1283424, 1269056, 1269440, 1273440, 1257920, 1254752, 1239200, 1344448, 1366304, 1328064, 1317920, 1295520, 1269408, 1273824, 1297632, 1268832, 1273856, 1274880, 1286432], "wall_ns": [1301979, 1288460, 1289371, 1294827, 1263643, 1323772, 1567805, 1369756, 1292284, 1288747, 1283035, 1300379, 1289916, 1298315, 1295483, 1295196, 1290987, 1277499, 1273915, 1271691, 1284987, 1328076, 1284923, 1269835, 1268363, 1291788, 1266107, 1348363, 1330620, 1299323, 1287052, 1282939, 1298315, 1291595, 1285020, 1269915, 1277659, 1274587, 1267755, 1252939, 1327115, 1269196, 1268651, 1259515, 1379612, 1467693, 1377116, 1275739, 1280971, 1279851]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_f32q_f32kv_pregathered", "warm": 10, "reps": 50, "dev_ns": [240192, 237184, 237856, 236448, 236544, 236192, 237568, 235360, 235488, 236384, 235072, 235616, 236288, 236640, 236480, 235712, 235552, 236448, 235968, 241888, 236384, 235232, 235648, 236032, 238624, 237728, 236672, 237664, 237504, 235680, 236672, 237088, 236800, 235328, 236256, 236448, 235584, 237024, 236576, 235360, 236544, 237216, 235584, 235520, 235520, 236448, 235488, 235648, 235744, 235584], "wall_ns": [268259, 250706, 248610, 254914, 247570, 247683, 246594, 247906, 246706, 247666, 246850, 247731, 246434, 249042, 247618, 247698, 248706, 246626, 247699, 246722, 246770, 248818, 246578, 246802, 246723, 249650, 256914, 248754, 257282, 257939, 257746, 255042, 247618, 247762, 256771, 246626, 247714, 246738, 245954, 246626, 247555, 246354, 246738, 255874, 254146, 246611, 247554, 246786, 246514, 247058]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/omega/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/omega/stderr.txt new file mode 100644 index 0000000..dedb10c --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/omega/stderr.txt @@ -0,0 +1 @@ +LOCK_HELD_S .738672861 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/omega/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/omega/stdout.jsonl new file mode 100644 index 0000000..052ffd2 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/omega/stdout.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":0,"first_call_ns":91051595,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[107521,106513,108017,106897,106897,107537,107217,106833,107169,107409,107569,107601,108688,108033,107905,107793,107201,107185,65681,106209,106481,106097,107169,106144,106401,106513,106865,106337,107121,106769,107009,106881,106833,106417,106785,106593,106529,74400,107617,106801,106465,106961,106785,107585,106577,106785,106833,107345,106848,107201],"chip_ns":[104865,104129,105473,104465,104401,105041,104529,104481,104577,105009,105137,105025,106384,105457,105425,105185,104673,104657,63025,103713,104017,103649,104801,103792,103793,104017,104305,103969,104753,104161,104433,104369,104161,103985,104353,104225,104017,71712,105297,104289,104129,104433,104289,105121,104081,104289,104433,104960,104448,104721]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":0,"first_call_ns":945401,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[209378,212146,208370,207970,218338,206882,208930,210882,214802,210834,209234,206833,208001,208546,209602,206850,208434,214018,208418,208482,211202,209826,209793,210369,209426,209954,215778,211666,211394,209154,210674,163105,209234,208786,209122,211762,210370,209170,211074,209810,213266,208930,210434,212305,212385,211154,210082,210082,212258,221250],"chip_ns":[107233,109025,109617,109552,118945,108593,108913,110097,111297,109057,108593,108289,108801,108433,108849,108321,109584,108721,108689,107537,107505,107905,107345,108753,108017,109201,109377,109553,108897,108001,108801,61089,107521,106801,108353,108929,108017,108513,110113,108561,107393,107585,107601,109201,109601,108353,108321,109329,109985,109201]} +{"case":"rope_32x128","rc":0,"mutant":0,"first_call_ns":518133,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[108817,108977,108385,110433,110929,110801,111569,111009,114945,110609,111665,110097,109137,108689,108625,108945,109361,108321,110129,108113,108608,108097,107937,109601,108545,108449,108049,108849,109041,108817,108673,108161,108161,108289,108193,108657,108273,110225,109072,109201,110337,111313,109073,110497,108865,64961,107873,108097,110017,109105],"chip_ns":[104673,105105,104481,106353,106449,106641,107441,106849,110833,106321,107297,105937,104881,104609,104337,104561,104753,104065,105841,104016,104688,103953,103825,105729,104417,104401,104161,104769,105201,104721,104673,104081,104113,104353,104241,104449,104497,106177,105056,105200,106065,107217,104993,106401,104881,60929,104001,104225,106129,105153]} +{"case":"swiglu_5632","rc":0,"mutant":0,"first_call_ns":551861,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[111793,111665,111009,111025,110145,110913,110993,110369,109745,109201,109905,111777,109568,109841,109649,110017,109793,110705,109873,110001,110705,109553,111153,110913,110657,110049,110273,109009,108833,109297,110097,109009,108913,109649,108977,109441,109297,109633,109649,110144,109345,109073,64369,110497,109073,108897,109489,109889,109025,109169],"chip_ns":[106817,106305,105729,105825,105073,105649,105777,105201,104561,104113,104881,106369,104512,104544,104465,104833,104753,105489,104641,104913,105425,104321,105809,105585,105441,105041,105057,103841,103809,104225,105041,103617,103809,104689,104017,104193,104209,104369,104641,105024,104336,104145,59025,105505,103793,103953,104481,104513,103841,104145]} +{"case":"swiglu_131072","rc":0,"mutant":0,"first_call_ns":763911,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[224498,231058,221634,224914,222626,219682,221970,221826,221250,197201,220546,223554,219938,222610,219730,223906,220594,218930,219042,217314,219938,221426,219714,217970,215074,217218,218114,221106,218898,218146,219346,218466,222882,223618,220946,223938,221634,220498,223602,222034,225714,221778,222866,223410,221314,222930,221586,223314,217586,223586],"chip_ns":[107841,108753,109041,107617,107985,107441,107377,107521,107009,82369,107041,107329,106305,108065,107233,108193,107249,107121,107393,107569,108257,107985,106113,106177,105825,106785,106561,106593,106993,107649,107569,106513,108977,108273,109329,107761,108097,107953,108801,108193,107009,107809,107569,109232,108145,109009,108513,110209,100017,108257]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":0,"first_call_ns":5211885,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1101850,1207338,1131546,1132938,1118938,1141338,1263259,1243323,1141514,1167162,1124170,1103305,1088858,1092121,1135706,1078298,1080393,1106106,1091817,1268523,1224539,1045801,1102778,1091129,1097802,1088377,1083562,1067465,1069818,1068857,1069513,1212475,1249051,1060473,1055433,1052809,1042521,1046889,1059849,1071769,1065641,1091946,1136458,1063129,1141434,1050969,1053546,1066921,1064985,1124986],"chip_ns":[399876,477780,421667,422420,417428,419444,515253,420244,417764,420132,418868,415315,413460,414691,473668,414420,416116,416372,420339,522404,421108,386483,411236,418579,413844,415459,417876,416739,415396,418020,416947,520261,484116,414900,413379,414915,412611,414948,417300,421827,418627,420516,477028,412755,472532,415331,413796,413860,417715,416468]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":0,"first_call_ns":830247,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[549093,541028,538773,540709,518996,545301,677110,664230,541461,537924,538661,512868,538405,543861,538085,539556,500421,533156,536245,540325,490100,538517,538804,536981,539813,539653,512852,535029,533524,536021,545413,540885,647733,663702,552005,539428,537509,543525,513124,537941,540037,538693,538004,544277,503092,539093,540037,538068,579317,538613],"chip_ns":[420276,417955,416740,416548,394131,418868,525781,519845,414116,415603,414228,387395,413795,412996,413236,412707,380180,412419,414420,414324,366083,414708,413699,413491,414980,412404,388867,411092,412739,413684,416708,414228,517748,509764,413124,414051,412099,413796,391763,413732,412468,412996,413315,416500,374355,413236,413284,411411,453748,412867]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":0,"first_call_ns":3728064,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[2323668,2609271,2363605,2379813,2327012,2370900,2326004,2484485,2356052,2361461,2569126,2562294,2592711,2466086,2281844,2369812,2384581,2383029,2785945,2440086,2371909,2298228,2433349,2609847,2533782,2463350,2407717,2359285,2396037,2377860,2700088,2379013,2410245,2452902,2368309,2495430,2438693,2365604,2503814,2474182,2336276,2300644,2526134,2537126,2541734,2288644,2425829,2404261,2361669,2368997],"chip_ns":[1340429,1582637,1348443,1376908,1328651,1366364,1341932,1460813,1360204,1366588,1576062,1561663,1546557,1471518,1279211,1373452,1381261,1387740,1785839,1433628,1370604,1270939,1389290,1593470,1515629,1377803,1386908,1357164,1379740,1369836,1654863,1354475,1376060,1438892,1350445,1446748,1376203,1359788,1476253,1445437,1267372,1243851,1487629,1457628,1472812,1227803,1376108,1357868,1335626,1352811]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":0,"first_call_ns":488501,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[173330,172577,175154,174209,176210,173457,170722,171361,174706,174881,146482,171921,170626,172129,173330,171793,138129,174850,173682,170129,171474,171937,133409,170242,171265,170482,172609,174674,139281,169921,173490,175281,171986,171825,242131,175953,175746,174113,173810,178497,172466,171729,173570,172433,172274,150273,169346,171905,169986,172577],"chip_ns":[105985,106193,108657,106193,106112,105441,104752,104705,107569,107777,79104,105313,105169,106097,106513,106081,71121,106929,105793,105121,105393,105313,67745,105233,105297,104833,105905,107601,72385,103921,104720,105009,104497,104225,172945,105905,105233,105121,104785,106129,105473,105361,106769,105649,105345,83057,104577,104609,104801,104497]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/torch/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/torch/stderr.txt new file mode 100644 index 0000000..373f4f6 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/torch/stderr.txt @@ -0,0 +1,15 @@ +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory efficient kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1240.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory Efficient attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:600.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1242.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:588.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1244.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Expected query, key and value to all be of dtype: {Half, BFloat16}. Got Query dtype: float, Key dtype: float, and Value dtype: float instead. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:110.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:922.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +LOCK_HELD_S 3.031847749 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/torch/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/torch/stdout.jsonl new file mode 100644 index 0000000..181ca5f --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r3/torch/stdout.jsonl @@ -0,0 +1,32 @@ +{"case": "rmsnorm_1x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [16256, 11648, 10368, 11424, 10624, 9920, 10688, 11616, 10304, 10400, 10304, 10304, 10336, 10208, 10208, 9888, 10496, 10176, 10400, 10880, 10496, 10560, 16224, 10272, 10400, 10656, 10208, 10208, 10656, 10432, 10272, 10368, 9984, 9984, 10144, 10528, 10400, 10624, 10528, 10112, 9952, 10176, 10016, 10112, 9888, 11040, 10304, 10112, 10272, 10048], "wall_ns": [38352, 22192, 20145, 18864, 20320, 18816, 18544, 20304, 18737, 19520, 17936, 19680, 18272, 19456, 18433, 19440, 18224, 19616, 18336, 19584, 18337, 19056, 18112, 19776, 18656, 21504, 18289, 20256, 18128, 19824, 20608, 20400, 18465, 19840, 18464, 19568, 18544, 19184, 18785, 19920, 18576, 19152, 18896, 19024, 18353, 19856, 18640, 19296, 18624, 19056]} +{"case": "rmsnorm_64x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [12000, 10464, 10496, 9440, 9568, 9504, 10272, 10400, 10240, 10336, 9920, 10080, 10336, 10368, 10400, 10176, 10656, 10656, 11424, 10464, 10400, 10496, 10624, 10528, 10208, 10272, 10336, 10432, 10240, 10272, 10144, 10560, 10432, 10496, 10528, 10560, 12352, 9824, 9632, 11680, 10432, 12416, 10368, 12096, 10368, 10144, 10400, 15456, 10336, 10144], "wall_ns": [312931, 46656, 38273, 37744, 38080, 38001, 38112, 37824, 38257, 38016, 38336, 37313, 37648, 38080, 37617, 37248, 38240, 43841, 37648, 37712, 38257, 37456, 36944, 37969, 38000, 37760, 37233, 37200, 38448, 38161, 37744, 37872, 39137, 37792, 37232, 38257, 37824, 37408, 37505, 37824, 38000, 37217, 38256, 37360, 37873, 38160, 43408, 38657, 38032, 37696]} +{"case": "rope_32x128", "backend": "torch_ops", "warm": 10, "reps": 50, "dev_ns": [41728, 34944, 35232, 35200, 35456, 36480, 35168, 34720, 35328, 35104, 35904, 34944, 35232, 40608, 35104, 37024, 35328, 35648, 35584, 35552, 35296, 34880, 35488, 35680, 35008, 35168, 35072, 35392, 35360, 35136, 33920, 35552, 35328, 35200, 35232, 35072, 37632, 35328, 35200, 34688, 35136, 36352, 35232, 34912, 35008, 35072, 34720, 35264, 34944, 35072], "wall_ns": [65377, 43664, 43793, 42496, 42384, 42289, 42864, 44561, 44160, 49136, 44001, 45616, 44017, 43760, 45680, 43777, 44032, 43873, 44560, 44960, 44401, 44112, 43904, 43777, 43744, 43857, 44272, 45856, 44017, 43712, 44161, 44560, 43616, 43265, 46832, 43873, 43424, 43936, 44209, 43360, 44016, 43505, 43776, 43953, 43584, 45744, 44001, 45184, 44016, 43488]} +{"case": "swiglu_5632", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [14400, 11872, 12832, 13024, 13472, 12320, 12064, 12832, 12416, 12064, 12000, 12896, 12448, 12544, 11616, 12064, 12128, 13056, 11936, 15840, 12224, 12128, 12992, 12960, 12992, 12416, 10848, 12448, 11936, 12704, 12448, 11712, 13088, 11840, 13344, 12544, 12512, 11776, 12672, 11744, 13152, 12832, 12448, 13952, 12640, 12480, 11872, 12480, 12160, 12896], "wall_ns": [49200, 35073, 33104, 29504, 29280, 34257, 30400, 32416, 33425, 29808, 31200, 30496, 32209, 32704, 32896, 31297, 30400, 31520, 30176, 28545, 29968, 28800, 30384, 29313, 34560, 28000, 29984, 31489, 32432, 31440, 33297, 32400, 32304, 36208, 33649, 33200, 33344, 30561, 31088, 30704, 30096, 32369, 32288, 31264, 30432, 30897, 29232, 29024, 30065, 31328]} +{"case": "swiglu_131072", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [14432, 12768, 12704, 11936, 12960, 13088, 13664, 12672, 12032, 12864, 13600, 13568, 12608, 12480, 12128, 12832, 17248, 12032, 12864, 12736, 11712, 12480, 12704, 12064, 12832, 13152, 13152, 12672, 12608, 12448, 12032, 12960, 12256, 12384, 12416, 12160, 11808, 12416, 12128, 12928, 12320, 12256, 11744, 12928, 11904, 12576, 12128, 11840, 11936, 11840], "wall_ns": [62416, 108001, 57713, 57552, 57649, 56112, 55697, 55760, 55761, 56976, 56609, 55856, 57073, 57008, 58849, 57584, 57729, 57360, 56849, 57072, 56801, 57488, 56801, 57056, 57265, 57408, 56641, 56528, 57057, 57008, 56945, 58096, 56145, 57344, 57297, 57264, 57105, 57280, 57921, 57760, 56449, 57264, 57713, 58464, 58897, 57712, 57329, 56176, 56065, 56000]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [239840, 239072, 237056, 238016, 240640, 236160, 236704, 236288, 234304, 235584, 236480, 236544, 236256, 235008, 235200, 235488, 235456, 238464, 237632, 235360, 233760, 236128, 237280, 238400, 236288, 237056, 236288, 238112, 238336, 235648, 236192, 237472, 237472, 238976, 237216, 234432, 235680, 234272, 235104, 236512, 236320, 237824, 238336, 236224, 236480, 234560, 234752, 236288, 234336, 235424], "wall_ns": [1860608, 1662926, 580997, 561333, 563557, 543125, 563269, 576005, 563237, 554677, 558949, 566308, 573334, 555124, 558709, 552373, 549941, 619093, 888728, 555989, 578197, 765079, 650165, 602966, 566180, 556709, 571221, 574181, 559909, 552805, 567269, 560325, 572277, 549477, 554517, 548628, 549157, 551461, 551285, 544420, 559205, 546005, 566405, 573237, 555973, 549109, 547524, 548053, 566821, 561653]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [1156576, 1168736, 1146080, 1162208, 1189632, 1130848, 1156512, 1164128, 1150112, 1161184, 1218592, 1131264, 1304096, 1285248, 1152736, 1174496, 1155072, 1173920, 1337344, 1157088, 1243072, 1177952, 1163648, 1190144, 1158176, 1216160, 1189792, 1105536, 1036992, 1002336, 1162496, 1060960, 995520, 983616, 1027520, 1289184, 1272224, 1246592, 1250496, 1210496, 1223584, 1239808, 1212512, 1205344, 1399488, 1201600, 1386240, 1115712, 1053920, 1083808], "wall_ns": [1327580, 1297035, 1275195, 1276539, 1279995, 1275628, 1278107, 1286827, 1280011, 1274331, 1306764, 1286939, 1330987, 1321948, 1343148, 1401100, 1456157, 1401308, 1279867, 1364188, 1314747, 1420093, 1478381, 1515293, 1725199, 1440381, 1468044, 1577838, 1419724, 1361052, 1464749, 1460685, 1451181, 1424396, 1451133, 1494749, 1391516, 1393516, 1352604, 1427532, 1337052, 1305003, 1289148, 1280875, 1345724, 1351835, 1482221, 1442637, 1302587, 1432077]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [107232, 106784, 98624, 107648, 100096, 102368, 103296, 92512, 92672, 89792, 92896, 101920, 100864, 99936, 101632, 99200, 97824, 95392, 95392, 97056, 93248, 88576, 87776, 87136, 89792, 89856, 89760, 88768, 92992, 98944, 99296, 96000, 99136, 97696, 99456, 99360, 101248, 103232, 99328, 102016, 98880, 98592, 99424, 99488, 97280, 97312, 100960, 100128, 99552, 99520], "wall_ns": [431428, 445684, 427795, 425556, 442548, 437812, 442516, 448388, 443187, 435108, 446836, 429396, 420932, 435091, 423812, 437268, 423668, 427059, 422948, 421508, 424163, 428804, 438628, 425284, 446612, 456531, 454212, 448468, 440212, 445428, 428900, 440356, 449380, 450644, 454468, 441491, 444036, 429572, 431252, 446436, 445396, 443043, 440468, 436996, 445444, 427716, 424931, 429012, 425876, 426852]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [106784, 106080, 102816, 96096, 104192, 107968, 104032, 106432, 106176, 103200, 103744, 102368, 104000, 94240, 93024, 96256, 95904, 96288, 93536, 102880, 104416, 104320, 105024, 101376, 108192, 106432, 102784, 105408, 102912, 104256, 106368, 100256, 98720, 102816, 105024, 103392, 104480, 107712, 103616, 103328, 102176, 105312, 104192, 99200, 95360, 102496, 99072, 105312, 105280, 103296], "wall_ns": [443316, 431700, 437188, 427555, 431268, 425748, 437140, 431107, 445556, 429668, 462964, 460900, 452420, 447092, 446532, 451620, 435940, 440339, 3625840, 442324, 694198, 434724, 546997, 445091, 430084, 430548, 435060, 426803, 433076, 431924, 439828, 434500, 450836, 456116, 464420, 438163, 451012, 437476, 435732, 459220, 458852, 453940, 437972, 456692, 428916, 443459, 530005, 484212, 500629, 453396]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [174976, 172160, 171968, 173920, 171744, 174624, 171616, 171200, 172224, 172832, 173024, 170816, 172864, 172512, 171872, 171040, 171680, 170752, 170912, 172800, 171840, 172864, 172704, 171136, 171776, 170432, 169920, 171168, 174912, 171296, 171040, 170656, 171456, 171040, 171904, 172768, 171968, 171872, 172320, 171360, 172416, 169792, 171072, 171200, 173280, 169344, 171200, 171392, 170816, 172608], "wall_ns": [295907, 273266, 267874, 273219, 268402, 271218, 268211, 268994, 279715, 269026, 268450, 270867, 268306, 268194, 267379, 269042, 267234, 266115, 267058, 267634, 267219, 267922, 302179, 281042, 316115, 326723, 339379, 267074, 268594, 267875, 360755, 279362, 268979, 321442, 267059, 269346, 267346, 270915, 274786, 269106, 268211, 271186, 269235, 270066, 265490, 271011, 265394, 266994, 267011, 268066]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [570592, 510784, 461760, 569664, 590528, 620704, 607872, 491840, 560608, 541664, 460288, 512768, 588512, 592544, 621312, 600096, 590848, 603552, 666400, 455840, 483840, 509120, 471456, 465216, 486144, 529728, 610752, 526816, 482816, 469984, 589600, 609344, 523392, 540352, 492736, 506048, 566144, 507232, 457184, 509536, 597376, 630368, 593728, 534048, 515008, 562240, 503744, 456512, 519520, 533472], "wall_ns": [761751, 678374, 790311, 809879, 567925, 576245, 589829, 581509, 759718, 568725, 568309, 667446, 647254, 581493, 595701, 679814, 698374, 652838, 574213, 659382, 590789, 586533, 671862, 703958, 677030, 573141, 697670, 568373, 633829, 696423, 684629, 680358, 628086, 633653, 633718, 557781, 553189, 600485, 581621, 568117, 557909, 557477, 560165, 560868, 587718, 581605, 570325, 608933, 636662, 645013]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [43840, 39040, 38528, 36800, 37760, 40512, 36864, 37184, 45600, 37056, 36704, 35776, 36608, 37600, 36288, 38048, 37152, 37152, 36960, 35776, 37312, 37760, 37920, 37184, 37376, 35872, 37056, 36160, 36480, 37088, 40416, 37152, 36480, 36832, 36512, 37472, 36608, 36896, 36256, 35168, 35008, 38048, 37376, 36992, 37120, 36928, 36384, 37024, 36608, 36352], "wall_ns": [172530, 134817, 131441, 146737, 173570, 129793, 133857, 144001, 208322, 198834, 236418, 128593, 134673, 130193, 129169, 128050, 130145, 128785, 130881, 247346, 186626, 135169, 133953, 132737, 147266, 160465, 168177, 131378, 131889, 128337, 128209, 126673, 129425, 130369, 138482, 129665, 128481, 128289, 127841, 129921, 132273, 130321, 130706, 130513, 129617, 129185, 131345, 131825, 129057, 131682]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [42496, 37728, 39232, 38048, 39296, 39200, 38944, 38144, 46400, 38592, 39392, 38432, 38752, 38176, 37504, 36288, 36960, 37248, 38272, 37344, 37632, 38208, 38528, 37664, 38464, 37792, 38624, 37952, 36864, 38144, 42528, 38880, 38272, 38496, 38144, 38496, 37728, 37792, 38368, 37920, 38496, 39008, 38336, 38016, 37600, 39552, 38112, 40608, 38624, 38144], "wall_ns": [160930, 136097, 132209, 131793, 130497, 135218, 134993, 135025, 131473, 130945, 133089, 129666, 129825, 133457, 133617, 133441, 134977, 132273, 136562, 135729, 135025, 132577, 131457, 133442, 131905, 129985, 132593, 132289, 133889, 130513, 130258, 129937, 130721, 132385, 132241, 133537, 134242, 131585, 131809, 139393, 185970, 132209, 135633, 138449, 245538, 154882, 248706, 128353, 128081, 131633]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [94368, 90368, 93856, 92064, 90784, 92768, 91424, 91808, 90976, 91520, 91360, 91232, 92896, 90400, 91808, 91104, 90848, 91072, 90784, 91648, 92864, 91104, 90656, 90880, 92192, 90048, 91776, 89984, 90688, 92960, 90816, 91456, 91104, 90496, 91008, 91488, 90368, 90688, 90944, 91520, 91040, 89824, 92096, 90112, 89664, 90368, 90848, 93088, 91072, 91008], "wall_ns": [734358, 479668, 294531, 292082, 291043, 287202, 298227, 286354, 286755, 286034, 288211, 286418, 290915, 287858, 301715, 291267, 300194, 307747, 297011, 285762, 290787, 294386, 287395, 293970, 298211, 294274, 305315, 288371, 285138, 289491, 289554, 285251, 284786, 295011, 297410, 296803, 295955, 297154, 286179, 292498, 299907, 292130, 285059, 287218, 285875, 287026, 286243, 287202, 285923, 292626]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [493728, 429376, 603776, 456128, 431584, 506496, 476864, 446592, 440512, 444672, 471232, 464960, 467616, 452064, 424768, 429088, 430144, 467328, 501472, 434464, 444736, 470272, 475328, 479424, 454848, 480224, 479200, 426272, 446496, 467424, 455744, 468160, 466016, 442944, 472480, 481248, 447328, 482880, 615456, 595424, 426304, 442944, 431616, 429792, 632608, 452768, 544000, 523904, 487840, 439520], "wall_ns": [723878, 642854, 702694, 687094, 655062, 695382, 622165, 676134, 697670, 667350, 678774, 683814, 631509, 654374, 638534, 632037, 635446, 637973, 651174, 745926, 823304, 945176, 637845, 693126, 911928, 640070, 820439, 650438, 682854, 679926, 674198, 677189, 657910, 639446, 660470, 636309, 632070, 636677, 693270, 699862, 681030, 670646, 670150, 644646, 681910, 698022, 655525, 694502, 646822, 684262]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [56736, 52288, 51584, 53600, 53088, 53088, 53184, 52640, 53152, 52640, 51616, 51040, 51712, 51168, 52448, 51264, 52480, 52928, 52992, 53056, 52096, 52160, 50944, 51264, 51584, 52704, 52928, 52672, 51936, 51104, 52160, 52192, 51168, 52192, 51072, 51840, 52160, 51808, 51168, 53056, 51584, 53888, 52096, 51968, 52896, 52288, 53536, 52928, 51008, 51136], "wall_ns": [19497723, 242066, 226418, 219346, 218609, 219314, 220514, 221746, 220978, 214882, 219586, 219506, 220642, 217474, 219730, 212273, 216642, 218306, 217362, 219394, 416356, 219634, 226050, 225570, 225986, 221905, 226050, 224402, 222898, 222354, 226898, 225442, 222946, 221378, 228722, 223602, 226130, 223714, 225426, 223698, 224754, 221906, 227970, 224386, 221826, 224178, 225890, 228386, 225714, 222914]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [56032, 53216, 52672, 52672, 53024, 51904, 51968, 52480, 52064, 52768, 52000, 56288, 51360, 50080, 51552, 51264, 50944, 51008, 52000, 50592, 50464, 51776, 50816, 51456, 52640, 55872, 52000, 51200, 54272, 53312, 50912, 50272, 50496, 51680, 51680, 50880, 50592, 49664, 51040, 50080, 51040, 50880, 52160, 51008, 52224, 52608, 52352, 51968, 50592, 51136], "wall_ns": [247058, 231362, 228850, 220946, 222594, 224882, 235250, 229426, 232786, 228962, 231426, 222562, 222898, 227618, 228770, 224370, 220594, 220466, 233490, 234786, 230866, 233906, 240994, 231874, 220706, 223362, 228226, 227778, 220930, 220466, 235554, 228434, 229106, 232978, 231410, 227922, 229602, 224178, 221154, 224594, 226738, 233378, 220658, 216465, 220498, 216450, 219986, 226658, 221346, 217602]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_cudnn_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [34528, 32416, 30656, 30496, 31392, 31616, 30624, 30112, 29536, 29568, 30880, 30752, 30144, 30752, 30688, 32384, 29024, 29760, 29952, 29280, 28928, 29728, 30560, 29696, 29536, 29152, 29568, 29536, 29632, 29728, 31488, 29376, 29664, 32064, 30400, 29664, 30272, 28736, 29984, 30176, 29824, 30912, 30304, 31360, 36416, 30688, 30592, 32992, 28416, 28576], "wall_ns": [59457, 45088, 42881, 44560, 41200, 43457, 41776, 43057, 41856, 51408, 44593, 42976, 51057, 42960, 44912, 42097, 42880, 46401, 43424, 41808, 52321, 42048, 52817, 42224, 43504, 49121, 42176, 42737, 39232, 49808, 42625, 46992, 42000, 41793, 42176, 42065, 41520, 43056, 50977, 43552, 43409, 41472, 43136, 40257, 41616, 41568, 40977, 39136, 41888, 41585]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_cudnn_bf16", "warm": 10, "reps": 50, "dev_ns": [203968, 207072, 205536, 202912, 249248, 244096, 233920, 227584, 209728, 207104, 208512, 207456, 203648, 202400, 212672, 217696, 229856, 220672, 229664, 225088, 224736, 234848, 248192, 232832, 230016, 229984, 216224, 211392, 260416, 245344, 242528, 233216, 203936, 202528, 203552, 202912, 218144, 225952, 214848, 201728, 202560, 212672, 208672, 200416, 204672, 202464, 200320, 203584, 206464, 201056], "wall_ns": [225394, 209522, 216353, 216098, 209650, 223186, 216066, 222338, 216786, 218898, 216018, 216242, 226321, 227938, 217826, 217058, 216002, 210258, 210354, 218002, 219202, 210993, 211746, 211890, 220162, 217794, 218162, 212082, 219106, 218546, 215169, 222050, 215186, 222978, 212146, 218754, 216018, 255026, 272242, 243763, 252786, 257586, 258706, 246770, 254035, 231138, 226226, 258290, 260866, 266979]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_flash_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [35904, 36192, 36384, 35744, 34208, 34368, 34656, 35328, 35680, 36192, 34688, 34656, 35008, 35520, 34528, 34464, 39904, 35424, 34432, 35968, 34496, 34816, 35200, 34560, 35648, 34112, 34592, 36704, 36640, 34912, 34720, 34848, 34848, 34880, 34784, 34496, 34816, 35712, 34816, 35648, 34848, 34976, 34944, 34880, 34720, 34208, 33888, 34720, 35328, 34240], "wall_ns": [52065, 51184, 49632, 50129, 51408, 52081, 49888, 51313, 51088, 52097, 52208, 51200, 49953, 50064, 51457, 50896, 51233, 50944, 52177, 51104, 50464, 52737, 51296, 54145, 52128, 52273, 52208, 52065, 52080, 51089, 54688, 52705, 51328, 52976, 51217, 51088, 51169, 53168, 52017, 52336, 52193, 51840, 53553, 51296, 51760, 52417, 51744, 51345, 52240, 55969]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_flash_bf16", "warm": 10, "reps": 50, "dev_ns": [216288, 224256, 212576, 208960, 214368, 234144, 225632, 233056, 205600, 214752, 243296, 238496, 263680, 258464, 240032, 241024, 259072, 250016, 227328, 210688, 263872, 274144, 247392, 242272, 210624, 213248, 209760, 232928, 239232, 238656, 240512, 232256, 254368, 242784, 238336, 228256, 212832, 207680, 214688, 217472, 211488, 210048, 209056, 208672, 208640, 208768, 214784, 298016, 272768, 253248], "wall_ns": [276979, 308323, 326498, 269827, 336083, 246402, 241554, 253810, 262722, 249331, 261090, 249346, 255506, 272611, 315410, 385156, 291730, 265043, 265842, 225250, 256882, 257875, 284930, 227026, 232578, 233154, 223394, 234162, 227474, 221778, 222130, 217042, 221266, 222754, 222258, 234370, 220114, 221921, 224578, 218770, 220930, 225122, 222962, 226370, 246594, 227266, 231378, 216978, 231298, 229586]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [111680, 127936, 105184, 107360, 108160, 107424, 106208, 107456, 108544, 107488, 105568, 105696, 108000, 106592, 108256, 106368, 108224, 106592, 104448, 107552, 107584, 104608, 104832, 112512, 105888, 105440, 107392, 106560, 107392, 105600, 106080, 107936, 106816, 107968, 105984, 108416, 106560, 105824, 107552, 107488, 107552, 105184, 105664, 107232, 105600, 105696, 107488, 107008, 104000, 106208], "wall_ns": [135618, 119521, 120513, 117585, 119889, 120097, 116609, 116801, 124801, 116753, 124689, 116561, 123969, 118049, 116209, 117889, 118577, 116737, 116545, 116561, 125906, 116961, 117393, 117585, 125041, 118577, 118801, 118577, 117649, 123953, 116529, 120785, 116673, 116737, 117553, 116817, 117553, 117537, 116785, 124945, 125681, 121473, 117761, 124721, 116690, 116641, 119009, 116353, 116657, 116561]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_efficient_bf16", "warm": 10, "reps": 50, "dev_ns": [285696, 276096, 280768, 280032, 274112, 285024, 279296, 278560, 295424, 285248, 277472, 284704, 3407616, 388736, 317600, 336800, 318144, 304064, 275872, 300672, 353984, 305984, 323008, 413568, 456640, 285696, 343264, 327040, 280800, 276320, 277856, 456416, 280576, 281472, 279392, 310912, 327168, 278368, 281152, 277152, 306752, 280000, 301952, 279136, 295488, 314848, 317728, 314400, 311648, 306048], "wall_ns": [314547, 342899, 326611, 300723, 295682, 317379, 317395, 326323, 315970, 334435, 324931, 293907, 340803, 327891, 304658, 290771, 306738, 310659, 318339, 317315, 320306, 329795, 318211, 302035, 335891, 327155, 303170, 292051, 290690, 329411, 290643, 292738, 295875, 356211, 301283, 360883, 385779, 420340, 287426, 290051, 357427, 309171, 292962, 473828, 322611, 332035, 365203, 367411, 382900, 341859]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_math_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [1097472, 1094336, 1121120, 1216672, 1131072, 1143872, 1176160, 1240288, 1387168, 1376928, 1329280, 1150976, 1293152, 1343776, 1235872, 1336096, 1315040, 1457184, 1525600, 1316288, 1131040, 1169376, 1323232, 1153408, 1223936, 1159488, 1470688, 1420640, 1411776, 1300384, 1501504, 1227648, 1277152, 1236192, 1382368, 1376768, 1198656, 1275680, 1120384, 1193920, 1128448, 1135712, 1207488, 1173248, 1313152, 1274400, 1182976, 1416256, 1365408, 1116128], "wall_ns": [1397468, 1356044, 1218267, 1274731, 1200138, 1164106, 1166075, 1132409, 1132522, 1145418, 1145578, 1192939, 1182682, 1380044, 1334028, 1326027, 1160922, 1298028, 1426620, 1217291, 1348460, 1203930, 1356892, 1349404, 1211290, 1391084, 1129178, 1191851, 1164410, 1138426, 1130762, 1134137, 1159531, 1230714, 1256507, 1267691, 1238747, 1160090, 1147754, 1140938, 1322812, 1186026, 1136602, 1285915, 1280123, 1192539, 1147834, 1159194, 1224843, 1390924]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_math_bf16", "warm": 10, "reps": 50, "dev_ns": [1756992, 1346496, 1328224, 1702592, 1590112, 1781504, 1478592, 1576448, 1592000, 1654464, 1470112, 1532416, 1534784, 1605472, 1560896, 1323968, 1348800, 1357568, 1485440, 1458176, 1490304, 1303584, 1317536, 1483904, 1460512, 1529632, 1302560, 1432704, 1445120, 1474432, 1323680, 1338624, 1280128, 1324864, 1344640, 1516320, 1452736, 1537248, 1306688, 1428864, 1555680, 1462016, 1498400, 1382400, 1436608, 1431232, 1496704, 1300544, 1342528, 1292544], "wall_ns": [1365644, 1355804, 1479469, 1500973, 1536749, 1398093, 1520621, 1384956, 1492941, 1428412, 1433165, 1413100, 1546894, 1318075, 1337356, 1299003, 1345468, 1339964, 1489037, 1456828, 1543006, 1271787, 1481677, 1485725, 1520349, 1326972, 1439500, 1429085, 1466525, 1363483, 1410957, 1297195, 1307851, 1335292, 1457357, 1496077, 1480685, 1337883, 1462573, 1492493, 1514349, 1311612, 3678240, 1374156, 1343692, 1361804, 1516333, 1455037, 1486509, 1403596]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_f32q_f32kv_pregathered", "warm": 10, "reps": 50, "dev_ns": [241376, 235328, 236960, 236224, 235072, 235360, 235136, 235360, 233536, 236256, 233024, 232960, 234368, 233472, 234144, 234496, 234848, 236256, 235840, 237248, 235456, 235136, 235360, 236352, 234528, 236128, 234272, 235424, 234048, 235200, 233888, 233600, 234112, 236896, 236032, 236000, 236128, 235808, 235712, 233664, 236448, 236192, 236384, 234304, 234816, 233984, 236544, 235552, 236480, 234816], "wall_ns": [267986, 250386, 247666, 245618, 247619, 247730, 246578, 244914, 248850, 247458, 247155, 248194, 245618, 245778, 255970, 246002, 245299, 254706, 254066, 249170, 249698, 248419, 248866, 256914, 247858, 256242, 248514, 247427, 245762, 247634, 258034, 255907, 250082, 249810, 250258, 246338, 251266, 255795, 256306, 249650, 295939, 265938, 334931, 332051, 257154, 256754, 248738, 247635, 331218, 256547]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/omega/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/omega/stderr.txt new file mode 100644 index 0000000..e800969 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/omega/stderr.txt @@ -0,0 +1 @@ +LOCK_HELD_S .659534699 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/omega/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/omega/stdout.jsonl new file mode 100644 index 0000000..084120e --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/omega/stdout.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":0,"first_call_ns":89983601,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[107937,108352,108353,107377,107969,107409,106465,106465,106721,107633,68161,106881,106625,106512,107409,106833,106481,107953,106625,106209,107489,107233,107393,106833,107137,106721,106097,106592,106433,73953,106209,106209,106145,106081,107729,107601,106193,106256,106001,106417,105937,106081,106001,106817,106769,108353,107089,106961,78720,106993],"chip_ns":[105089,105696,105633,104689,105169,104417,103985,104001,104161,104497,65553,104545,104225,103936,104897,104497,104097,105665,103969,103761,105041,104625,104689,104321,104577,104033,103841,104144,104064,71649,103969,103665,103777,103745,105201,105073,103793,103680,103536,103985,103409,103665,103633,104385,104033,105729,104545,104273,76016,104353]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":0,"first_call_ns":956616,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[208081,209905,210161,219458,215218,208850,211746,211746,209778,207826,211810,212946,210434,215218,210514,212194,212210,213666,210897,211633,211730,210482,213826,212114,213346,211618,211426,210706,212354,211378,211106,212497,208961,209889,211314,209122,163122,208834,211170,213250,211649,214753,210210,209986,207618,217122,209570,209650,207666,206946],"chip_ns":[106449,106449,107537,108225,106673,106097,107489,107713,107425,106385,108049,108241,106705,107681,107169,108625,110353,109041,107217,108321,108993,108273,107969,108145,108064,108385,107585,106945,108977,108641,107857,106753,107313,108513,108193,107601,62192,107697,108625,109857,108993,108833,107969,108785,107409,112321,107248,106529,106497,106529]} +{"case":"rope_32x128","rc":0,"mutant":0,"first_call_ns":514580,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[82353,108721,108289,109649,108305,108465,107473,107809,108416,108849,108849,108241,109137,108929,108545,108993,108113,107921,108401,110577,109425,109089,109809,108337,108353,108305,107761,108464,108929,108945,107857,107649,107729,109073,108561,108385,107777,81633,110785,110561,110753,110353,109265,109009,108945,108080,108145,108705,109057,108353],"chip_ns":[78113,104497,103825,105313,104033,104289,103505,103488,104080,104753,104705,104113,104913,104577,104145,104753,104081,104017,104289,106369,104817,104929,105489,103937,104145,104241,103665,104512,104929,104689,103521,103633,103681,104737,104401,104081,103713,77633,106577,106113,106161,106097,104769,104497,104720,103952,104017,104753,104785,104273]} +{"case":"swiglu_5632","rc":0,"mutant":0,"first_call_ns":6693338,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[109761,110689,110593,110609,110913,111825,110257,109777,109201,109841,109872,109409,109537,110913,110433,109425,110273,110081,119121,109649,108961,109697,111105,111857,110881,110161,108913,109137,108865,109249,109521,108897,109537,109633,109921,110033,109425,108721,109089,108464,108545,109089,108417,109937,108417,108753,108769,108529,108465,109681],"chip_ns":[104017,104033,104657,104977,105409,106081,104609,104241,103777,104049,104288,103856,103953,105457,104641,103825,104513,104097,113345,104177,103617,104177,105537,106049,105169,104817,103825,104049,103665,104065,104273,103665,104241,104529,104801,104657,103825,103585,104049,103456,103585,104081,103409,104369,103313,103553,103537,103361,103265,104529]} +{"case":"swiglu_131072","rc":0,"mutant":0,"first_call_ns":848007,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[227042,225282,227570,227730,227378,232674,230178,228866,197089,225730,230434,227058,226610,223010,221730,222914,226786,226866,222690,222626,222738,179970,222274,221106,225506,226098,236114,227010,233618,232322,232130,228947,226818,225378,224242,227938,224098,222546,190162,229714,238178,227746,232834,230066,225362,248322,222738,223345,238306,228466],"chip_ns":[106656,106401,106865,106833,106641,107057,107585,108385,77473,107297,107553,106625,109297,108145,107425,107985,108817,107712,107361,108193,107585,57664,107265,106945,107025,107521,107105,108017,107153,107345,107585,107345,108385,107713,106817,107281,106481,106929,73233,105969,114545,106097,106144,106017,105889,105537,106321,106641,108241,106161]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":0,"first_call_ns":5796707,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1325340,1316076,1307419,1268907,1284075,1267259,1233051,1520269,1379996,1276300,1237578,1251387,1540638,1514317,1692895,1707951,1607454,1555517,1616478,1506366,1228298,1320924,1219083,1216138,1203691,1255291,1230730,1314428,1368572,1333403,1302972,1217242,1188987,1291915,1187674,1313644,1338588,1306251,1200858,1256011,1344252,1441613,1497005,1499789,1501933,1500029,1576382,1485197,1517773,1513197],"chip_ns":[398291,481045,419588,387875,419731,420595,420676,716438,520484,419412,417043,419555,715639,726102,834664,828152,740263,737926,726182,692294,419619,421236,417556,420692,417092,417828,418323,478644,521157,418691,499605,417235,424196,440580,404083,522037,527621,422404,419587,417299,524420,493397,521381,520389,517700,508932,521653,521237,520244,503924]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":0,"first_call_ns":1043801,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[712758,691622,696470,696038,643750,558037,722326,741175,808711,689942,688134,671590,670902,680389,656662,681238,672294,686022,639382,670773,637510,688998,554053,550773,544548,542229,544181,542405,536644,494309,555045,547076,563957,667158,675334,676646,675814,639013,546677,678406,673958,677494,659766,659925,690102,688838,613462,538004,534437,532453],"chip_ns":[524964,517092,515924,515476,496164,414868,533092,561493,629862,518389,522789,510405,515589,520804,499572,522852,516693,515605,481141,516388,485780,522037,421684,422980,415443,415412,416948,415140,411907,369892,412564,413843,414195,519413,525973,515205,519541,513412,413172,515620,513429,524165,523973,497316,516452,532020,490373,413779,412308,411988]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":0,"first_call_ns":4209957,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[2971529,2766744,2721176,2693015,2908538,2799209,2744248,2838633,2784824,2720632,2739655,2749640,2761080,2574678,2655175,2615607,2728600,2877113,2847017,2855833,2903417,2993914,2643495,2838953,2819337,2727495,2617239,2859368,2887177,2671720,2607143,2736519,2650695,2869001,2567382,2781976,2747191,2808793,2512726,2762856,2740199,2653575,2513222,2567143,2676488,2754136,2581847,2718647,2867721,2818776],"chip_ns":[1900017,1672080,1592286,1664623,1826640,1699182,1699503,1790848,1689902,1604493,1710079,1691455,1698655,1487182,1588367,1596830,1656846,1793056,1781680,1815999,1817455,1891329,1607470,1793423,1764703,1652158,1598078,1789872,1792270,1583918,1589692,1665103,1588637,1795600,1550237,1681919,1686206,1757441,1494797,1688735,1672174,1579503,1489197,1481420,1575773,1667967,1555916,1651359,1776625,1763823]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":0,"first_call_ns":521157,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[173522,174401,230690,173538,173121,174674,173521,175010,171777,171762,171505,173618,171089,161794,171361,171602,172161,172402,172353,240642,174162,170273,172674,170417,174978,170881,171858,172353,176530,172897,167026,174529,174146,172529,171538,174673,236211,176273,176194,174769,174098,177089,177842,173457,177506,177761,175954,239458,172769,174626],"chip_ns":[103681,103649,163138,103857,103937,104321,103889,103697,104817,103841,104849,104513,103873,92529,103841,104417,104289,104705,104561,172802,104785,104289,104241,104497,104081,104673,104625,105137,105441,105521,98992,104849,104320,104657,104513,105201,164897,105873,105329,104705,104257,104385,105425,105393,105537,105425,105664,167521,104129,104305]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/torch/stderr.txt b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/torch/stderr.txt new file mode 100644 index 0000000..21f3d73 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/torch/stderr.txt @@ -0,0 +1,15 @@ +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory efficient kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1240.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Memory Efficient attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:600.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1242.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Flash attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:588.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention kernel not used because: (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:1244.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: Expected query, key and value to all be of dtype: {Half, BFloat16}. Got Query dtype: float, Key dtype: float, and Value dtype: float instead. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/sdp_utils_cpp.h:110.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +/tmp/OmegaDnn/gpu/bench/torch_arm.py:52: UserWarning: cuDNN attention has been runtime disabled. (Triggered internally at /__w/pytorch/pytorch/aten/src/ATen/native/transformers/cuda/sdp_utils.cpp:922.) + return F.scaled_dot_product_attention(q, k, v, is_causal=causal, enable_gqa=True) +LOCK_HELD_S 3.526034268 diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/torch/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/torch/stdout.jsonl new file mode 100644 index 0000000..3e17e71 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/r4/torch/stdout.jsonl @@ -0,0 +1,32 @@ +{"case": "rmsnorm_1x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [17408, 11552, 9408, 10432, 10336, 10336, 10176, 10176, 10272, 10208, 10048, 10144, 10080, 10176, 10112, 10240, 10464, 10048, 10080, 10496, 10592, 10272, 10720, 10176, 10080, 9952, 9376, 10144, 10208, 10176, 10400, 10656, 11200, 10176, 10080, 10048, 10208, 10464, 10240, 10528, 10560, 10080, 10464, 10400, 10400, 10080, 10176, 10496, 11200, 10624], "wall_ns": [41104, 21680, 23745, 20160, 20816, 19392, 18448, 20112, 19745, 18496, 18032, 18256, 19536, 20288, 18001, 17936, 19408, 17920, 18192, 19680, 17697, 20208, 17792, 17984, 19680, 17792, 17873, 20144, 18192, 17888, 19456, 20576, 18001, 18208, 19456, 18064, 20176, 17904, 18033, 19360, 18128, 19440, 18144, 20416, 17713, 19856, 20624, 17984, 17920, 18464]} +{"case": "rmsnorm_64x2048", "backend": "torch_rms_norm", "warm": 10, "reps": 50, "dev_ns": [11808, 10784, 10496, 10336, 10368, 10336, 10144, 9888, 10144, 9024, 11648, 10112, 10272, 10464, 10528, 11232, 10368, 10080, 10336, 10496, 10912, 10240, 10912, 10272, 10560, 16192, 10304, 9952, 10048, 10176, 10016, 10240, 10176, 10368, 10560, 10400, 9344, 10304, 4800, 9920, 9824, 10112, 9600, 9920, 10592, 9664, 9440, 10048, 10176, 10432], "wall_ns": [403427, 49489, 38224, 37808, 38209, 37664, 37776, 38289, 37776, 38112, 37201, 37808, 37872, 37953, 37536, 37904, 36545, 37232, 37296, 37841, 37424, 37536, 38209, 37472, 36992, 38369, 37840, 38688, 37137, 37008, 37600, 109089, 37537, 37072, 37408, 37169, 36704, 37472, 36849, 37184, 37296, 37041, 36752, 37152, 37920, 37793, 36848, 37296, 37761, 37264]} +{"case": "rope_32x128", "backend": "torch_ops", "warm": 10, "reps": 50, "dev_ns": [45920, 38400, 37824, 36288, 37632, 36864, 36608, 36320, 35904, 36128, 41280, 35872, 35040, 35744, 35328, 35552, 35136, 36320, 36480, 36448, 37120, 36640, 36672, 36320, 36448, 35904, 35904, 36608, 37440, 36864, 36672, 36768, 36512, 40512, 36096, 37088, 39392, 37504, 36512, 36192, 36608, 36576, 36736, 36192, 35904, 36960, 36320, 35232, 35552, 35552], "wall_ns": [73408, 46129, 45488, 45200, 44145, 47088, 43473, 45360, 47664, 47505, 44992, 44113, 44304, 43616, 44049, 46256, 43553, 44464, 44912, 45985, 47184, 45297, 45424, 46176, 44577, 45856, 46257, 54240, 49697, 45584, 45520, 46721, 44608, 46241, 47008, 46608, 46497, 44592, 47521, 48368, 45376, 44753, 45056, 45233, 46384, 44960, 46033, 44256, 45921, 44560]} +{"case": "swiglu_5632", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [15168, 13152, 12896, 14528, 13024, 11744, 12832, 12288, 11648, 12288, 12160, 12864, 12704, 12128, 12032, 12064, 12832, 12352, 12096, 14528, 12096, 12000, 11936, 12192, 12544, 12416, 12480, 13504, 12448, 12288, 12320, 11616, 12608, 13024, 12672, 13056, 11776, 11680, 13280, 13120, 13184, 12800, 13088, 12512, 12992, 12256, 11776, 12960, 12640, 12512], "wall_ns": [48896, 31329, 33712, 33136, 31697, 33440, 33056, 30560, 31041, 31328, 30896, 33504, 35329, 32000, 32512, 35489, 30608, 31152, 29360, 29937, 32688, 31808, 30961, 32208, 31264, 30352, 29889, 32240, 28576, 29824, 32545, 31904, 35584, 29809, 30064, 31568, 30912, 29521, 33792, 29856, 32976, 30049, 30064, 32336, 30001, 29104, 29600, 32464, 31457, 29104]} +{"case": "swiglu_131072", "backend": "torch_silu_mul", "warm": 10, "reps": 50, "dev_ns": [14912, 11808, 12960, 13056, 13024, 13184, 12320, 12128, 12864, 12192, 12512, 11808, 12960, 12256, 11808, 12896, 12096, 12160, 12992, 13632, 12384, 11712, 12352, 12096, 13440, 12640, 13184, 12384, 12160, 12416, 12192, 12320, 12032, 12128, 12128, 12192, 16736, 12416, 11808, 12576, 11936, 12928, 12480, 12192, 12832, 12128, 12096, 11680, 12224, 11968], "wall_ns": [62497, 100336, 56449, 55216, 55137, 56400, 56881, 55712, 56129, 56576, 56449, 55520, 56177, 56352, 55969, 55312, 55649, 55760, 55057, 55392, 55985, 56512, 56353, 56656, 56801, 55696, 55841, 58496, 56257, 59440, 56145, 56352, 55953, 55728, 55393, 55632, 55793, 56400, 56193, 56144, 56129, 55984, 56113, 55632, 55809, 56464, 56401, 55536, 56464, 55553]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [237824, 235264, 237248, 235104, 236512, 237600, 235296, 233856, 237472, 237472, 234688, 235392, 235104, 233856, 237312, 236512, 236576, 235456, 235456, 236640, 238112, 237312, 237536, 237408, 234624, 237216, 237408, 238208, 234784, 237408, 236032, 237952, 237984, 233984, 236960, 234720, 236416, 237152, 235328, 235456, 234624, 238304, 235520, 234496, 234656, 237056, 236352, 234560, 234496, 234144], "wall_ns": [1882720, 1935313, 564613, 550261, 3692320, 757543, 750006, 570309, 758519, 558197, 689942, 576389, 572261, 554821, 559189, 798727, 568277, 567461, 561476, 548453, 547989, 556581, 547685, 544804, 547621, 556901, 568197, 570469, 543589, 549621, 555140, 567189, 578533, 547301, 546517, 563125, 561141, 567909, 610709, 761111, 735462, 555509, 779463, 655910, 551364, 574613, 579077, 568437, 555781, 547589]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [1151264, 1004864, 995872, 1001504, 1119424, 1048096, 993824, 1173632, 1037376, 982976, 980416, 986560, 991808, 1101344, 1114368, 1142080, 1231168, 1106176, 1314336, 1156352, 1079136, 1115040, 1114720, 1113504, 1112128, 1021376, 1136000, 1148672, 1000384, 1066624, 1162208, 1104192, 1117312, 1042400, 1235360, 1001696, 1047552, 1018176, 1006848, 1005792, 1023008, 1059360, 1052224, 1187040, 1185120, 1088032, 1237024, 1132704, 1101728, 1216384], "wall_ns": [1765680, 1507069, 1809408, 1403884, 1520621, 1571998, 1455117, 1662862, 1732191, 1523693, 1584094, 1513517, 1724463, 1577054, 1762336, 1737999, 1567838, 1686062, 1551326, 1541213, 1583598, 1779472, 1560365, 1333996, 1458124, 1451517, 1474685, 1394460, 1426333, 1388140, 1394620, 1351404, 1311755, 1328556, 1388812, 1462061, 1485325, 1541021, 1340316, 1462204, 1417213, 1364060, 1405884, 1415836, 1428349, 1304475, 1350348, 1303915, 1317308, 1353580]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [86112, 90240, 93504, 94784, 92768, 94112, 94912, 93792, 91040, 92288, 88768, 85984, 86208, 88864, 86688, 85504, 89024, 96032, 91584, 92832, 97152, 92448, 91136, 91840, 90432, 91680, 92128, 91872, 92864, 92000, 92960, 93888, 90624, 92096, 90848, 90912, 92736, 92064, 94816, 91808, 93152, 89952, 92000, 87104, 88832, 90976, 91648, 95616, 92640, 92704], "wall_ns": [443876, 429444, 442100, 425524, 421763, 427812, 426980, 440260, 427059, 448340, 464724, 458516, 451284, 442452, 445140, 427732, 438468, 451283, 455380, 444852, 431380, 441188, 438196, 435396, 455620, 437923, 449476, 448452, 437780, 449972, 431924, 425875, 439108, 426516, 431156, 425892, 430947, 442468, 427620, 427860, 463204, 458068, 453380, 472964, 463172, 444260, 446324, 422563, 432100, 453604]} +{"case": "gqa_f32_32q8kv_hd128_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [97920, 89504, 90688, 87584, 92768, 91744, 90112, 89088, 91744, 90656, 92992, 90272, 97056, 93056, 91968, 92288, 93088, 91456, 91808, 91680, 112736, 133920, 95104, 98976, 94208, 97184, 97824, 90368, 92608, 123840, 179360, 141344, 103104, 110048, 135520, 129440, 93632, 99680, 101152, 102240, 100896, 99616, 98656, 99744, 97792, 103072, 90976, 90432, 97728, 97696], "wall_ns": [453540, 690118, 469156, 524117, 512036, 456596, 454756, 432804, 452692, 464740, 453396, 451300, 441316, 456820, 445267, 429028, 452500, 452212, 461716, 466292, 455524, 469972, 456516, 476868, 466100, 550741, 461220, 560917, 472244, 470052, 467349, 474692, 462292, 475604, 474804, 473012, 472164, 467060, 471828, 471653, 472036, 470772, 473220, 497316, 463716, 467140, 471556, 464100, 465765, 457844]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [174464, 170944, 170400, 171616, 171232, 172736, 172608, 172000, 173536, 170688, 171840, 172896, 170944, 170464, 170240, 173536, 172160, 170656, 172896, 170880, 172960, 173888, 172896, 172800, 172864, 173696, 172000, 171520, 176640, 170560, 172672, 172640, 172800, 172512, 171936, 172384, 171264, 172896, 171872, 172800, 170688, 172640, 171648, 171744, 170208, 171328, 170464, 171776, 171808, 171776], "wall_ns": [304931, 271266, 268259, 265698, 267202, 265539, 268690, 265170, 268451, 265746, 264386, 266115, 268370, 268002, 267235, 266018, 267506, 266931, 266322, 266882, 267363, 266146, 268338, 268003, 266402, 266850, 265683, 265794, 265634, 266611, 268258, 265090, 264435, 264626, 265314, 265075, 263970, 265074, 266386, 266067, 268322, 265730, 267171, 266162, 267170, 266211, 269298, 267186, 265971, 267058]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [583104, 585760, 463200, 504640, 523008, 521024, 528928, 689952, 559776, 579840, 468352, 522816, 573952, 557600, 515904, 501792, 510560, 492544, 567040, 576384, 453728, 454528, 480416, 468672, 477312, 462240, 459392, 466432, 468288, 462080, 490464, 477312, 497952, 563936, 540864, 559072, 650368, 621568, 596960, 466720, 477184, 518656, 529568, 524736, 522272, 645376, 649856, 515168, 466112, 554176], "wall_ns": [730054, 625894, 605781, 595029, 672518, 583445, 563909, 581365, 567445, 579829, 556357, 597701, 563013, 620470, 641861, 614262, 611093, 699494, 600005, 768759, 755783, 616981, 610213, 605926, 602261, 606949, 770071, 665990, 592549, 657910, 657365, 616294, 605125, 607653, 598134, 632933, 713046, 561845, 569685, 592453, 566181, 566629, 576437, 574565, 590661, 606150, 602933, 641798, 630869, 632838]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [45024, 38976, 38784, 36800, 36160, 39136, 36992, 36896, 37760, 37280, 36320, 36704, 36576, 36576, 37696, 37184, 40736, 36768, 36704, 37440, 34944, 36544, 36832, 36416, 37312, 37664, 36704, 37088, 37120, 35648, 36192, 36544, 37696, 34656, 35776, 36672, 35776, 36288, 35488, 40000, 36608, 37344, 37792, 36224, 36224, 37088, 35968, 37728, 37184, 36160], "wall_ns": [161089, 136849, 132561, 133746, 130401, 128529, 130849, 132305, 127409, 128513, 129122, 129089, 127809, 128049, 128577, 130913, 127665, 131601, 128386, 128289, 128929, 129617, 130113, 128641, 132177, 130769, 134242, 130625, 130305, 130177, 129041, 129025, 130129, 131154, 130817, 128241, 127761, 129969, 127345, 128865, 128881, 130690, 131729, 129217, 128241, 129585, 127201, 131169, 127697, 133138]} +{"case": "gqa_f32_32q4kv_hd64_ctx2048", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [40640, 47008, 38048, 39648, 37536, 39680, 37952, 38400, 38528, 38464, 38176, 37952, 38208, 38848, 37312, 37376, 37632, 39392, 36736, 38656, 36672, 38688, 38080, 42240, 39200, 39520, 37600, 39360, 36448, 39136, 36832, 37024, 39648, 39328, 38784, 38528, 38944, 38176, 38720, 37152, 38656, 36832, 38016, 38976, 41632, 38752, 38944, 41728, 39072, 38656], "wall_ns": [170706, 135121, 134177, 131377, 135122, 133281, 132929, 129105, 130097, 131601, 131025, 131730, 133825, 133441, 129521, 132385, 133697, 131282, 131969, 129729, 131041, 130721, 130977, 130161, 132450, 131809, 131681, 130641, 129009, 130977, 132113, 132322, 131825, 131953, 130785, 136929, 131073, 131090, 130929, 130241, 131825, 130865, 131825, 133169, 132194, 134465, 133585, 131137, 129617, 132433]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_f32", "error": "RuntimeError: No available kernel. Aborting execution."} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_efficient_f32", "warm": 10, "reps": 50, "dev_ns": [100448, 90528, 90688, 90784, 91808, 91840, 92736, 91296, 89920, 90208, 94144, 91072, 91072, 92128, 90880, 91168, 91008, 90880, 90688, 90144, 91712, 91072, 90048, 90848, 90624, 90912, 89952, 91200, 90400, 91072, 92288, 90816, 89984, 89344, 90848, 90560, 90144, 90528, 91008, 89472, 91360, 91616, 88960, 90720, 91168, 89888, 90912, 91040, 91520, 91168], "wall_ns": [732118, 472484, 300739, 296275, 295874, 291667, 296850, 309123, 293011, 294466, 291363, 293314, 288483, 296386, 288035, 297778, 287763, 287714, 295491, 286050, 297651, 301139, 305090, 303395, 305811, 303218, 304979, 289043, 293058, 290035, 287666, 287619, 290050, 293779, 290194, 297683, 287970, 288339, 296018, 295715, 290339, 286722, 294211, 338947, 310290, 456276, 399284, 363571, 287779, 299122]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_math_f32", "warm": 10, "reps": 50, "dev_ns": [547776, 539040, 491392, 463296, 477152, 434304, 450560, 519328, 570528, 533248, 437120, 493440, 444064, 457792, 517888, 510624, 535904, 531104, 446624, 495008, 511072, 543392, 659840, 478784, 429792, 434272, 429344, 659008, 450624, 455648, 567008, 569056, 490144, 440128, 453376, 485504, 437728, 438656, 533792, 523264, 521248, 479328, 487328, 452928, 425504, 501760, 511872, 501568, 514400, 482336], "wall_ns": [703607, 686437, 640598, 648422, 639237, 644662, 714998, 952921, 815191, 729046, 684534, 876344, 746406, 815655, 654486, 632181, 639286, 654566, 687286, 684518, 750694, 749143, 690438, 706038, 647142, 659413, 648998, 638790, 641909, 655718, 658726, 636501, 646374, 692454, 690262, 648630, 644213, 639718, 651334, 690646, 639301, 626150, 702006, 701206, 677190, 715622, 645926, 721622, 693110, 695622]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_cudnn_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [55872, 52224, 53440, 50592, 53568, 52928, 52864, 51712, 51136, 52224, 53088, 52960, 51904, 52128, 53152, 51904, 58208, 51168, 51648, 52096, 52192, 61856, 83584, 52480, 51392, 52064, 52960, 52608, 51488, 51456, 97120, 82752, 53696, 53664, 74944, 90720, 86848, 51136, 51872, 50816, 51136, 53056, 52192, 51968, 51200, 51840, 52736, 52928, 51840, 50944], "wall_ns": [15518039, 241058, 220546, 219986, 216098, 217778, 224818, 219346, 221746, 225890, 227522, 230690, 233298, 229570, 225122, 280642, 229378, 326563, 345411, 376275, 227058, 232370, 226578, 228434, 221026, 318035, 330835, 217842, 222562, 284626, 293667, 235298, 225362, 227602, 221410, 218914, 223281, 223954, 221314, 219810, 219186, 220658, 224578, 220514, 218386, 215858, 219010, 217762, 218257, 218802]} +{"case": "gqa_rows_f32_32q8kv_hd128_m256", "backend": "sdpa_flash_bf16_REFONLY", "warm": 10, "reps": 50, "dev_ns": [54848, 52576, 53280, 53056, 51936, 52032, 51072, 52864, 52032, 51712, 51520, 52128, 51968, 55104, 53536, 51328, 53824, 51808, 51296, 51776, 51040, 51808, 53856, 51904, 53824, 53728, 52032, 50176, 51840, 50784, 50304, 53248, 51200, 52960, 52064, 51616, 51104, 53568, 50592, 51840, 51968, 51488, 51456, 51712, 53184, 52032, 53344, 50944, 51328, 51744], "wall_ns": [254659, 240002, 223378, 220033, 222578, 223890, 224002, 218978, 220594, 280163, 220209, 216482, 218306, 220146, 218146, 218786, 287858, 284947, 234978, 218802, 231138, 229810, 242370, 229250, 228770, 228098, 231426, 226290, 224210, 219474, 218226, 220050, 227634, 228994, 227522, 229042, 229698, 226434, 220642, 222834, 226386, 219393, 220658, 225074, 229378, 223746, 225666, 224818, 222706, 226818]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_cudnn_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [35232, 31744, 31808, 35712, 30144, 30272, 31552, 29888, 30336, 30720, 30816, 28896, 29888, 32256, 28800, 29696, 29120, 29632, 29888, 29696, 29920, 34080, 30336, 29440, 28928, 29152, 29952, 29344, 31872, 29152, 29152, 30336, 29120, 28864, 29120, 30240, 29024, 30272, 28800, 29056, 29248, 29824, 29888, 29280, 28800, 30976, 30816, 29600, 29792, 28736], "wall_ns": [50800, 43809, 43120, 40944, 51425, 45968, 41809, 51264, 41761, 42976, 41968, 41825, 40848, 42384, 42369, 40288, 41968, 39889, 39376, 49089, 39104, 53920, 41905, 39328, 40448, 43905, 41248, 41457, 40464, 42400, 41953, 39856, 42944, 41585, 50304, 51121, 38768, 50032, 42881, 41936, 40832, 39569, 42128, 38993, 45840, 42288, 40801, 44432, 41104, 41521]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_cudnn_bf16", "warm": 10, "reps": 50, "dev_ns": [204192, 196096, 214496, 235264, 216352, 230336, 234240, 225824, 220800, 221344, 226784, 230784, 209088, 217376, 233472, 261888, 246464, 216384, 198432, 201792, 222752, 227104, 225632, 222496, 236384, 211136, 223744, 219744, 215424, 219616, 219392, 218592, 201472, 238592, 232064, 245888, 215008, 201376, 200480, 196864, 196288, 201056, 218848, 210528, 201152, 201248, 198272, 199424, 200576, 197696], "wall_ns": [219618, 212578, 210418, 216082, 211106, 207297, 211922, 213954, 209890, 215890, 218946, 207810, 218785, 244931, 220018, 220049, 215026, 214898, 229410, 244882, 245794, 237315, 233026, 249938, 302482, 240482, 248131, 217986, 264834, 401731, 243507, 316658, 305939, 248114, 248818, 242722, 243507, 239394, 233618, 246626, 228146, 216578, 220226, 261410, 447396, 220706, 220226, 242434, 235858, 232162]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_flash_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [36640, 46208, 35712, 34240, 35616, 34848, 36416, 35584, 34848, 34976, 36736, 34784, 34816, 35552, 35328, 35552, 38528, 36480, 34624, 34688, 34880, 37632, 34816, 35936, 34752, 34816, 34976, 34752, 34208, 34336, 34560, 35008, 34720, 34176, 34560, 34880, 35776, 34592, 33856, 33984, 34752, 34528, 37920, 34592, 35872, 35200, 34240, 34784, 35168, 33792], "wall_ns": [49392, 52240, 50081, 52048, 50305, 51936, 50193, 50464, 50801, 50864, 51152, 50273, 50160, 50913, 50272, 53041, 50048, 51137, 51248, 49936, 50193, 49952, 51153, 51088, 50289, 51040, 50017, 50080, 50112, 50065, 50128, 50129, 50288, 50977, 50048, 53489, 49872, 51008, 50593, 52784, 52641, 52736, 53313, 51072, 52993, 51216, 50944, 51121, 52352, 51041]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_flash_bf16", "warm": 10, "reps": 50, "dev_ns": [243552, 216672, 218176, 255360, 233216, 256640, 228448, 248128, 224800, 238112, 217824, 211392, 215072, 224992, 248544, 254336, 232000, 213728, 201856, 204544, 206656, 222048, 217568, 220960, 223680, 224704, 220800, 226944, 224864, 226432, 224800, 227008, 216448, 243968, 257280, 252768, 239328, 205472, 207584, 199008, 206304, 212480, 213760, 228160, 203584, 206720, 202784, 200736, 201536, 207584], "wall_ns": [223922, 215730, 216113, 227378, 231266, 242259, 215041, 211170, 225074, 242402, 245043, 252514, 245714, 237666, 242562, 238402, 259074, 246339, 229554, 262370, 261106, 258434, 215906, 218930, 210978, 227442, 247858, 252642, 250755, 240674, 249810, 244466, 242466, 242370, 226114, 233666, 251602, 253907, 268226, 216962, 216946, 222834, 229650, 240578, 240162, 251138, 232002, 240674, 238210, 241810]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [108160, 147488, 107520, 112288, 122528, 144736, 151392, 125152, 111872, 144512, 108256, 107200, 108000, 107936, 107296, 108416, 106464, 110656, 124736, 141280, 120352, 108288, 109152, 110016, 121184, 115680, 116608, 108256, 108032, 107360, 107552, 107296, 107552, 106656, 107584, 108064, 108256, 106976, 105568, 107488, 108160, 106976, 107392, 105696, 107680, 104864, 107264, 108256, 106336, 106880], "wall_ns": [133985, 119281, 125121, 117457, 119569, 119985, 117409, 119249, 126305, 126817, 118017, 116401, 126977, 125825, 124993, 118529, 119809, 124641, 127121, 118577, 123921, 124801, 116721, 124849, 116913, 116657, 124689, 124657, 125986, 119025, 117617, 121729, 125697, 117473, 117793, 125793, 116881, 126849, 119537, 118961, 118513, 124881, 124881, 118433, 126225, 126818, 126721, 128433, 126321, 124641]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_efficient_bf16", "warm": 10, "reps": 50, "dev_ns": [292992, 312320, 320896, 297632, 315840, 302880, 302816, 313664, 300576, 296544, 319264, 308800, 304704, 326912, 307328, 297760, 309504, 305760, 307488, 314880, 338176, 301856, 320480, 303680, 294688, 312960, 301472, 298432, 306816, 310880, 307712, 300352, 308416, 300864, 298752, 300224, 303712, 299392, 321952, 307584, 291200, 309760, 306176, 296992, 308960, 296288, 305376, 320672, 315584, 298784], "wall_ns": [3234812, 591253, 321907, 318819, 316723, 334563, 318674, 314803, 313459, 323155, 317091, 323506, 326355, 341443, 354707, 323251, 381459, 412740, 444804, 325043, 322355, 331890, 318210, 334707, 345091, 386148, 419363, 316067, 329635, 342451, 342867, 287730, 288627, 290002, 287923, 295779, 290626, 281587, 290642, 294723, 289858, 286867, 284610, 291907, 295682, 300419, 321571, 293394, 304003, 287282]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_math_bf16_pregathered", "warm": 10, "reps": 50, "dev_ns": [1117504, 1102592, 1196640, 1211520, 1146976, 1179936, 1088608, 1101184, 1112544, 1091744, 1098048, 1090912, 1114400, 1095136, 1100160, 1089568, 1092096, 1090784, 1092736, 1091072, 1094144, 1092928, 1092960, 1087616, 1088704, 1098848, 1123744, 1113248, 1392800, 1363072, 1374816, 1356128, 1368288, 1362400, 1382688, 1366976, 1359392, 1367776, 1363104, 1396064, 1379168, 1384224, 1389152, 1418176, 1322720, 1280256, 1291520, 1145856, 1124608, 1099488], "wall_ns": [1146602, 1126618, 1125434, 1126042, 1137625, 1126330, 1127562, 1125082, 1129962, 1143610, 1146794, 3571679, 1252555, 1131578, 1116730, 1137545, 1188602, 1146186, 1147834, 1146714, 1206234, 1197115, 1264347, 1250267, 1272939, 1168426, 1168346, 1201451, 1338027, 1171531, 1264139, 1286875, 1228251, 1299083, 1172586, 1175274, 1223787, 1218587, 1222234, 1161099, 1143497, 1136074, 1125241, 1242443, 1272315, 1122186, 1168202, 1145818, 1135450, 1126602]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "gather+sdpa_math_bf16", "warm": 10, "reps": 50, "dev_ns": [1417088, 1409280, 1382912, 1546144, 1276288, 1285120, 1249312, 1302528, 1288928, 1321248, 1356960, 1479392, 1428064, 1563968, 1259840, 1266912, 1284544, 1272128, 1270464, 1374336, 1441536, 1354784, 1304672, 1296128, 1460096, 1328448, 1301152, 1296320, 1337344, 1337472, 1304768, 1294432, 1310752, 1312608, 1402272, 1399872, 1272864, 1309920, 1298368, 1305568, 1308608, 1344416, 1453152, 1402880, 1523936, 1351936, 1471776, 1376352, 1524544, 1313984], "wall_ns": [1406284, 1368236, 1337372, 1305387, 1474477, 1301499, 1275499, 1325852, 1298491, 1281547, 1314940, 1303067, 1313900, 1449644, 1487789, 1491965, 1345356, 1469053, 1475469, 1547741, 1310828, 1435580, 1441933, 1409788, 1519518, 1315771, 1277531, 1324908, 1303531, 1274923, 1260427, 1299067, 1295324, 1287531, 1497069, 1534109, 1822576, 1309052, 1352908, 1440716, 1621790, 1409005, 1328443, 1353644, 1389132, 1289035, 1396941, 1434220, 1425405, 1553901]} +{"case": "paged_bf16_32q8kv_hd128_ctx2048_bs16", "backend": "sdpa_efficient_f32q_f32kv_pregathered", "warm": 10, "reps": 50, "dev_ns": [240352, 238944, 240192, 239232, 237344, 238496, 240576, 239168, 240736, 239680, 241504, 240352, 238272, 237952, 240544, 239296, 240384, 241344, 238912, 240608, 238528, 239168, 239200, 237472, 243936, 239968, 240448, 241376, 241216, 237024, 238688, 238144, 238400, 238208, 237888, 237952, 236320, 238400, 240448, 238432, 238432, 237920, 238400, 237952, 238432, 239104, 238432, 238176, 238496, 240640], "wall_ns": [271426, 251522, 258851, 258770, 257234, 251554, 255747, 256034, 259218, 287523, 258786, 370227, 364003, 257795, 259138, 257746, 261186, 363396, 256018, 258018, 313971, 249010, 255634, 247778, 255794, 254899, 256034, 255906, 253890, 248771, 259922, 255858, 254914, 255619, 256050, 256818, 257090, 255043, 256866, 255954, 255826, 256818, 255859, 248722, 248914, 248882, 257074, 256643, 256034, 258002]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/rounds.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/rounds.jsonl new file mode 100644 index 0000000..804428b --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/rounds.jsonl @@ -0,0 +1,12 @@ +{"round": -1, "arm": "torch", "rc": 0, "wall_s": 3.181, "lock_held_s": "3.176894679", "load_before": ["34.38", "23.86", "18.12"], "load_after": ["34.38", "23.86", "18.12"], "compute_apps_after": ""} +{"round": -1, "arm": "omega", "rc": 0, "wall_s": 0.763, "lock_held_s": ".758649163", "load_before": ["34.38", "23.86", "18.12"], "load_after": ["33.15", "23.78", "18.12"], "compute_apps_after": ""} +{"round": 0, "arm": "torch", "rc": 0, "wall_s": 3.495, "lock_held_s": "3.490689865", "load_before": ["33.15", "23.78", "18.12"], "load_after": ["33.15", "23.78", "18.12"], "compute_apps_after": ""} +{"round": 0, "arm": "omega", "rc": 0, "wall_s": 0.809, "lock_held_s": ".804653101", "load_before": ["33.15", "23.78", "18.12"], "load_after": ["31.46", "23.58", "18.09"], "compute_apps_after": ""} +{"round": 1, "arm": "torch", "rc": 0, "wall_s": 3.419, "lock_held_s": "3.414120252", "load_before": ["31.46", "23.58", "18.09"], "load_after": ["31.46", "23.58", "18.09"], "compute_apps_after": ""} +{"round": 1, "arm": "omega", "rc": 0, "wall_s": 0.951, "lock_held_s": ".945308408", "load_before": ["31.46", "23.58", "18.09"], "load_after": ["31.46", "23.58", "18.09"], "compute_apps_after": ""} +{"round": 2, "arm": "omega", "rc": 0, "wall_s": 1.131, "lock_held_s": "1.127103514", "load_before": ["31.46", "23.58", "18.09"], "load_after": ["30.30", "23.48", "18.08"], "compute_apps_after": ""} +{"round": 2, "arm": "torch", "rc": 0, "wall_s": 2.864, "lock_held_s": "2.859327892", "load_before": ["30.30", "23.48", "18.08"], "load_after": ["30.30", "23.48", "18.08"], "compute_apps_after": ""} +{"round": 3, "arm": "omega", "rc": 0, "wall_s": 0.744, "lock_held_s": ".738672861", "load_before": ["30.30", "23.48", "18.08"], "load_after": ["30.30", "23.48", "18.08"], "compute_apps_after": ""} +{"round": 3, "arm": "torch", "rc": 0, "wall_s": 3.037, "lock_held_s": "3.031847749", "load_before": ["30.30", "23.48", "18.08"], "load_after": ["28.91", "23.30", "18.05"], "compute_apps_after": ""} +{"round": 4, "arm": "torch", "rc": 0, "wall_s": 3.531, "lock_held_s": "3.526034268", "load_before": ["28.91", "23.30", "18.05"], "load_after": ["28.04", "23.21", "18.05"], "compute_apps_after": ""} +{"round": 4, "arm": "omega", "rc": 0, "wall_s": 0.665, "lock_held_s": ".659534699", "load_before": ["28.04", "23.21", "18.05"], "load_after": ["28.04", "23.21", "18.05"], "compute_apps_after": ""} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_f32_32q4kv_hd64_ctx2048.wl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_f32_32q4kv_hd64_ctx2048.wl new file mode 100644 index 0000000..f0ebdf9 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_f32_32q4kv_hd64_ctx2048.wl @@ -0,0 +1,2 @@ +o={{419411,418244,417684,418083,572149,416995,1321116,415588,418260,424547,418419,419572,1025305,415252,486197,415668,499524,418180,416500,421427,420772,491572,451604,476388,519925,525685,415411,520389,519189,492212,418676,511925,519493,526020,416659,415940,416292,417043,418436,416596,419844,415139,419316,524085,427060,395187,417859,418500,420484,417748},{415603,416116,495509,517461,504677,412244,419875,415108,412676,386499,412852,517540,517476,415459,380772,413267,416020,515829,508997,413763,415364,516021,516677,415812,415955,414100,394308,419779,416148,419028,489252,516229,414131,412564,417252,476356,541765,418756,413459,472564,417876,414212,417220,521892,796167,416052,707318,621654,517381,416931},{485860,413252,412211,412788,372771,412964,412612,413267,386212,514372,515892,415892,412676,490260,514485,413492,412643,413620,415716,519749,480644,413027,412852,410452,411763,414228,515284,820343,514564,691750,513653,514437,512820,514484,506660,512996,514293,477844,410451,470308,410532,415108,410579,408116,512997,514212,489732,410675,514021,477540},{420276,417955,416740,416548,394131,418868,525781,519845,414116,415603,414228,387395,413795,412996,413236,412707,380180,412419,414420,414324,366083,414708,413699,413491,414980,412404,388867,411092,412739,413684,416708,414228,517748,509764,413124,414051,412099,413796,391763,413732,412468,412996,413315,416500,374355,413236,413284,411411,453748,412867},{524964,517092,515924,515476,496164,414868,533092,561493,629862,518389,522789,510405,515589,520804,499572,522852,516693,515605,481141,516388,485780,522037,421684,422980,415443,415412,416948,415140,411907,369892,412564,413843,414195,519413,525973,515205,519541,513412,413172,515620,513429,524165,523973,497316,516452,532020,490373,413779,412308,411988}};t={{175232,171168,173248,171040,172032,172576,171648,170592,171744,172544,171520,172608,170528,172672,172640,170912,170528,172736,170816,171680,170976,171104,172736,170880,173024,172032,171136,171424,174848,170080,170144,171072,172864,172192,172736,171520,170816,170720,173024,172064,171744,171200,171968,171904,172672,172864,171936,172032,171200,171872},{175584,172608,173024,171840,171936,171872,170688,169856,173056,172192,171296,172000,171168,169760,170784,171136,171264,170816,170976,168160,172160,170848,169984,170432,169280,171872,169088,171296,175712,170112,169056,169088,171296,171808,172032,172224,170176,170176,169952,172160,169984,171744,172000,172992,172256,171136,172000,171104,171104,171360},{172128,171936,171008,173056,170112,171168,171104,170976,173088,171456,170080,170336,171424,169216,172032,170016,170880,171808,170528,170080,171680,170080,170208,170144,170848,170912,172064,169888,172736,170112,170816,170976,170144,171456,171584,169568,169888,172320,172704,172160,171008,171648,171808,169824,172128,171328,170432,170784,169760,171936},{174976,172160,171968,173920,171744,174624,171616,171200,172224,172832,173024,170816,172864,172512,171872,171040,171680,170752,170912,172800,171840,172864,172704,171136,171776,170432,169920,171168,174912,171296,171040,170656,171456,171040,171904,172768,171968,171872,172320,171360,172416,169792,171072,171200,173280,169344,171200,171392,170816,172608},{174464,170944,170400,171616,171232,172736,172608,172000,173536,170688,171840,172896,170944,170464,170240,173536,172160,170656,172896,170880,172960,173888,172896,172800,172864,173696,172000,171520,176640,170560,172672,172640,172800,172512,171936,172384,171264,172896,171872,172800,170688,172640,171648,171744,170208,171328,170464,171776,171808,171776}};x={{41888,38912,46144,37216,36768,40480,36320,36160,37408,36704,36960,36704,36768,36864,37664,36576,34976,36704,36864,35808,35136,36576,36800,36224,40672,36704,36608,37984,35840,35456,36576,36384,36832,37248,35360,36800,35904,35840,36192,36544,36768,36512,35840,36672,36736,36288,36896,41024,36832,37600},{43136,39840,38080,36256,43968,40640,35328,37664,36960,36384,35488,37504,36832,34784,37536,36352,36032,35776,36800,36928,37856,37440,36608,37984,36640,36096,35008,42144,37696,36736,34112,35648,36416,36096,34944,36384,36896,36672,36576,34592,37728,36032,36288,35936,36800,34880,35424,35744,36608,35328},{43680,38944,38240,36576,37792,39424,36352,37408,37984,36736,36992,36608,36352,35776,36928,36384,35584,36288,36032,35552,37472,36224,37184,34560,36768,36064,36288,36064,36032,35744,40704,36768,36736,36576,36576,35232,34976,35296,35872,35680,35552,35744,35840,35520,36512,34496,36128,35424,36896,35968},{43840,39040,38528,36800,37760,40512,36864,37184,45600,37056,36704,35776,36608,37600,36288,38048,37152,37152,36960,35776,37312,37760,37920,37184,37376,35872,37056,36160,36480,37088,40416,37152,36480,36832,36512,37472,36608,36896,36256,35168,35008,38048,37376,36992,37120,36928,36384,37024,36608,36352},{45024,38976,38784,36800,36160,39136,36992,36896,37760,37280,36320,36704,36576,36576,37696,37184,40736,36768,36704,37440,34944,36544,36832,36416,37312,37664,36704,37088,37120,35648,36192,36544,37696,34656,35776,36672,35776,36288,35488,40000,36608,37344,37792,36224,36224,37088,35968,37728,37184,36160}};ow={{541269,543509,548293,552404,700838,545556,1451613,548981,543925,555508,544853,543285,1169466,558197,636118,565493,642389,538997,545989,541268,547909,616501,582022,623957,671782,648790,539716,650790,661862,617893,548165,660374,673318,671909,548565,536613,552085,535796,546997,534389,546597,539460,544613,651798,573749,543348,544245,547589,591237,551029},{550516,553205,649542,707014,655846,556405,540404,543189,530389,514484,540709,632677,685814,551749,492805,548500,533621,669862,652662,533748,560213,663142,666246,552741,552036,532213,522053,536628,528213,541765,597765,653958,543124,550069,532773,620885,675414,548981,532997,658101,558101,549557,550629,632101,907064,559205,822167,754871,657062,540948},{629797,542197,537572,521925,498020,525749,537845,526164,510549,634485,667574,550965,544709,600501,662182,548469,550100,528469,563125,661702,588149,544724,520949,523029,524356,519525,634197,935624,658134,827383,642614,646134,661157,642246,612469,646838,649014,601173,517764,584101,520436,534037,521236,529941,642822,652421,603829,537269,631174,619797},{549093,541028,538773,540709,518996,545301,677110,664230,541461,537924,538661,512868,538405,543861,538085,539556,500421,533156,536245,540325,490100,538517,538804,536981,539813,539653,512852,535029,533524,536021,545413,540885,647733,663702,552005,539428,537509,543525,513124,537941,540037,538693,538004,544277,503092,539093,540037,538068,579317,538613},{712758,691622,696470,696038,643750,558037,722326,741175,808711,689942,688134,671590,670902,680389,656662,681238,672294,686022,639382,670773,637510,688998,554053,550773,544548,542229,544181,542405,536644,494309,555045,547076,563957,667158,675334,676646,675814,639013,546677,678406,673958,677494,659766,659925,690102,688838,613462,538004,534437,532453}};tw={{297955,270610,265570,266995,268162,268002,264323,266674,264306,299299,265970,267043,265346,266994,263218,267043,265250,263106,264099,263170,264226,266243,265106,267426,266083,266082,38303422,266082,267763,267122,265154,264179,266290,267762,265363,267410,266866,267347,267058,266098,265235,270546,267122,266259,266050,268322,264115,265250,263922,266947},{297170,270418,266483,265250,263730,265187,265986,264210,266387,265906,265266,265219,267426,264722,266307,266178,264210,267027,266194,267186,264035,266450,266274,265890,266371,267282,268242,267907,264210,268114,266435,263874,266386,268179,267266,264946,265155,265506,267890,267059,265362,265730,266115,267010,266290,266483,265218,266914,266115,269986},{292355,270786,268290,267059,267090,267106,267219,266130,268226,266995,266082,267314,267123,266034,268338,294915,270402,327379,336243,329155,269266,267299,269842,376579,268739,274450,318611,276034,266275,267154,267346,266035,267442,266962,266114,265235,270658,264658,265587,264706,268370,266755,268226,265106,266195,265138,266098,266275,267010,266082},{295907,273266,267874,273219,268402,271218,268211,268994,279715,269026,268450,270867,268306,268194,267379,269042,267234,266115,267058,267634,267219,267922,302179,281042,316115,326723,339379,267074,268594,267875,360755,279362,268979,321442,267059,269346,267346,270915,274786,269106,268211,271186,269235,270066,265490,271011,265394,266994,267011,268066},{304931,271266,268259,265698,267202,265539,268690,265170,268451,265746,264386,266115,268370,268002,267235,266018,267506,266931,266322,266882,267363,266146,268338,268003,266402,266850,265683,265794,265634,266611,268258,265090,264435,264626,265314,265075,263970,265074,266386,266067,268322,265730,267171,266162,267170,266211,269298,267186,265971,267058}};st[x_]:=N[{Median[Flatten[x]],Quantile[Flatten[x],1/4],Quantile[Flatten[x],3/4]}/1000]; +{st[o],st[t],N[Median[Flatten[o]]/Median[Flatten[t]]],N[Median[MapThread[Median[#1]/Median[#2]&,{o,t}]]],st[ow],st[tw],N[Median[Flatten[ow]]/Median[Flatten[tw]]],st[x],N[Median[Flatten[o]]/Median[Flatten[x]]]} \ No newline at end of file diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_f32_32q8kv_hd128_ctx2048.wl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_f32_32q8kv_hd128_ctx2048.wl new file mode 100644 index 0000000..6a64398 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_f32_32q8kv_hd128_ctx2048.wl @@ -0,0 +1,2 @@ +o={{432708,420628,422884,420820,420548,420148,418900,521988,422340,430628,427795,518852,531076,508229,671174,422595,528884,529653,419764,531845,508980,423476,429299,424628,426036,426564,416452,523956,420323,582341,508516,528548,421476,418212,416211,416787,422372,428532,424868,421715,413539,478980,424371,423923,420803,423188,410467,394387,429107,425315},{424404,425332,421972,418899,415140,425203,426579,425700,425028,375779,428148,421332,424756,425300,426259,425524,426900,426644,413460,422724,426483,425443,411603,423172,423107,424292,421924,403860,524293,421380,418499,421892,419236,420564,512996,424660,523924,423348,424307,420036,529397,424003,434404,420291,478629,392163,421972,420307,525333,498821},{420356,416787,497620,416771,417332,417139,520885,519972,526100,481925,519988,413844,414499,488884,519221,478996,417843,523204,419684,419092,417204,523925,523125,522356,518980,517685,417139,414004,388899,475941,520708,415380,522005,482116,518293,415604,414932,516516,502341,417475,418515,485909,416228,419332,415060,414675,511460,416724,492692,520388},{399876,477780,421667,422420,417428,419444,515253,420244,417764,420132,418868,415315,413460,414691,473668,414420,416116,416372,420339,522404,421108,386483,411236,418579,413844,415459,417876,416739,415396,418020,416947,520261,484116,414900,413379,414915,412611,414948,417300,421827,418627,420516,477028,412755,472532,415331,413796,413860,417715,416468},{398291,481045,419588,387875,419731,420595,420676,716438,520484,419412,417043,419555,715639,726102,834664,828152,740263,737926,726182,692294,419619,421236,417556,420692,417092,417828,418323,478644,521157,418691,499605,417235,424196,440580,404083,522037,527621,422404,419587,417299,524420,493397,521381,520389,517700,508932,521653,521237,520244,503924}};t={{236928,237184,238208,237344,235552,236160,239520,238496,237344,236288,235200,238304,236512,235488,313792,242400,237344,237504,235392,242656,235584,233856,235520,234528,234112,236096,236480,237472,235232,235168,234432,236448,234720,235712,235648,234336,234272,234176,235520,236320,235968,240000,235424,269600,239488,272192,278400,273728,236256,236352},{242272,238016,235648,236640,234528,233696,234528,238080,237280,237216,235744,235328,235648,234368,233632,237408,234560,233600,233376,234624,235648,237664,234400,235648,234464,237376,234624,237600,236448,234688,237280,237760,237440,236000,235424,235456,236672,242880,236480,236576,235712,235776,233952,237568,235328,236704,235680,236736,235776,234560},{239648,238656,235936,239520,237952,235104,235104,235392,236576,235552,234848,234880,236256,235040,234560,235616,233632,236512,235712,236288,236672,235776,234432,236384,236480,235136,236352,233856,235264,236576,236448,235456,233600,234432,235680,234944,236480,236544,234368,236160,234528,234944,233504,233728,236672,234848,235392,236576,233984,237312},{239840,239072,237056,238016,240640,236160,236704,236288,234304,235584,236480,236544,236256,235008,235200,235488,235456,238464,237632,235360,233760,236128,237280,238400,236288,237056,236288,238112,238336,235648,236192,237472,237472,238976,237216,234432,235680,234272,235104,236512,236320,237824,238336,236224,236480,234560,234752,236288,234336,235424},{237824,235264,237248,235104,236512,237600,235296,233856,237472,237472,234688,235392,235104,233856,237312,236512,236576,235456,235456,236640,238112,237312,237536,237408,234624,237216,237408,238208,234784,237408,236032,237952,237984,233984,236960,234720,236416,237152,235328,235456,234624,238304,235520,234496,234656,237056,236352,234560,234496,234144}};x={{91584,88864,87552,87520,86144,88832,87840,86624,89792,89280,88672,86208,88416,89472,87872,87008,91648,87712,88256,88960,90976,87840,89920,89216,91904,87392,91072,88160,86400,89984,86912,88224,89504,87424,92544,90944,86176,87808,88608,90016,87296,88352,92704,88096,89664,88416,92096,85312,89152,88736},{97184,86944,95136,99040,100064,97440,97344,95872,96800,96672,96128,90816,88064,90112,88736,90176,87264,91520,92864,98272,93824,101536,97152,99392,99040,98784,98592,102144,100992,96288,96160,101152,103328,103904,97248,96032,95968,97216,98368,96416,91488,88544,95072,97728,100672,100224,98080,98144,96576,94048},{105632,101600,103680,100064,94592,112480,134816,92768,93056,96224,95296,101888,105696,105696,119232,182240,137792,114080,114432,115232,168288,141952,102976,105344,108864,100928,93536,98976,103872,107968,110176,102208,103232,101024,101216,104672,92672,92096,95168,91744,95712,93536,96768,103424,125536,179424,140032,99456,103776,102432},{107232,106784,98624,107648,100096,102368,103296,92512,92672,89792,92896,101920,100864,99936,101632,99200,97824,95392,95392,97056,93248,88576,87776,87136,89792,89856,89760,88768,92992,98944,99296,96000,99136,97696,99456,99360,101248,103232,99328,102016,98880,98592,99424,99488,97280,97312,100960,100128,99552,99520},{86112,90240,93504,94784,92768,94112,94912,93792,91040,92288,88768,85984,86208,88864,86688,85504,89024,96032,91584,92832,97152,92448,91136,91840,90432,91680,92128,91872,92864,92000,92960,93888,90624,92096,90848,90912,92736,92064,94816,91808,93152,89952,92000,87104,88832,90976,91648,95616,92640,92704}};ow={{3709905,1784255,1202347,1185466,1146154,1126234,1128074,1229818,1220507,1151274,1169146,1353228,1386572,1297004,1439532,1175258,1246683,1333884,1232139,1360748,1311771,1269339,1185002,1218091,1155994,1133306,1137866,1314027,1247611,1332524,1320107,1346140,1226955,1160826,1151930,1152330,1183099,1166090,1156010,1104409,1130074,1207723,1206154,1157658,1123738,1185195,1113913,1109594,1195226,1127898},{1113194,1210843,1165914,1184026,1209067,1198106,1162282,1162891,1152058,1105769,1167675,1165546,1140394,1139002,1124857,1110346,1121866,1133386,1114314,1191818,1181914,1271291,1253611,1278540,1120761,1186843,1162058,1224987,1411948,1296027,1190411,1150554,1200426,1255963,1281067,1301484,1360491,1299004,1218554,1191083,1398316,1295323,1354092,1276379,1399629,1220970,1202827,1211626,1339692,1339980},{1169962,1294651,1262075,1287627,1195771,1188874,1314652,1457565,1362491,1390493,1441468,1247291,1164010,1249211,1456381,1334091,1376476,1377484,1313660,1162922,1120922,1266779,1370076,1201514,1335420,1226507,1219098,1096250,1023753,1102314,1241178,1170043,1279483,1203498,1305500,1137770,1072921,1158746,1324204,1220698,1274155,1295660,1303339,1153050,1106698,1087385,1240571,1191115,1231498,1269067},{1101850,1207338,1131546,1132938,1118938,1141338,1263259,1243323,1141514,1167162,1124170,1103305,1088858,1092121,1135706,1078298,1080393,1106106,1091817,1268523,1224539,1045801,1102778,1091129,1097802,1088377,1083562,1067465,1069818,1068857,1069513,1212475,1249051,1060473,1055433,1052809,1042521,1046889,1059849,1071769,1065641,1091946,1136458,1063129,1141434,1050969,1053546,1066921,1064985,1124986},{1325340,1316076,1307419,1268907,1284075,1267259,1233051,1520269,1379996,1276300,1237578,1251387,1540638,1514317,1692895,1707951,1607454,1555517,1616478,1506366,1228298,1320924,1219083,1216138,1203691,1255291,1230730,1314428,1368572,1333403,1302972,1217242,1188987,1291915,1187674,1313644,1338588,1306251,1200858,1256011,1344252,1441613,1497005,1499789,1501933,1500029,1576382,1485197,1517773,1513197}};tw={{1983585,1748479,558309,547365,546661,543877,547396,557045,571109,566261,551573,543525,566101,562133,550228,548261,560165,553301,567317,547573,546772,548837,548613,547061,545444,554725,565333,578821,667318,853880,566436,579029,764967,645414,576325,567189,550837,550660,544725,545269,545045,545140,547461,549333,568341,573061,552229,550533,554244,569029},{1798048,1633166,579157,553413,604133,702662,734471,548597,776086,628166,595813,556981,545669,544596,544789,542501,545813,544308,542517,543797,542517,545572,545669,544773,543669,543332,545701,544533,544805,544596,542901,542325,546165,543812,544661,546725,544869,544564,545813,560517,732486,733655,545845,737030,646566,552581,555860,543653,543653,545733},{1807919,1693295,558261,548565,569141,559765,579893,551237,544820,543061,543669,544340,540613,540549,541877,540500,541301,540069,541573,541492,543669,542645,546693,545636,546917,546005,545749,547892,545845,546741,545429,546660,602470,710854,763687,546804,749191,600165,633814,557012,547605,545333,544693,545333,557636,546613,546693,548885,548709,546676},{1860608,1662926,580997,561333,563557,543125,563269,576005,563237,554677,558949,566308,573334,555124,558709,552373,549941,619093,888728,555989,578197,765079,650165,602966,566180,556709,571221,574181,559909,552805,567269,560325,572277,549477,554517,548628,549157,551461,551285,544420,559205,546005,566405,573237,555973,549109,547524,548053,566821,561653},{1882720,1935313,564613,550261,3692320,757543,750006,570309,758519,558197,689942,576389,572261,554821,559189,798727,568277,567461,561476,548453,547989,556581,547685,544804,547621,556901,568197,570469,543589,549621,555140,567189,578533,547301,546517,563125,561141,567909,610709,761111,735462,555509,779463,655910,551364,574613,579077,568437,555781,547589}};st[x_]:=N[{Median[Flatten[x]],Quantile[Flatten[x],1/4],Quantile[Flatten[x],3/4]}/1000]; +{st[o],st[t],N[Median[Flatten[o]]/Median[Flatten[t]]],N[Median[MapThread[Median[#1]/Median[#2]&,{o,t}]]],st[ow],st[tw],N[Median[Flatten[ow]]/Median[Flatten[tw]]],st[x],N[Median[Flatten[o]]/Median[Flatten[x]]]} \ No newline at end of file diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_rows_f32_32q8kv_hd128_m256.wl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_rows_f32_32q8kv_hd128_m256.wl new file mode 100644 index 0000000..f9812c0 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/gqa_rows_f32_32q8kv_hd128_m256.wl @@ -0,0 +1,2 @@ +o={{1487340,1459325,1661583,1693231,1884929,1278682,1379083,1383533,1585838,1489341,1380349,1766080,1503165,1384972,1594398,1444716,1595471,1500076,1556015,1582639,1569470,1366189,1491454,1763791,1581646,1370395,1421980,1475389,1374524,1369773,1580718,1375931,1480717,1382284,1394332,1481118,1390363,1384764,1363645,1500638,1236251,1369500,1481517,1374779,1474316,1385853,1479133,1444141,1617311,1582446},{1684847,1581102,1575758,1535118,1531518,1359963,1678863,1767328,1430429,1678862,1755551,1621085,1361467,1574669,1532526,1566829,1541565,1549390,1585709,1585661,1440732,1485006,1468220,1461581,1465261,1421933,1672990,1461629,1479245,1369260,1448813,1473132,1494286,1387453,1475132,1540749,1856703,1372141,1447517,1551549,1431324,1289898,1472509,1558590,1428605,1426076,1367723,1569118,1434477,1374156},{1545374,1365100,1416797,1417309,1456957,1365564,1357244,1364620,1364268,1532270,1343051,1878416,1672511,1859584,1318700,1684591,1864385,2089314,1999506,1908785,1552781,1373196,1377852,1374556,1373996,1491085,1358684,1388892,1375404,1356652,1375883,1435324,1480990,1684045,1442348,1371772,1343725,1469917,1437629,1447629,1573326,1570157,1778624,1466925,1557933,1639662,1415004,1490013,1455149,1573711},{1340429,1582637,1348443,1376908,1328651,1366364,1341932,1460813,1360204,1366588,1576062,1561663,1546557,1471518,1279211,1373452,1381261,1387740,1785839,1433628,1370604,1270939,1389290,1593470,1515629,1377803,1386908,1357164,1379740,1369836,1654863,1354475,1376060,1438892,1350445,1446748,1376203,1359788,1476253,1445437,1267372,1243851,1487629,1457628,1472812,1227803,1376108,1357868,1335626,1352811},{1900017,1672080,1592286,1664623,1826640,1699182,1699503,1790848,1689902,1604493,1710079,1691455,1698655,1487182,1588367,1596830,1656846,1793056,1781680,1815999,1817455,1891329,1607470,1793423,1764703,1652158,1598078,1789872,1792270,1583918,1589692,1665103,1588637,1795600,1550237,1681919,1686206,1757441,1494797,1688735,1672174,1579503,1489197,1481420,1575773,1667967,1555916,1651359,1776625,1763823}};t={{95616,90272,93056,91936,93312,90560,95808,90880,93216,91776,93312,92736,91616,92512,91360,90304,92992,91296,91616,91296,92160,92256,90976,91008,90656,92480,91808,88640,90016,91392,90592,90240,93280,91552,90656,92800,90432,91328,92288,89888,90464,90752,91136,91040,91936,92288,92064,91296,92384,91872},{95008,90816,92640,107776,92352,91712,91936,91104,90752,93120,91936,91904,91040,90816,90912,90592,93120,90912,90880,90464,90304,90496,91072,90688,90496,90432,91296,91584,92160,90176,89888,90080,90112,91616,91040,90432,91200,90976,90688,92128,90848,91136,90208,91968,89824,89536,90976,90752,90880,90880},{91616,91520,91904,95488,92960,91072,90592,90752,90112,89920,90944,91744,92896,91872,90848,91040,90016,91872,93024,90144,91296,92000,91296,90976,90176,92032,91616,89984,90432,89792,90304,89344,90048,90240,90720,89920,90688,90208,90432,92736,91040,90368,88896,89184,91680,90208,91328,90112,91680,91072},{94368,90368,93856,92064,90784,92768,91424,91808,90976,91520,91360,91232,92896,90400,91808,91104,90848,91072,90784,91648,92864,91104,90656,90880,92192,90048,91776,89984,90688,92960,90816,91456,91104,90496,91008,91488,90368,90688,90944,91520,91040,89824,92096,90112,89664,90368,90848,93088,91072,91008},{100448,90528,90688,90784,91808,91840,92736,91296,89920,90208,94144,91072,91072,92128,90880,91168,91008,90880,90688,90144,91712,91072,90048,90848,90624,90912,89952,91200,90400,91072,92288,90816,89984,89344,90848,90560,90144,90528,91008,89472,91360,91616,88960,90720,91168,89888,90912,91040,91520,91168}};x={{56512,54272,52320,52704,53056,53760,51904,53120,53312,52096,53120,51200,52000,51648,51584,53216,52480,51776,51936,56416,51968,52544,52768,50496,51296,50976,51104,50656,52256,51904,52128,52992,52960,52096,53184,50816,50880,52096,51264,51776,51008,51104,51744,51264,50304,51904,53248,52128,52064,52288},{55424,54848,52928,53632,52992,51744,51584,52032,51232,50912,53184,52000,51840,51936,50944,52128,50976,52128,52128,52320,52256,51136,52192,51648,52736,50784,51872,50688,51296,50752,51200,51232,50592,51584,51328,50176,51584,51168,51264,52160,52128,50848,51328,51232,52064,50464,50304,50688,51680,49664},{56576,53248,53024,51968,51232,60608,53376,52416,51008,52768,51744,51840,53088,52224,52736,51904,52928,51808,52480,52192,51328,52096,52864,53024,50848,51680,52416,52256,51936,50944,51744,52192,51328,51648,51968,52256,51872,51104,51680,51264,51232,51712,51520,51168,52992,51136,52064,51200,51552,52672},{56736,52288,51584,53600,53088,53088,53184,52640,53152,52640,51616,51040,51712,51168,52448,51264,52480,52928,52992,53056,52096,52160,50944,51264,51584,52704,52928,52672,51936,51104,52160,52192,51168,52192,51072,51840,52160,51808,51168,53056,51584,53888,52096,51968,52896,52288,53536,52928,51008,51136},{55872,52224,53440,50592,53568,52928,52864,51712,51136,52224,53088,52960,51904,52128,53152,51904,58208,51168,51648,52096,52192,61856,83584,52480,51392,52064,52960,52608,51488,51456,97120,82752,53696,53664,74944,90720,86848,51136,51872,50816,51136,53056,52192,51968,51200,51840,52736,52928,51840,50944}};ow={{2579063,2498038,2715831,2744104,2957178,2306564,2463766,2461541,2655287,2504614,2406117,2814632,2576614,2415125,2624231,2511829,2670232,2551911,2752872,2847129,2635015,2381957,2523462,2851161,2641639,2482661,2497142,2516118,2430789,2419253,2635815,2420133,2532038,2465862,2467509,2573926,2456165,2432134,2412101,2555990,2265284,2402885,2530806,2423701,2524502,2432837,2537974,2501877,2655159,2585318},{2729624,2598103,2640887,2598230,2579430,2366357,2747416,2830777,2441749,2681191,2815672,2676775,2357989,2597831,2603815,2679496,2564551,2624966,2632535,2659815,2453221,2547126,2529942,2506678,2493030,2489845,2728616,2493765,2521110,2445461,2507686,2468294,2508438,2422917,2507286,2600135,2870106,2402149,2486806,2588983,2447142,2299732,2556038,2608679,2498518,2421349,2446694,2634775,2475830,2404293},{2539063,2352869,2405477,2400837,2438517,2363156,2346596,2365620,2363605,2531734,2396229,2994075,2765577,2935706,2310565,2681544,2863097,3083242,3003242,2907337,2593302,2376836,2377845,2366981,2384261,2483365,2334196,2394660,2375381,2364725,2372181,2427526,2481606,2687608,2465398,2368293,2602294,2525206,2478997,2477510,2596103,2629991,2818105,2465558,2549622,2639991,2407797,2546550,2505158,2640968},{2323668,2609271,2363605,2379813,2327012,2370900,2326004,2484485,2356052,2361461,2569126,2562294,2592711,2466086,2281844,2369812,2384581,2383029,2785945,2440086,2371909,2298228,2433349,2609847,2533782,2463350,2407717,2359285,2396037,2377860,2700088,2379013,2410245,2452902,2368309,2495430,2438693,2365604,2503814,2474182,2336276,2300644,2526134,2537126,2541734,2288644,2425829,2404261,2361669,2368997},{2971529,2766744,2721176,2693015,2908538,2799209,2744248,2838633,2784824,2720632,2739655,2749640,2761080,2574678,2655175,2615607,2728600,2877113,2847017,2855833,2903417,2993914,2643495,2838953,2819337,2727495,2617239,2859368,2887177,2671720,2607143,2736519,2650695,2869001,2567382,2781976,2747191,2808793,2512726,2762856,2740199,2653575,2513222,2567143,2676488,2754136,2581847,2718647,2867721,2818776}};tw={{684646,483156,297443,288658,296643,291810,288691,286530,298979,287634,301155,301699,301170,294387,299234,289683,295858,572117,288563,288051,301826,299523,299026,296819,288850,292435,298819,291570,293075,292866,286355,287650,295891,294002,295331,290419,297090,286339,285234,287075,287858,298659,298994,291699,298995,299266,296563,287058,287891,287522},{665477,474180,300051,290995,289922,296691,292978,289411,291122,290979,292450,300339,302643,297074,295235,341027,357427,297699,415907,438356,305939,300322,305427,292531,434179,293539,304771,376867,344659,300194,292275,291139,292130,294883,289138,290419,288354,297075,294146,293491,289122,294067,288435,296130,289171,299250,296867,304387,304194,290355},{693542,473876,292563,300258,300179,288306,299315,289442,287075,284898,293027,293379,284994,297363,287250,301491,287106,286195,284978,1119882,308019,287090,293123,286450,293939,286450,287507,290434,286803,293539,284834,292387,293250,284595,293042,293459,291970,292595,293954,292499,285906,286915,286914,293235,296499,295554,295283,294482,294051,295474},{734358,479668,294531,292082,291043,287202,298227,286354,286755,286034,288211,286418,290915,287858,301715,291267,300194,307747,297011,285762,290787,294386,287395,293970,298211,294274,305315,288371,285138,289491,289554,285251,284786,295011,297410,296803,295955,297154,286179,292498,299907,292130,285059,287218,285875,287026,286243,287202,285923,292626},{732118,472484,300739,296275,295874,291667,296850,309123,293011,294466,291363,293314,288483,296386,288035,297778,287763,287714,295491,286050,297651,301139,305090,303395,305811,303218,304979,289043,293058,290035,287666,287619,290050,293779,290194,297683,287970,288339,296018,295715,290339,286722,294211,338947,310290,456276,399284,363571,287779,299122}};st[x_]:=N[{Median[Flatten[x]],Quantile[Flatten[x],1/4],Quantile[Flatten[x],3/4]}/1000]; +{st[o],st[t],N[Median[Flatten[o]]/Median[Flatten[t]]],N[Median[MapThread[Median[#1]/Median[#2]&,{o,t}]]],st[ow],st[tw],N[Median[Flatten[ow]]/Median[Flatten[tw]]],st[x],N[Median[Flatten[o]]/Median[Flatten[x]]]} \ No newline at end of file diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/paged_bf16_32q8kv_hd128_ctx2048_bs16.wl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/paged_bf16_32q8kv_hd128_ctx2048_bs16.wl new file mode 100644 index 0000000..d9054ac --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/paged_bf16_32q8kv_hd128_ctx2048_bs16.wl @@ -0,0 +1,2 @@ +o={{104577,104657,104657,105121,104657,100593,105809,104433,104705,105105,104673,166018,105120,106465,105809,107345,106337,105329,105857,106817,105073,107185,76753,104961,104881,104945,106129,106593,64640,106129,106209,105969,106113,106273,164786,105745,106449,107377,106049,106641,107809,106896,106769,105425,105537,78656,104977,105457,104737,104913},{105537,104113,70145,103713,104593,103681,105025,104753,76145,104177,103793,104497,103601,104481,167938,107217,103985,105297,104129,105441,105185,105377,104033,105809,104465,89121,103873,104961,104673,104609,103985,64241,105825,104817,106145,104721,106433,63776,104081,106352,104817,105281,104609,167425,104481,105937,104049,104833,104769,105105},{104913,103905,104337,104545,91713,103905,112033,104017,105281,104401,105089,104129,106177,103873,104417,103953,104209,103792,104529,103729,104177,101489,105505,103921,104561,103553,104544,104273,103985,103553,104705,104017,103633,103617,103617,103601,103441,103361,93793,103361,104641,103504,103681,103472,104769,103537,104609,103777,104017,103569},{105985,106193,108657,106193,106112,105441,104752,104705,107569,107777,79104,105313,105169,106097,106513,106081,71121,106929,105793,105121,105393,105313,67745,105233,105297,104833,105905,107601,72385,103921,104720,105009,104497,104225,172945,105905,105233,105121,104785,106129,105473,105361,106769,105649,105345,83057,104577,104609,104801,104497},{103681,103649,163138,103857,103937,104321,103889,103697,104817,103841,104849,104513,103873,92529,103841,104417,104289,104705,104561,172802,104785,104289,104241,104497,104081,104673,104625,105137,105441,105521,98992,104849,104320,104657,104513,105201,164897,105873,105329,104705,104257,104385,105425,105393,105537,105425,105664,167521,104129,104305}};t={{33440,30784,29344,30592,29600,31232,29088,29504,31456,30624,31648,29600,29984,31616,31520,29824,30336,31872,29408,30592,31648,31712,29216,30080,31520,30208,30368,29088,29344,28544,30560,30656,30304,30592,28640,28480,29792,29888,30144,30432,29216,27968,32512,30688,32960,28000,28448,28032,30368,29472},{32576,31264,29248,29920,29152,30432,29760,38144,30688,29408,29632,29888,29376,29952,29504,31328,29760,29728,29568,29728,30528,29632,31616,29184,29728,28256,29792,30400,29696,30496,29088,29696,28320,29472,34816,30432,29760,29856,31648,28896,28640,30304,29888,29728,31584,30048,28512,31584,31808,29664},{33152,29664,30688,29696,29216,30976,30688,29312,29664,30560,29632,30752,29088,31936,31648,29152,30176,30624,29792,28544,29952,30016,28576,29344,32064,38368,30624,30656,30752,31872,31520,29856,29184,28800,30688,28768,30560,31712,30848,29856,29696,31264,30016,29408,29216,30464,29696,28672,32672,27904},{34528,32416,30656,30496,31392,31616,30624,30112,29536,29568,30880,30752,30144,30752,30688,32384,29024,29760,29952,29280,28928,29728,30560,29696,29536,29152,29568,29536,29632,29728,31488,29376,29664,32064,30400,29664,30272,28736,29984,30176,29824,30912,30304,31360,36416,30688,30592,32992,28416,28576},{35232,31744,31808,35712,30144,30272,31552,29888,30336,30720,30816,28896,29888,32256,28800,29696,29120,29632,29888,29696,29920,34080,30336,29440,28928,29152,29952,29344,31872,29152,29152,30336,29120,28864,29120,30240,29024,30272,28800,29056,29248,29824,29888,29280,28800,30976,30816,29600,29792,28736}};x={{197088,206464,200096,198240,198240,196224,196320,210048,220064,206496,198304,208320,201376,217344,198784,196384,200672,209632,213696,215712,220864,228224,222816,227232,219712,219744,221472,203456,198208,201280,204640,201760,204544,198240,197760,198464,202976,206752,225600,245504,216512,216192,199392,206688,197408,200480,199328,201472,198656,212096},{244256,210208,200160,198720,209088,218176,214912,222688,228576,222912,222080,222912,220960,220736,221792,212320,208672,222784,245216,254880,244992,209408,197440,197216,201376,202624,211552,211200,197504,213280,198304,201472,196320,201344,199392,200000,206400,196480,198880,197312,206688,213408,211968,210592,197280,194464,212768,222912,228480,234240},{203808,203232,199008,200864,201344,200288,199456,209632,201216,193792,195808,196512,199040,198528,198720,204384,202784,202464,204992,199584,201600,203008,198368,199520,201056,200256,202752,200256,224480,212640,214336,220704,220320,226688,215680,223040,214592,225248,216032,204416,212352,206528,211648,207808,210880,204384,211872,203520,205920,206400},{203968,207072,205536,202912,249248,244096,233920,227584,209728,207104,208512,207456,203648,202400,212672,217696,229856,220672,229664,225088,224736,234848,248192,232832,230016,229984,216224,211392,260416,245344,242528,233216,203936,202528,203552,202912,218144,225952,214848,201728,202560,212672,208672,200416,204672,202464,200320,203584,206464,201056},{204192,196096,214496,235264,216352,230336,234240,225824,220800,221344,226784,230784,209088,217376,233472,261888,246464,216384,198432,201792,222752,227104,225632,222496,236384,211136,223744,219744,215424,219616,219392,218592,201472,238592,232064,245888,215008,201376,200480,196864,196288,201056,218848,210528,201152,201248,198272,199424,200576,197696}};ow={{181057,177506,173745,175218,178801,167794,175233,173778,172497,171746,173489,236322,173714,173825,171154,174578,179489,171394,174577,175362,175073,174866,144977,176290,172209,171986,173185,173234,132881,173073,172594,172369,174258,174593,231522,173010,170673,174290,170737,180594,174897,177762,176481,173186,174514,147265,174241,173842,175425,175170},{171090,171329,135697,170914,172993,169538,169681,172834,143361,172370,173441,172946,171905,176082,236146,175617,171394,174065,172162,177186,171105,170770,173377,175906,175089,159297,174450,172193,173937,174690,169745,132273,174658,171041,174866,170033,173506,129841,171393,174626,173249,174866,173522,236562,173457,173634,170033,170482,174513,173634},{173265,170562,170545,170834,157889,173505,191042,170690,173921,170914,172689,177202,181345,173298,175905,173954,177105,180418,177666,177441,179010,176849,177650,178017,177330,175009,177426,177826,173313,175234,174241,175954,178225,176034,175137,177970,178145,178098,164545,171618,178033,173986,177857,176818,176450,175313,175746,176449,176754,177617},{173330,172577,175154,174209,176210,173457,170722,171361,174706,174881,146482,171921,170626,172129,173330,171793,138129,174850,173682,170129,171474,171937,133409,170242,171265,170482,172609,174674,139281,169921,173490,175281,171986,171825,242131,175953,175746,174113,173810,178497,172466,171729,173570,172433,172274,150273,169346,171905,169986,172577},{173522,174401,230690,173538,173121,174674,173521,175010,171777,171762,171505,173618,171089,161794,171361,171602,172161,172402,172353,240642,174162,170273,172674,170417,174978,170881,171858,172353,176530,172897,167026,174529,174146,172529,171538,174673,236211,176273,176194,174769,174098,177089,177842,173457,177506,177761,175954,239458,172769,174626}};tw={{48128,42897,41712,43616,39809,40496,41921,41216,44640,43873,41872,49313,43792,43792,39265,43584,42528,39329,49968,40849,42016,39344,43457,43856,41040,42273,46416,43121,41856,39872,41137,42496,41024,41809,40800,42896,40481,50816,41617,41168,45760,48705,49136,41953,40880,41632,42913,40960,41920,39329},{51840,45233,43696,43889,43792,44816,42705,40720,50385,41936,40688,41777,42064,41776,43873,41296,49953,41840,39632,51361,41776,42864,42913,39840,40929,51360,41088,43201,42160,49393,41072,40752,41937,49920,42848,42945,41760,42913,40864,42992,41713,42384,42336,43825,41072,41888,42801,40816,50225,39984},{48833,47136,41745,42816,41616,42913,39808,40208,42545,51040,43041,39856,43856,42993,40448,42288,41137,41664,43456,50673,50272,40721,39936,40800,41281,40480,49105,40752,38912,40849,49056,41936,40817,40800,42097,42816,42832,48225,41840,40848,48145,40640,42849,41264,42752,41553,39888,40832,46977,40928},{59457,45088,42881,44560,41200,43457,41776,43057,41856,51408,44593,42976,51057,42960,44912,42097,42880,46401,43424,41808,52321,42048,52817,42224,43504,49121,42176,42737,39232,49808,42625,46992,42000,41793,42176,42065,41520,43056,50977,43552,43409,41472,43136,40257,41616,41568,40977,39136,41888,41585},{50800,43809,43120,40944,51425,45968,41809,51264,41761,42976,41968,41825,40848,42384,42369,40288,41968,39889,39376,49089,39104,53920,41905,39328,40448,43905,41248,41457,40464,42400,41953,39856,42944,41585,50304,51121,38768,50032,42881,41936,40832,39569,42128,38993,45840,42288,40801,44432,41104,41521}};st[x_]:=N[{Median[Flatten[x]],Quantile[Flatten[x],1/4],Quantile[Flatten[x],3/4]}/1000]; +{st[o],st[t],N[Median[Flatten[o]]/Median[Flatten[t]]],N[Median[MapThread[Median[#1]/Median[#2]&,{o,t}]]],st[ow],st[tw],N[Median[Flatten[ow]]/Median[Flatten[tw]]],st[x],N[Median[Flatten[o]]/Median[Flatten[x]]]} \ No newline at end of file diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rmsnorm_1x2048.wl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rmsnorm_1x2048.wl new file mode 100644 index 0000000..34752aa --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rmsnorm_1x2048.wl @@ -0,0 +1,2 @@ +o={{104705,104465,105025,104881,89536,104720,105425,105041,104577,104849,105825,105377,105361,105665,105121,104561,104449,106481,104577,103793,161137,104385,107265,105105,104241,104545,105329,105713,104145,105281,104640,104304,105377,105649,104209,105841,104945,104689,104017,105249,105153,61008,104177,104993,104929,105089,104833,105553,105345,104577},{103777,110337,103920,104577,103521,105761,81041,104353,104081,104465,103537,105105,103793,104209,103712,104609,104305,104049,104097,106769,103905,108561,103777,104593,104529,68288,103985,104385,104481,104481,103985,106097,104161,105617,104753,104625,103793,104081,104481,103920,103905,104769,104433,104545,70801,105185,104417,104017,105329,108449},{104417,103649,103537,103633,103569,103648,103664,103569,103569,103569,104609,103697,103537,103521,103505,103489,103505,103681,82448,103617,104225,103777,103665,103569,103473,103601,103441,103489,103633,103585,104017,103520,103856,103505,103537,103457,103521,82977,103473,103457,103505,104257,103680,103473,103409,103505,103553,103585,103489,103489},{104865,104129,105473,104465,104401,105041,104529,104481,104577,105009,105137,105025,106384,105457,105425,105185,104673,104657,63025,103713,104017,103649,104801,103792,103793,104017,104305,103969,104753,104161,104433,104369,104161,103985,104353,104225,104017,71712,105297,104289,104129,104433,104289,105121,104081,104289,104433,104960,104448,104721},{105089,105696,105633,104689,105169,104417,103985,104001,104161,104497,65553,104545,104225,103936,104897,104497,104097,105665,103969,103761,105041,104625,104689,104321,104577,104033,103841,104144,104064,71649,103969,103665,103777,103745,105201,105073,103793,103680,103536,103985,103409,103665,103633,104385,104033,105729,104545,104273,76016,104353}};t={{16064,11008,11648,10240,10464,10272,10240,11136,10016,10080,16800,10176,10048,11136,10560,10432,10624,10432,10368,10496,10816,10656,10624,10592,10624,10496,9248,9792,10848,10624,10368,10592,10464,9824,10432,11072,10272,10528,10272,10272,10624,10688,10688,10432,9952,10432,10464,10432,9728,9248},{22912,10912,10624,10176,10176,10016,10336,10176,10688,10496,10528,10400,10208,10368,10816,10176,10592,10528,11328,10528,10720,10656,10560,10432,10144,10304,10848,11136,11104,11616,11392,10400,10624,10400,9216,10080,10272,10848,11072,10592,10624,10304,10496,10496,10656,10656,10944,10944,10528,11168},{15616,11264,10304,11648,11424,10368,12000,10880,9568,9472,9120,9568,9536,10496,10816,9504,10080,10016,9952,10144,10528,11200,11328,10560,8768,10240,10112,10272,10976,11232,11424,10528,10848,10560,10816,10304,10656,10752,10688,11232,10720,10496,9792,10048,10432,11168,11616,11168,10656,11712},{16256,11648,10368,11424,10624,9920,10688,11616,10304,10400,10304,10304,10336,10208,10208,9888,10496,10176,10400,10880,10496,10560,16224,10272,10400,10656,10208,10208,10656,10432,10272,10368,9984,9984,10144,10528,10400,10624,10528,10112,9952,10176,10016,10112,9888,11040,10304,10112,10272,10048},{17408,11552,9408,10432,10336,10336,10176,10176,10272,10208,10048,10144,10080,10176,10112,10240,10464,10048,10080,10496,10592,10272,10720,10176,10080,9952,9376,10144,10208,10176,10400,10656,11200,10176,10080,10048,10208,10464,10240,10528,10560,10080,10464,10400,10400,10080,10176,10496,11200,10624}};ow={{107441,107073,107521,107617,92049,107104,108065,107697,107153,107377,108465,108337,108129,108321,107825,107265,106977,109137,107265,106369,163617,106913,109873,107905,106737,107121,107809,108113,106641,107681,107264,106801,107777,108225,106881,108401,107521,107169,106609,107697,107841,63456,106641,107569,107425,107601,107185,107937,108001,107457},{106209,112721,106368,107313,106017,108177,83553,106897,106673,107121,106017,107553,106417,106673,106176,107041,106769,106449,106561,109249,106369,111025,106481,107249,107057,70592,106465,106849,106881,106849,106609,108401,106817,108177,107057,106961,106193,106593,107025,106208,106257,107249,107201,107025,73105,107473,106993,106561,107841,110849},{106977,106065,105969,106177,106129,106337,106400,106065,105953,106001,107377,106321,106113,105889,106065,105953,106033,106145,84880,105921,106673,106273,106081,105985,105921,106065,106113,106561,106129,106193,106769,106192,106385,105969,106129,105905,105953,85297,105825,105745,105761,106529,106096,105857,105857,105793,106049,106081,105841,105969},{107521,106513,108017,106897,106897,107537,107217,106833,107169,107409,107569,107601,108688,108033,107905,107793,107201,107185,65681,106209,106481,106097,107169,106144,106401,106513,106865,106337,107121,106769,107009,106881,106833,106417,106785,106593,106529,74400,107617,106801,106465,106961,106785,107585,106577,106785,106833,107345,106848,107201},{107937,108352,108353,107377,107969,107409,106465,106465,106721,107633,68161,106881,106625,106512,107409,106833,106481,107953,106625,106209,107489,107233,107393,106833,107137,106721,106097,106592,106433,73953,106209,106209,106145,106081,107729,107601,106193,106256,106001,106417,105937,106081,106001,106817,106769,108353,107089,106961,78720,106993}};tw={{48672,23601,19520,21104,18752,19872,19537,19088,18832,20176,18688,19200,18257,23248,18656,19856,18880,19952,19697,20128,18800,18960,18896,19136,18849,20624,18720,20272,18672,18176,19729,19344,18352,19040,19120,19280,18625,18400,19984,20320,18768,19328,19825,18912,18576,19328,19632,18929,18688,19968},{40096,21504,18673,18256,22496,18096,19040,18352,19345,17680,17952,19552,17840,18240,19649,18000,18080,19168,17920,19712,18833,19312,18064,20128,17920,18768,18560,18737,18768,18112,19712,18416,19696,18273,18560,18928,18048,19856,18576,19393,20304,20368,18144,18496,19616,18081,17792,19584,17936,20256},{48017,21680,18960,20432,18785,19152,18496,18240,18704,18992,18865,20512,19536,19248,18704,19312,18305,19584,18144,18272,19920,18768,19121,18368,18096,19536,18304,18176,18673,18512,18816,18464,18288,20000,18193,19616,18048,20064,21392,18656,18849,27488,18432,18304,18496,18960,19489,18176,18320,19328},{38352,22192,20145,18864,20320,18816,18544,20304,18737,19520,17936,19680,18272,19456,18433,19440,18224,19616,18336,19584,18337,19056,18112,19776,18656,21504,18289,20256,18128,19824,20608,20400,18465,19840,18464,19568,18544,19184,18785,19920,18576,19152,18896,19024,18353,19856,18640,19296,18624,19056},{41104,21680,23745,20160,20816,19392,18448,20112,19745,18496,18032,18256,19536,20288,18001,17936,19408,17920,18192,19680,17697,20208,17792,17984,19680,17792,17873,20144,18192,17888,19456,20576,18001,18208,19456,18064,20176,17904,18033,19360,18128,19440,18144,20416,17713,19856,20624,17984,17920,18464}};st[x_]:=N[{Median[Flatten[x]],Quantile[Flatten[x],1/4],Quantile[Flatten[x],3/4]}/1000]; +{st[o],st[t],N[Median[Flatten[o]]/Median[Flatten[t]]],N[Median[MapThread[Median[#1]/Median[#2]&,{o,t}]]],st[ow],st[tw],N[Median[Flatten[ow]]/Median[Flatten[tw]]]} \ No newline at end of file diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rmsnorm_64x2048.wl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rmsnorm_64x2048.wl new file mode 100644 index 0000000..3088fbd --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rmsnorm_64x2048.wl @@ -0,0 +1,2 @@ +o={{107649,109537,108289,109361,109377,108433,107985,108081,108065,108897,110736,108321,108577,108225,107873,107873,107937,107809,107809,105073,107601,106641,107617,109041,106801,108545,107841,107552,110081,108513,107617,108193,107329,107649,106929,108593,107361,111201,108593,107505,108545,109409,107537,109569,111153,109345,112321,109681,109569,108929},{106657,106161,108129,77184,106017,109185,107073,111041,107521,118913,106337,107553,105761,108177,106577,109361,105825,106401,105281,107281,105521,107153,106513,107617,105921,107632,75857,107441,106225,107089,105617,106609,105553,106640,105313,107585,105857,107217,105393,106897,105665,106945,105889,107217,105728,107057,105601,107537,106689,85089},{96593,106689,106849,105073,105105,106129,106065,106417,107521,107217,106433,105809,106849,106369,106480,106657,106977,106529,107361,107409,106465,107505,107009,107777,107777,108705,107681,108161,107617,108129,107553,107697,73921,108016,107217,107473,107361,107361,107601,107425,107361,107473,107313,108609,106673,107585,64961,107489,107697,107553},{107233,109025,109617,109552,118945,108593,108913,110097,111297,109057,108593,108289,108801,108433,108849,108321,109584,108721,108689,107537,107505,107905,107345,108753,108017,109201,109377,109553,108897,108001,108801,61089,107521,106801,108353,108929,108017,108513,110113,108561,107393,107585,107601,109201,109601,108353,108321,109329,109985,109201},{106449,106449,107537,108225,106673,106097,107489,107713,107425,106385,108049,108241,106705,107681,107169,108625,110353,109041,107217,108321,108993,108273,107969,108145,108064,108385,107585,106945,108977,108641,107857,106753,107313,108513,108193,107601,62192,107697,108625,109857,108993,108833,107969,108785,107409,112321,107248,106529,106497,106529}};t={{10944,10528,10240,10304,10240,10144,10016,10400,11008,9440,10400,10272,10144,10368,10112,10400,10720,10432,9344,10336,10688,10944,10112,10368,10368,10528,10112,18080,10112,10208,9632,9408,10880,9248,10528,10272,10304,10272,10496,10976,10144,10144,10208,10560,10336,10368,10400,10176,10272,9760},{11296,10848,10752,10496,10400,10496,13024,10912,10336,10496,10208,10656,10688,10656,10176,11072,10176,10912,10304,10432,10656,10880,10208,10176,10848,10208,10176,10880,10112,9440,10080,4224,10368,10400,10688,10464,10432,10496,10464,10720,10656,10688,10368,10528,10336,10528,10464,10592,10400,9824},{11808,10208,9600,9504,10688,11456,9312,11264,9376,10304,10368,10464,10272,10656,10240,11072,9760,10560,15776,10720,10880,9696,10976,10272,10624,10400,10176,10464,10240,10432,10272,11488,11776,10784,10368,11808,10368,10944,11232,10368,10944,10400,9536,10496,9504,10912,10368,10304,11552,10208},{12000,10464,10496,9440,9568,9504,10272,10400,10240,10336,9920,10080,10336,10368,10400,10176,10656,10656,11424,10464,10400,10496,10624,10528,10208,10272,10336,10432,10240,10272,10144,10560,10432,10496,10528,10560,12352,9824,9632,11680,10432,12416,10368,12096,10368,10144,10400,15456,10336,10144},{11808,10784,10496,10336,10368,10336,10144,9888,10144,9024,11648,10112,10272,10464,10528,11232,10368,10080,10336,10496,10912,10240,10912,10272,10560,16192,10304,9952,10048,10176,10016,10240,10176,10368,10560,10400,9344,10304,4800,9920,9824,10112,9600,9920,10592,9664,9440,10048,10176,10432}};ow={{208418,209346,208497,213121,209457,208434,216530,214866,212914,212162,214882,211410,214530,212322,208466,213538,213218,214178,213586,207762,215937,212273,208690,214050,216850,209378,210274,212258,212066,214930,214114,213922,209570,213490,211522,213713,208001,211426,210370,211970,214946,209730,214706,210610,216866,210594,215666,211442,211058,208370},{205442,209185,211121,178242,205074,208114,207186,212162,208002,217506,206097,207793,211522,207442,205890,209586,204242,205218,206338,210785,209377,212946,212386,211314,205938,211458,177634,206178,205473,209010,210690,208882,210130,211346,208114,210306,209650,209218,204594,209889,210529,211746,209474,208626,208946,207506,208562,208098,205938,182513},{197586,209762,209266,211186,212642,210562,211058,213538,207073,212609,211794,210546,212594,210274,211410,206786,212386,210274,209266,206770,206706,207249,207314,209810,208962,209362,206802,211106,210418,208178,208898,210481,173937,209298,206738,207474,206354,207713,209313,207266,206482,214274,205826,207602,204802,205202,163505,206962,205954,203554},{209378,212146,208370,207970,218338,206882,208930,210882,214802,210834,209234,206833,208001,208546,209602,206850,208434,214018,208418,208482,211202,209826,209793,210369,209426,209954,215778,211666,211394,209154,210674,163105,209234,208786,209122,211762,210370,209170,211074,209810,213266,208930,210434,212305,212385,211154,210082,210082,212258,221250},{208081,209905,210161,219458,215218,208850,211746,211746,209778,207826,211810,212946,210434,215218,210514,212194,212210,213666,210897,211633,211730,210482,213826,212114,213346,211618,211426,210706,212354,211378,211106,212497,208961,209889,211314,209122,163122,208834,211170,213250,211649,214753,210210,209986,207618,217122,209570,209650,207666,206946}};tw={{345187,49328,39040,38049,37392,36576,37473,46304,37008,36945,36592,37408,37313,36848,37760,36289,37136,38096,37425,37024,37232,37329,37456,36800,37617,37504,36736,37089,37040,37728,37377,38560,38784,37745,37760,38480,40241,49920,38192,37921,37824,37184,37153,36864,37840,36817,37152,37584,37873,37168},{331123,46465,38768,37904,38113,37760,38592,37825,43488,37552,37329,38256,37872,37153,38208,37728,38129,38128,38208,37185,38416,38176,38737,37568,38400,37809,37232,37904,37729,38192,37952,37121,37680,38144,39473,36960,37632,36753,37024,36688,37313,37056,37808,36961,37264,38640,37041,38032,38432,39121},{353139,45968,39361,38320,38305,38432,39632,40481,38064,37424,37809,37056,37888,37345,37728,38128,37361,37712,37840,38177,37200,37440,38993,38704,38080,37969,38384,37472,38609,37264,37376,37697,38848,37792,38017,41552,37280,37441,37088,37536,37345,37056,37824,37121,37808,37088,38033,38432,37152,37841},{312931,46656,38273,37744,38080,38001,38112,37824,38257,38016,38336,37313,37648,38080,37617,37248,38240,43841,37648,37712,38257,37456,36944,37969,38000,37760,37233,37200,38448,38161,37744,37872,39137,37792,37232,38257,37824,37408,37505,37824,38000,37217,38256,37360,37873,38160,43408,38657,38032,37696},{403427,49489,38224,37808,38209,37664,37776,38289,37776,38112,37201,37808,37872,37953,37536,37904,36545,37232,37296,37841,37424,37536,38209,37472,36992,38369,37840,38688,37137,37008,37600,109089,37537,37072,37408,37169,36704,37472,36849,37184,37296,37041,36752,37152,37920,37793,36848,37296,37761,37264}};st[x_]:=N[{Median[Flatten[x]],Quantile[Flatten[x],1/4],Quantile[Flatten[x],3/4]}/1000]; +{st[o],st[t],N[Median[Flatten[o]]/Median[Flatten[t]]],N[Median[MapThread[Median[#1]/Median[#2]&,{o,t}]]],st[ow],st[tw],N[Median[Flatten[ow]]/Median[Flatten[tw]]]} \ No newline at end of file diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rope_32x128.wl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rope_32x128.wl new file mode 100644 index 0000000..0e7625f --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/rope_32x128.wl @@ -0,0 +1,2 @@ +o={{106065,107057,106113,105937,105105,105425,104721,105201,105761,105393,105521,105921,105585,105569,105025,105937,106016,106432,106513,106529,106929,106017,106721,105329,105761,105889,778263,107905,106161,106449,105953,105505,105969,106129,107009,105601,105857,106337,106225,106849,105889,58512,105473,105617,106641,105745,106529,106897,106785,106369},{103841,103761,114001,103713,103793,103825,104977,103377,104401,104145,104913,103505,106817,103361,103713,103744,108433,103281,107297,103313,104593,103457,105121,103537,103729,104897,104545,650694,104593,105009,105680,64208,106961,104049,599157,105297,62881,104577,103873,104385,104673,104625,104577,104641,104256,104881,105105,104593,103681,104641},{103473,103728,103937,104417,103537,103649,103889,103825,103537,104129,103761,103617,74593,103713,103568,103713,103745,103697,103873,103633,103681,103473,103585,103601,104081,103697,103601,103729,103537,103489,103521,103857,103680,103505,103841,103473,103745,103681,103505,103601,81377,103809,103537,103425,103441,103552,103536,103553,103505,103761},{104673,105105,104481,106353,106449,106641,107441,106849,110833,106321,107297,105937,104881,104609,104337,104561,104753,104065,105841,104016,104688,103953,103825,105729,104417,104401,104161,104769,105201,104721,104673,104081,104113,104353,104241,104449,104497,106177,105056,105200,106065,107217,104993,106401,104881,60929,104001,104225,106129,105153},{78113,104497,103825,105313,104033,104289,103505,103488,104080,104753,104705,104113,104913,104577,104145,104753,104081,104017,104289,106369,104817,104929,105489,103937,104145,104241,103665,104512,104929,104689,103521,103633,103681,104737,104401,104081,103713,77633,106577,106113,106161,106097,104769,104497,104720,103952,104017,104753,104785,104273}};t={{43040,36352,35936,35136,35968,35104,34880,36480,33792,34848,35392,35072,34944,35776,35040,35712,35200,35360,34912,34816,36864,40640,35392,35296,34752,35424,35232,35104,35168,35744,34784,36352,35392,35136,35680,35296,35936,35200,34976,35168,35072,35488,35008,35936,39200,36320,35392,35072,35328,34848},{42944,36160,36096,36896,37312,35424,35264,36320,34272,36032,43872,35968,35584,35168,36384,35712,35968,36416,35424,35712,35936,35456,36608,38176,36736,35776,35648,35552,36832,36192,36160,37024,36000,38944,36544,35552,35872,36096,36064,34976,35360,35808,35456,36800,35520,36576,35168,35808,36000,34272},{41216,35360,35264,35424,35168,35168,40576,35392,35424,35136,35392,35328,35328,34336,35296,35584,35424,35616,35040,34912,34304,35168,35456,35424,35264,34816,35360,35424,34944,35264,42272,35488,35264,34400,35296,35296,35328,35424,34880,35168,35072,35168,34848,35328,35328,35232,35040,35520,35168,34976},{41728,34944,35232,35200,35456,36480,35168,34720,35328,35104,35904,34944,35232,40608,35104,37024,35328,35648,35584,35552,35296,34880,35488,35680,35008,35168,35072,35392,35360,35136,33920,35552,35328,35200,35232,35072,37632,35328,35200,34688,35136,36352,35232,34912,35008,35072,34720,35264,34944,35072},{45920,38400,37824,36288,37632,36864,36608,36320,35904,36128,41280,35872,35040,35744,35328,35552,35136,36320,36480,36448,37120,36640,36672,36320,36448,35904,35904,36608,37440,36864,36672,36768,36512,40512,36096,37088,39392,37504,36512,36192,36608,36576,36736,36192,35904,36960,36320,35232,35552,35552}};ow={{110305,111569,110225,110065,109121,109457,108785,109361,109905,110241,109761,110161,109681,110065,109473,110049,110001,110480,110737,111025,111185,110225,111041,109569,109921,109873,782295,112609,110577,110737,110305,110241,110241,110097,111137,109937,109921,110609,110401,110881,109921,62608,109441,109793,110945,110529,110481,110897,111137,110609},{107937,107985,117873,107841,107921,108129,109153,107281,108417,108161,109073,107713,110913,107889,107633,107872,112641,107297,111361,107937,108705,107745,109313,107665,107697,109169,108689,655030,108977,109393,110208,68161,111249,108081,603381,109393,66833,108673,107841,108401,109217,108785,108721,108881,108400,109089,109409,108801,107857,108929},{107633,107600,108097,108369,107569,107777,107905,107809,107473,108257,107585,107633,78529,108289,107584,107681,107505,107521,107857,107809,107505,107665,107665,107553,108193,107905,107937,107665,107601,107793,107585,107825,107920,107537,107809,107505,107601,107681,107729,107473,85361,107889,107489,107393,107489,107760,107665,107617,107457,107777},{108817,108977,108385,110433,110929,110801,111569,111009,114945,110609,111665,110097,109137,108689,108625,108945,109361,108321,110129,108113,108608,108097,107937,109601,108545,108449,108049,108849,109041,108817,108673,108161,108161,108289,108193,108657,108273,110225,109072,109201,110337,111313,109073,110497,108865,64961,107873,108097,110017,109105},{82353,108721,108289,109649,108305,108465,107473,107809,108416,108849,108849,108241,109137,108929,108545,108993,108113,107921,108401,110577,109425,109089,109809,108337,108353,108305,107761,108464,108929,108945,107857,107649,107729,109073,108561,108385,107777,81633,110785,110561,110753,110353,109265,109009,108945,108080,108145,108705,109057,108353}};tw={{71329,46512,42560,42001,42272,42161,42496,44208,43841,44800,44128,45105,44064,44849,45760,44080,47329,46752,43905,44320,44208,43905,43120,43856,46321,43728,43745,43872,44144,44225,44352,46161,46000,44720,44369,45744,44497,43856,44208,47105,43712,43649,44176,43344,45105,44912,46032,46849,45552,45169},{83313,47792,44032,44977,43648,45713,42608,44992,46769,44224,45201,44800,47200,46561,43600,46417,44848,46080,45649,45152,45521,43872,43840,43585,44384,43793,46576,48416,44545,44048,45825,44976,45984,46129,43664,44592,45665,45904,47649,44928,46672,45793,46080,46417,45360,45024,45985,48192,44657,48592},{73968,46609,47152,42257,42224,41952,42001,43984,44081,44352,44144,47169,43808,45152,43857,43968,43729,43712,44336,45393,43968,44161,44336,44448,43649,47712,43633,44240,43536,43841,43072,43568,45201,42960,43665,44016,44112,44897,46672,43713,43792,43376,44689,44144,43632,44193,44528,43841,48224,43520},{65377,43664,43793,42496,42384,42289,42864,44561,44160,49136,44001,45616,44017,43760,45680,43777,44032,43873,44560,44960,44401,44112,43904,43777,43744,43857,44272,45856,44017,43712,44161,44560,43616,43265,46832,43873,43424,43936,44209,43360,44016,43505,43776,43953,43584,45744,44001,45184,44016,43488},{73408,46129,45488,45200,44145,47088,43473,45360,47664,47505,44992,44113,44304,43616,44049,46256,43553,44464,44912,45985,47184,45297,45424,46176,44577,45856,46257,54240,49697,45584,45520,46721,44608,46241,47008,46608,46497,44592,47521,48368,45376,44753,45056,45233,46384,44960,46033,44256,45921,44560}};st[x_]:=N[{Median[Flatten[x]],Quantile[Flatten[x],1/4],Quantile[Flatten[x],3/4]}/1000]; +{st[o],st[t],N[Median[Flatten[o]]/Median[Flatten[t]]],N[Median[MapThread[Median[#1]/Median[#2]&,{o,t}]]],st[ow],st[tw],N[Median[Flatten[ow]]/Median[Flatten[tw]]]} \ No newline at end of file diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/spin_posthoc.wl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/spin_posthoc.wl new file mode 100644 index 0000000..04c10bd --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/spin_posthoc.wl @@ -0,0 +1 @@ +st[x_]:=N[{Median[x],Quantile[x,1/4],Quantile[x,3/4]}/1000];{{"rmsnorm_1x2048",st[{17537,16880,16624,16752,16560,16608,17025,16656,16624,16592,16800,16688,16561,16784,16592,16640,16576,16608,16529,16656,16896,16688,16704,16688,16609,16656,16592,16784,16592,16720,16545,16592,16576,16528,16752,16640,16705,17312,16912,16640,17744,17776,16865,16880,17456,16896,16688,17168,16928,16544,17648,17104,16816,17825,16976,16960,16672,17184,16608,16721,16928,16592,17200,16512,16480,16961,17872,16640,16736,16512,16640,16769,16832,17520,16848,16768,16816,16705,16624,16752,16496,16656,16688,16641,17312,16496,16944,16624,17616,16737,16656,16736,16768,16736,16608,16705,16720,16768,16672,37824,16784,16592,16672,16656,16705,16736,16784,16784,16640,17088,16577,17184,16736,16640,16688,16576,16529,16656,16592,16704,16592,16560,17217,16480,17360,16688,16688,16720,16657,16656,16672,16656,16768,16672,16753,16688,16656,16720,16592,16704,16721,16576,16576,16656,16688,16704,16705,16576,16640,16992}],N[Median[{17537,16880,16624,16752,16560,16608,17025,16656,16624,16592,16800,16688,16561,16784,16592,16640,16576,16608,16529,16656,16896,16688,16704,16688,16609,16656,16592,16784,16592,16720,16545,16592,16576,16528,16752,16640,16705,17312,16912,16640,17744,17776,16865,16880,17456,16896,16688,17168,16928,16544,17648,17104,16816,17825,16976,16960,16672,17184,16608,16721,16928,16592,17200,16512,16480,16961,17872,16640,16736,16512,16640,16769,16832,17520,16848,16768,16816,16705,16624,16752,16496,16656,16688,16641,17312,16496,16944,16624,17616,16737,16656,16736,16768,16736,16608,16705,16720,16768,16672,37824,16784,16592,16672,16656,16705,16736,16784,16784,16640,17088,16577,17184,16736,16640,16688,16576,16529,16656,16592,16704,16592,16560,17217,16480,17360,16688,16688,16720,16657,16656,16672,16656,16768,16672,16753,16688,16656,16720,16592,16704,16721,16576,16576,16656,16688,16704,16705,16576,16640,16992}]/Median[{16064,11008,11648,10240,10464,10272,10240,11136,10016,10080,16800,10176,10048,11136,10560,10432,10624,10432,10368,10496,10816,10656,10624,10592,10624,10496,9248,9792,10848,10624,10368,10592,10464,9824,10432,11072,10272,10528,10272,10272,10624,10688,10688,10432,9952,10432,10464,10432,9728,9248,22912,10912,10624,10176,10176,10016,10336,10176,10688,10496,10528,10400,10208,10368,10816,10176,10592,10528,11328,10528,10720,10656,10560,10432,10144,10304,10848,11136,11104,11616,11392,10400,10624,10400,9216,10080,10272,10848,11072,10592,10624,10304,10496,10496,10656,10656,10944,10944,10528,11168,15616,11264,10304,11648,11424,10368,12000,10880,9568,9472,9120,9568,9536,10496,10816,9504,10080,10016,9952,10144,10528,11200,11328,10560,8768,10240,10112,10272,10976,11232,11424,10528,10848,10560,10816,10304,10656,10752,10688,11232,10720,10496,9792,10048,10432,11168,11616,11168,10656,11712,16256,11648,10368,11424,10624,9920,10688,11616,10304,10400,10304,10304,10336,10208,10208,9888,10496,10176,10400,10880,10496,10560,16224,10272,10400,10656,10208,10208,10656,10432,10272,10368,9984,9984,10144,10528,10400,10624,10528,10112,9952,10176,10016,10112,9888,11040,10304,10112,10272,10048,17408,11552,9408,10432,10336,10336,10176,10176,10272,10208,10048,10144,10080,10176,10112,10240,10464,10048,10080,10496,10592,10272,10720,10176,10080,9952,9376,10144,10208,10176,10400,10656,11200,10176,10080,10048,10208,10464,10240,10528,10560,10080,10464,10400,10400,10080,10176,10496,11200,10624}]]},{"rmsnorm_64x2048",st[{23184,26352,24785,24928,25040,25024,23616,24401,24560,20880,24096,21296,21873,22129,21024,20544,20672,20832,20720,22016,23009,23072,21968,22400,23200,23440,21008,20033,21760,21744,22752,22256,20256,19936,23793,23633,24400,22736,22544,23424,23664,24193,24368,22784,22320,21776,22033,24369,22544,20592,20656,20896,21520,24368,24016,22065,23617,24064,23600,24720,23120,21472,22769,23120,22608,22512,20656,21040,21808,22881,25344,24624,24096,24368,23760,25105,25680,22384,25936,20992,22096,23601,23280,22512,21808,21040,20704,21024,21152,23393,22416,20976,20800,20768,22640,20944,21072,21280,21569,24769,20336,20144,21089,20673,19968,20768,20208,20688,20592,20320,20688,20192,20240,20657,20177,21184,20224,21104,21168,20272,20192,20048,20432,20928,20833,20065,20784,21008,20704,21824,20896,21040,21232,21184,21409,20864,22608,21792,23088,21568,23152,22241,20912,22352,21216,21024,20576,20992,20768,22288}],N[Median[{23184,26352,24785,24928,25040,25024,23616,24401,24560,20880,24096,21296,21873,22129,21024,20544,20672,20832,20720,22016,23009,23072,21968,22400,23200,23440,21008,20033,21760,21744,22752,22256,20256,19936,23793,23633,24400,22736,22544,23424,23664,24193,24368,22784,22320,21776,22033,24369,22544,20592,20656,20896,21520,24368,24016,22065,23617,24064,23600,24720,23120,21472,22769,23120,22608,22512,20656,21040,21808,22881,25344,24624,24096,24368,23760,25105,25680,22384,25936,20992,22096,23601,23280,22512,21808,21040,20704,21024,21152,23393,22416,20976,20800,20768,22640,20944,21072,21280,21569,24769,20336,20144,21089,20673,19968,20768,20208,20688,20592,20320,20688,20192,20240,20657,20177,21184,20224,21104,21168,20272,20192,20048,20432,20928,20833,20065,20784,21008,20704,21824,20896,21040,21232,21184,21409,20864,22608,21792,23088,21568,23152,22241,20912,22352,21216,21024,20576,20992,20768,22288}]/Median[{10944,10528,10240,10304,10240,10144,10016,10400,11008,9440,10400,10272,10144,10368,10112,10400,10720,10432,9344,10336,10688,10944,10112,10368,10368,10528,10112,18080,10112,10208,9632,9408,10880,9248,10528,10272,10304,10272,10496,10976,10144,10144,10208,10560,10336,10368,10400,10176,10272,9760,11296,10848,10752,10496,10400,10496,13024,10912,10336,10496,10208,10656,10688,10656,10176,11072,10176,10912,10304,10432,10656,10880,10208,10176,10848,10208,10176,10880,10112,9440,10080,4224,10368,10400,10688,10464,10432,10496,10464,10720,10656,10688,10368,10528,10336,10528,10464,10592,10400,9824,11808,10208,9600,9504,10688,11456,9312,11264,9376,10304,10368,10464,10272,10656,10240,11072,9760,10560,15776,10720,10880,9696,10976,10272,10624,10400,10176,10464,10240,10432,10272,11488,11776,10784,10368,11808,10368,10944,11232,10368,10944,10400,9536,10496,9504,10912,10368,10304,11552,10208,12000,10464,10496,9440,9568,9504,10272,10400,10240,10336,9920,10080,10336,10368,10400,10176,10656,10656,11424,10464,10400,10496,10624,10528,10208,10272,10336,10432,10240,10272,10144,10560,10432,10496,10528,10560,12352,9824,9632,11680,10432,12416,10368,12096,10368,10144,10400,15456,10336,10144,11808,10784,10496,10336,10368,10336,10144,9888,10144,9024,11648,10112,10272,10464,10528,11232,10368,10080,10336,10496,10912,10240,10912,10272,10560,16192,10304,9952,10048,10176,10016,10240,10176,10368,10560,10400,9344,10304,4800,9920,9824,10112,9600,9920,10592,9664,9440,10048,10176,10432}]]},{"rope_32x128",st[{6544,6656,6769,6688,7120,6432,6400,6448,6528,7328,6432,6480,7152,6689,6400,7024,6528,6736,6560,6336,7008,6640,6432,6816,6432,6336,7152,6448,6352,6672,6320,7088,6512,6352,6528,6288,6800,6432,6432,6448,6288,7168,6480,6352,7264,6577,6576,6896,6544,6400,6448,7104,6528,6416,7024,6512,6464,6464,6673,6448,6688,7152,6720,6480,6576,6624,6672,6512,6400,7313,6480,6416,6544,6336,6480,6336,7328,6480,6608,7312,7008,6528,6656,6496,6384,7328,6624,6368,7296,6512,6417,6800,6592,6656,6480,6656,6432,7216,6640,6416,6496,6640,6560,6608,6385,6400,6560,8112,6528,6592,6528,7248,7280,6528,6368,6465,6432,6464,6368,10096,6496,6512,6352,6608,7312,7185,6512,6624,6512,6352,6496,6400,6592,6528,6352,6496,7569,6400,6528,6576,6592,6576,7408,6528,6416,6608,6704,6577,6416,6576}],N[Median[{6544,6656,6769,6688,7120,6432,6400,6448,6528,7328,6432,6480,7152,6689,6400,7024,6528,6736,6560,6336,7008,6640,6432,6816,6432,6336,7152,6448,6352,6672,6320,7088,6512,6352,6528,6288,6800,6432,6432,6448,6288,7168,6480,6352,7264,6577,6576,6896,6544,6400,6448,7104,6528,6416,7024,6512,6464,6464,6673,6448,6688,7152,6720,6480,6576,6624,6672,6512,6400,7313,6480,6416,6544,6336,6480,6336,7328,6480,6608,7312,7008,6528,6656,6496,6384,7328,6624,6368,7296,6512,6417,6800,6592,6656,6480,6656,6432,7216,6640,6416,6496,6640,6560,6608,6385,6400,6560,8112,6528,6592,6528,7248,7280,6528,6368,6465,6432,6464,6368,10096,6496,6512,6352,6608,7312,7185,6512,6624,6512,6352,6496,6400,6592,6528,6352,6496,7569,6400,6528,6576,6592,6576,7408,6528,6416,6608,6704,6577,6416,6576}]/Median[{43040,36352,35936,35136,35968,35104,34880,36480,33792,34848,35392,35072,34944,35776,35040,35712,35200,35360,34912,34816,36864,40640,35392,35296,34752,35424,35232,35104,35168,35744,34784,36352,35392,35136,35680,35296,35936,35200,34976,35168,35072,35488,35008,35936,39200,36320,35392,35072,35328,34848,42944,36160,36096,36896,37312,35424,35264,36320,34272,36032,43872,35968,35584,35168,36384,35712,35968,36416,35424,35712,35936,35456,36608,38176,36736,35776,35648,35552,36832,36192,36160,37024,36000,38944,36544,35552,35872,36096,36064,34976,35360,35808,35456,36800,35520,36576,35168,35808,36000,34272,41216,35360,35264,35424,35168,35168,40576,35392,35424,35136,35392,35328,35328,34336,35296,35584,35424,35616,35040,34912,34304,35168,35456,35424,35264,34816,35360,35424,34944,35264,42272,35488,35264,34400,35296,35296,35328,35424,34880,35168,35072,35168,34848,35328,35328,35232,35040,35520,35168,34976,41728,34944,35232,35200,35456,36480,35168,34720,35328,35104,35904,34944,35232,40608,35104,37024,35328,35648,35584,35552,35296,34880,35488,35680,35008,35168,35072,35392,35360,35136,33920,35552,35328,35200,35232,35072,37632,35328,35200,34688,35136,36352,35232,34912,35008,35072,34720,35264,34944,35072,45920,38400,37824,36288,37632,36864,36608,36320,35904,36128,41280,35872,35040,35744,35328,35552,35136,36320,36480,36448,37120,36640,36672,36320,36448,35904,35904,36608,37440,36864,36672,36768,36512,40512,36096,37088,39392,37504,36512,36192,36608,36576,36736,36192,35904,36960,36320,35232,35552,35552}]]},{"swiglu_5632",st[{6000,6080,6624,6592,6896,6768,6368,6544,6784,6592,6880,6912,6976,6753,6656,6432,6176,6032,6176,6368,6608,6432,6544,6544,7056,6640,6176,6144,6032,6048,6032,6080,6688,6720,6640,6816,6528,6656,6416,6448,6512,6592,6512,6736,6688,6192,6144,6128,5952,6016,6528,6160,6656,6336,6336,6160,6416,6560,6208,6384,6192,6416,6352,6640,6448,6336,6240,6672,6480,6304,6208,6496,6304,6144,6352,6784,6240,6449,6032,6192,6224,6688,6544,6256,6672,6784,6224,6128,6112,6288,6432,6256,6272,6224,6192,6096,6305,6160,6096,6192,6752,6688,6848,6688,6688,6705,6576,6624,7360,6016,6544,7504,6032,6368,7152,6145,7520,6208,5968,7040,6256,6800,6192,6928,6080,6129,6224,6032,7040,6128,6016,6672,6112,7040,6048,6817,6192,6096,6032,6096,7264,6144,6624,6080,6176,6065,7552,6496,6096,6912}],N[Median[{6000,6080,6624,6592,6896,6768,6368,6544,6784,6592,6880,6912,6976,6753,6656,6432,6176,6032,6176,6368,6608,6432,6544,6544,7056,6640,6176,6144,6032,6048,6032,6080,6688,6720,6640,6816,6528,6656,6416,6448,6512,6592,6512,6736,6688,6192,6144,6128,5952,6016,6528,6160,6656,6336,6336,6160,6416,6560,6208,6384,6192,6416,6352,6640,6448,6336,6240,6672,6480,6304,6208,6496,6304,6144,6352,6784,6240,6449,6032,6192,6224,6688,6544,6256,6672,6784,6224,6128,6112,6288,6432,6256,6272,6224,6192,6096,6305,6160,6096,6192,6752,6688,6848,6688,6688,6705,6576,6624,7360,6016,6544,7504,6032,6368,7152,6145,7520,6208,5968,7040,6256,6800,6192,6928,6080,6129,6224,6032,7040,6128,6016,6672,6112,7040,6048,6817,6192,6096,6032,6096,7264,6144,6624,6080,6176,6065,7552,6496,6096,6912}]/Median[{14560,12800,12832,12576,12672,11744,13312,13248,12512,12192,13376,13248,12640,12192,12128,12832,12384,11968,12768,14880,12224,12832,12384,12288,11712,13120,12288,12096,12896,12576,11904,12896,12480,12000,12928,12192,12096,12960,12320,12096,12896,13120,12384,12160,12832,12288,12096,12832,12320,12576,14976,11680,13056,12032,13344,12192,12640,11776,13184,12256,12192,12256,12448,12928,12384,12096,12896,13056,19616,14752,12256,12832,10560,11776,12256,11744,12896,11968,12192,11872,13472,13024,11968,12416,12256,11936,12192,11168,11808,12896,12384,12064,11776,12224,13056,13152,12384,12896,12032,11712,14720,12896,12416,12032,12960,12064,12160,13376,12160,11744,12000,12832,12256,11808,12832,12160,10752,12224,12448,14624,12384,12064,11680,12608,12832,12000,11968,12832,12480,12320,12224,12032,12896,12032,11904,12320,12064,11584,12864,12064,16832,12160,11936,12640,12032,11904,12288,12832,12192,11776,14400,11872,12832,13024,13472,12320,12064,12832,12416,12064,12000,12896,12448,12544,11616,12064,12128,13056,11936,15840,12224,12128,12992,12960,12992,12416,10848,12448,11936,12704,12448,11712,13088,11840,13344,12544,12512,11776,12672,11744,13152,12832,12448,13952,12640,12480,11872,12480,12160,12896,15168,13152,12896,14528,13024,11744,12832,12288,11648,12288,12160,12864,12704,12128,12032,12064,12832,12352,12096,14528,12096,12000,11936,12192,12544,12416,12480,13504,12448,12288,12320,11616,12608,13024,12672,13056,11776,11680,13280,13120,13184,12800,13088,12512,12992,12256,11776,12960,12640,12512}]]},{"swiglu_131072",st[{15664,14881,15360,16096,15600,15600,15376,16544,16704,15344,15745,16384,15136,15088,15569,15408,15456,15344,14512,15824,15408,15984,14624,15856,16336,15248,16256,16080,15424,14704,14736,15200,15440,15233,26048,14448,14864,15360,15137,16464,15376,14544,14320,14737,14592,15440,14784,14656,14288,14897,16705,16352,18208,17664,18736,17921,17920,18272,17584,18976,18305,17920,18176,17200,17680,17361,17392,18288,17568,17104,17057,17856,18576,17328,17504,17169,17008,16944,16880,17248,17728,18897,17824,17136,17152,16832,16944,16609,16688,17280,17024,16832,16656,16945,16864,17168,17584,16512,16785,17376,17889,18912,17888,17104,17216,17232,18001,18064,17328,17696,18096,17345,17280,17984,17936,18608,17008,17601,17680,16816,16672,17680,17440,18128,17328,17504,17168,17280,17457,18288,17648,17504,17376,16720,16576,17296,18640,18464,21265,18336,28048,19584,18720,18561,19360,19328,18448,20144,18944,19601}],N[Median[{15664,14881,15360,16096,15600,15600,15376,16544,16704,15344,15745,16384,15136,15088,15569,15408,15456,15344,14512,15824,15408,15984,14624,15856,16336,15248,16256,16080,15424,14704,14736,15200,15440,15233,26048,14448,14864,15360,15137,16464,15376,14544,14320,14737,14592,15440,14784,14656,14288,14897,16705,16352,18208,17664,18736,17921,17920,18272,17584,18976,18305,17920,18176,17200,17680,17361,17392,18288,17568,17104,17057,17856,18576,17328,17504,17169,17008,16944,16880,17248,17728,18897,17824,17136,17152,16832,16944,16609,16688,17280,17024,16832,16656,16945,16864,17168,17584,16512,16785,17376,17889,18912,17888,17104,17216,17232,18001,18064,17328,17696,18096,17345,17280,17984,17936,18608,17008,17601,17680,16816,16672,17680,17440,18128,17328,17504,17168,17280,17457,18288,17648,17504,17376,16720,16576,17296,18640,18464,21265,18336,28048,19584,18720,18561,19360,19328,18448,20144,18944,19601}]/Median[{14496,12256,11584,11808,11872,12896,12224,11872,12896,13056,12288,11904,12896,12096,12064,12032,11712,11840,11936,13024,12128,11904,12896,13056,12032,12128,12864,12320,12000,12896,12224,12000,12832,5472,11936,11808,11936,11808,13280,12160,12032,12768,12032,11808,12544,12192,11936,11872,11616,12128,13408,12448,12224,11808,12512,12160,12864,12064,12864,12288,11968,12160,11904,12032,11712,12416,11840,12000,11744,12096,11968,11936,12192,12608,12384,11872,13312,12256,11904,13024,12320,12064,12864,12128,11616,12320,11968,11968,12128,12800,12096,12160,12640,12096,12896,12128,12096,12416,12864,11776,13440,12960,12032,11712,12064,11648,12256,12544,12288,12224,11872,12352,11872,13056,12352,13408,12128,12416,12896,12096,12256,11968,11840,16832,13152,12288,11840,11968,11936,12000,12096,12896,12224,12000,12928,12224,11808,12416,11936,12288,11808,12384,11744,12256,12064,12224,12064,11744,12192,12000,14432,12768,12704,11936,12960,13088,13664,12672,12032,12864,13600,13568,12608,12480,12128,12832,17248,12032,12864,12736,11712,12480,12704,12064,12832,13152,13152,12672,12608,12448,12032,12960,12256,12384,12416,12160,11808,12416,12128,12928,12320,12256,11744,12928,11904,12576,12128,11840,11936,11840,14912,11808,12960,13056,13024,13184,12320,12128,12864,12192,12512,11808,12960,12256,11808,12896,12096,12160,12992,13632,12384,11712,12352,12096,13440,12640,13184,12384,12160,12416,12192,12320,12032,12128,12128,12192,16736,12416,11808,12576,11936,12928,12480,12192,12832,12128,12096,11680,12224,11968}]]},{"gqa_f32_32q8kv_hd128_ctx2048",st[{399636,491700,444116,489924,433044,504901,418692,405364,425860,467956,421524,466308,403011,616534,541621,399763,415556,481524,444547,457492,411011,436164,505380,409444,403427,410516,406995,472900,407427,461220,417924,502164,408356,391731,399812,487140,465092,404692,488740,449556,435988,392164,468036,452500,461908,875896,891752,850807,400260,875735,443491,439156,478388,435556,478261,425092,455204,484516,480020,468948,476788,475860,464820,481444,490932,484660,478469,466772,488004,477236,475076,481365,482437,480324,481940,487940,466228,439780,386051,392259,394452,401683,404211,383988,395427,385636,386755,393396,401043,394371,383732,387299,385700,394195,391044,398004,387491,382532,389411,380707,389844,394531,389475,379203,386899,389011,378963,380964,381764,380755,386291,380756,387300,390643,388195,392068,395875,407443,393443,384868,392227,1383932,382740,388132,392004,386820,389412,385268,379652,383043,463604,426100,383203,386403,380579,378243,380979,382644,381395,386836,389523,384036,386499,383331,472964,378003,388340,395843,385715,384995}],N[Median[{399636,491700,444116,489924,433044,504901,418692,405364,425860,467956,421524,466308,403011,616534,541621,399763,415556,481524,444547,457492,411011,436164,505380,409444,403427,410516,406995,472900,407427,461220,417924,502164,408356,391731,399812,487140,465092,404692,488740,449556,435988,392164,468036,452500,461908,875896,891752,850807,400260,875735,443491,439156,478388,435556,478261,425092,455204,484516,480020,468948,476788,475860,464820,481444,490932,484660,478469,466772,488004,477236,475076,481365,482437,480324,481940,487940,466228,439780,386051,392259,394452,401683,404211,383988,395427,385636,386755,393396,401043,394371,383732,387299,385700,394195,391044,398004,387491,382532,389411,380707,389844,394531,389475,379203,386899,389011,378963,380964,381764,380755,386291,380756,387300,390643,388195,392068,395875,407443,393443,384868,392227,1383932,382740,388132,392004,386820,389412,385268,379652,383043,463604,426100,383203,386403,380579,378243,380979,382644,381395,386836,389523,384036,386499,383331,472964,378003,388340,395843,385715,384995}]/Median[{236928,237184,238208,237344,235552,236160,239520,238496,237344,236288,235200,238304,236512,235488,313792,242400,237344,237504,235392,242656,235584,233856,235520,234528,234112,236096,236480,237472,235232,235168,234432,236448,234720,235712,235648,234336,234272,234176,235520,236320,235968,240000,235424,269600,239488,272192,278400,273728,236256,236352,242272,238016,235648,236640,234528,233696,234528,238080,237280,237216,235744,235328,235648,234368,233632,237408,234560,233600,233376,234624,235648,237664,234400,235648,234464,237376,234624,237600,236448,234688,237280,237760,237440,236000,235424,235456,236672,242880,236480,236576,235712,235776,233952,237568,235328,236704,235680,236736,235776,234560,239648,238656,235936,239520,237952,235104,235104,235392,236576,235552,234848,234880,236256,235040,234560,235616,233632,236512,235712,236288,236672,235776,234432,236384,236480,235136,236352,233856,235264,236576,236448,235456,233600,234432,235680,234944,236480,236544,234368,236160,234528,234944,233504,233728,236672,234848,235392,236576,233984,237312,239840,239072,237056,238016,240640,236160,236704,236288,234304,235584,236480,236544,236256,235008,235200,235488,235456,238464,237632,235360,233760,236128,237280,238400,236288,237056,236288,238112,238336,235648,236192,237472,237472,238976,237216,234432,235680,234272,235104,236512,236320,237824,238336,236224,236480,234560,234752,236288,234336,235424,237824,235264,237248,235104,236512,237600,235296,233856,237472,237472,234688,235392,235104,233856,237312,236512,236576,235456,235456,236640,238112,237312,237536,237408,234624,237216,237408,238208,234784,237408,236032,237952,237984,233984,236960,234720,236416,237152,235328,235456,234624,238304,235520,234496,234656,237056,236352,234560,234496,234144}]]},{"gqa_f32_32q4kv_hd64_ctx2048",st[{463236,442612,402995,394564,378163,438164,447748,379940,404307,376675,411219,419284,383603,399060,352355,392307,349091,368515,373715,374580,408307,386755,443620,446916,429028,410500,399043,449412,439668,428004,380579,393619,432580,435204,436068,416916,387379,368195,377956,365012,351491,360484,358004,366964,374259,371395,436020,441844,360835,401763,349267,351572,347620,347491,344691,344051,337507,350979,365763,340563,350515,352963,364995,356195,351907,352371,353331,352275,349971,349427,350147,344131,346707,347267,355219,347059,345443,351619,344499,342611,343459,344691,343443,342627,343907,339507,344355,359715,348675,351444,349812,347075,350707,431444,704310,355971,368579,494692,489524,355299,343427,344387,344563,347555,381508,379748,379587,378611,364291,360275,359171,358275,356195,357491,365235,353219,355379,357251,351027,349683,345363,349267,349155,349491,362739,348755,344643,342691,348179,344963,353587,355331,353555,345587,352307,343587,341731,359363,352771,349187,350451,355347,349875,352275,346867,344771,362243,359059,353139,344995}],N[Median[{463236,442612,402995,394564,378163,438164,447748,379940,404307,376675,411219,419284,383603,399060,352355,392307,349091,368515,373715,374580,408307,386755,443620,446916,429028,410500,399043,449412,439668,428004,380579,393619,432580,435204,436068,416916,387379,368195,377956,365012,351491,360484,358004,366964,374259,371395,436020,441844,360835,401763,349267,351572,347620,347491,344691,344051,337507,350979,365763,340563,350515,352963,364995,356195,351907,352371,353331,352275,349971,349427,350147,344131,346707,347267,355219,347059,345443,351619,344499,342611,343459,344691,343443,342627,343907,339507,344355,359715,348675,351444,349812,347075,350707,431444,704310,355971,368579,494692,489524,355299,343427,344387,344563,347555,381508,379748,379587,378611,364291,360275,359171,358275,356195,357491,365235,353219,355379,357251,351027,349683,345363,349267,349155,349491,362739,348755,344643,342691,348179,344963,353587,355331,353555,345587,352307,343587,341731,359363,352771,349187,350451,355347,349875,352275,346867,344771,362243,359059,353139,344995}]/Median[{175232,171168,173248,171040,172032,172576,171648,170592,171744,172544,171520,172608,170528,172672,172640,170912,170528,172736,170816,171680,170976,171104,172736,170880,173024,172032,171136,171424,174848,170080,170144,171072,172864,172192,172736,171520,170816,170720,173024,172064,171744,171200,171968,171904,172672,172864,171936,172032,171200,171872,175584,172608,173024,171840,171936,171872,170688,169856,173056,172192,171296,172000,171168,169760,170784,171136,171264,170816,170976,168160,172160,170848,169984,170432,169280,171872,169088,171296,175712,170112,169056,169088,171296,171808,172032,172224,170176,170176,169952,172160,169984,171744,172000,172992,172256,171136,172000,171104,171104,171360,172128,171936,171008,173056,170112,171168,171104,170976,173088,171456,170080,170336,171424,169216,172032,170016,170880,171808,170528,170080,171680,170080,170208,170144,170848,170912,172064,169888,172736,170112,170816,170976,170144,171456,171584,169568,169888,172320,172704,172160,171008,171648,171808,169824,172128,171328,170432,170784,169760,171936,174976,172160,171968,173920,171744,174624,171616,171200,172224,172832,173024,170816,172864,172512,171872,171040,171680,170752,170912,172800,171840,172864,172704,171136,171776,170432,169920,171168,174912,171296,171040,170656,171456,171040,171904,172768,171968,171872,172320,171360,172416,169792,171072,171200,173280,169344,171200,171392,170816,172608,174464,170944,170400,171616,171232,172736,172608,172000,173536,170688,171840,172896,170944,170464,170240,173536,172160,170656,172896,170880,172960,173888,172896,172800,172864,173696,172000,171520,176640,170560,172672,172640,172800,172512,171936,172384,171264,172896,171872,172800,170688,172640,171648,171744,170208,171328,170464,171776,171808,171776}]]},{"gqa_rows_f32_32q8kv_hd128_m256",st[{1164971,1214779,1118602,1086090,1486493,1269850,1060073,1070281,1225963,1193067,1229083,1037513,1124683,1574686,1276428,1152810,1171211,1101528,1152826,1207482,1139642,1061720,1071849,1227867,1197019,1153547,1142042,1097833,1254171,1299291,1438365,1258568,1294636,1249484,1307916,1202107,1209499,1165018,1262939,1254571,1246522,1279020,1134330,1187194,1257083,1275803,1210282,1177131,1125626,1056761,1035226,1060009,1085258,1016937,989225,1084873,1003257,1115977,1343243,1021848,1032504,1079017,1143067,1024009,1004201,2257363,1371692,1200506,1084905,1089801,1093594,1008329,1099258,1055785,1154538,1357436,1059017,1062089,1027513,994217,1052906,1149594,1038761,1061161,1099098,1033929,1090457,1062137,1041387,1169322,1048457,1085546,1223291,1258173,1071289,1218523,1028345,1069434,1077482,1036873,1042362,1108714,1236619,1018360,1084410,1146809,1068857,1098202,1146777,1381275,1305564,1105161,1105451,1092057,1082329,1015304,1135050,1083337,1096073,974472,1084185,1094202,997880,1020648,1040457,1047577,1030921,1024344,1033880,1028921,1024393,1125690,1059641,1020874,1018553,986632,1042104,1015945,1083131,1047642,1122506,1071883,994168,1118489,1095226,1123386,1085881,1148587,1124329,985482}],N[Median[{1164971,1214779,1118602,1086090,1486493,1269850,1060073,1070281,1225963,1193067,1229083,1037513,1124683,1574686,1276428,1152810,1171211,1101528,1152826,1207482,1139642,1061720,1071849,1227867,1197019,1153547,1142042,1097833,1254171,1299291,1438365,1258568,1294636,1249484,1307916,1202107,1209499,1165018,1262939,1254571,1246522,1279020,1134330,1187194,1257083,1275803,1210282,1177131,1125626,1056761,1035226,1060009,1085258,1016937,989225,1084873,1003257,1115977,1343243,1021848,1032504,1079017,1143067,1024009,1004201,2257363,1371692,1200506,1084905,1089801,1093594,1008329,1099258,1055785,1154538,1357436,1059017,1062089,1027513,994217,1052906,1149594,1038761,1061161,1099098,1033929,1090457,1062137,1041387,1169322,1048457,1085546,1223291,1258173,1071289,1218523,1028345,1069434,1077482,1036873,1042362,1108714,1236619,1018360,1084410,1146809,1068857,1098202,1146777,1381275,1305564,1105161,1105451,1092057,1082329,1015304,1135050,1083337,1096073,974472,1084185,1094202,997880,1020648,1040457,1047577,1030921,1024344,1033880,1028921,1024393,1125690,1059641,1020874,1018553,986632,1042104,1015945,1083131,1047642,1122506,1071883,994168,1118489,1095226,1123386,1085881,1148587,1124329,985482}]/Median[{95616,90272,93056,91936,93312,90560,95808,90880,93216,91776,93312,92736,91616,92512,91360,90304,92992,91296,91616,91296,92160,92256,90976,91008,90656,92480,91808,88640,90016,91392,90592,90240,93280,91552,90656,92800,90432,91328,92288,89888,90464,90752,91136,91040,91936,92288,92064,91296,92384,91872,95008,90816,92640,107776,92352,91712,91936,91104,90752,93120,91936,91904,91040,90816,90912,90592,93120,90912,90880,90464,90304,90496,91072,90688,90496,90432,91296,91584,92160,90176,89888,90080,90112,91616,91040,90432,91200,90976,90688,92128,90848,91136,90208,91968,89824,89536,90976,90752,90880,90880,91616,91520,91904,95488,92960,91072,90592,90752,90112,89920,90944,91744,92896,91872,90848,91040,90016,91872,93024,90144,91296,92000,91296,90976,90176,92032,91616,89984,90432,89792,90304,89344,90048,90240,90720,89920,90688,90208,90432,92736,91040,90368,88896,89184,91680,90208,91328,90112,91680,91072,94368,90368,93856,92064,90784,92768,91424,91808,90976,91520,91360,91232,92896,90400,91808,91104,90848,91072,90784,91648,92864,91104,90656,90880,92192,90048,91776,89984,90688,92960,90816,91456,91104,90496,91008,91488,90368,90688,90944,91520,91040,89824,92096,90112,89664,90368,90848,93088,91072,91008,100448,90528,90688,90784,91808,91840,92736,91296,89920,90208,94144,91072,91072,92128,90880,91168,91008,90880,90688,90144,91712,91072,90048,90848,90624,90912,89952,91200,90400,91072,92288,90816,89984,89344,90848,90560,90144,90528,91008,89472,91360,91616,88960,90720,91168,89888,90912,91040,91520,91168}]]},{"paged_bf16_32q8kv_hd128_ctx2048_bs16",st[{55665,56017,55057,56193,56625,55697,56513,56192,55248,54480,55344,55024,54768,55504,54848,55552,54864,55712,54657,55489,54209,55665,56417,55057,54881,53857,54609,55441,54896,54896,54480,55888,54224,55216,56208,55056,55008,54560,55168,54721,55489,53617,55089,54769,55569,55777,54465,54529,55377,55313,55649,55425,55329,56945,55072,56080,56672,55056,55840,55792,55793,57297,55793,57953,56817,56992,56368,56464,57632,55488,57889,55665,56721,56737,56625,56320,58416,56656,56656,57504,58001,56801,57313,56193,57201,57968,55760,57376,58656,56096,57329,57729,57425,56193,56016,56640,57440,57184,56864,57328,54752,54657,56513,54481,54769,54641,54001,54161,55265,55041,54993,54289,54801,54273,55089,55168,55440,55984,55408,53760,55776,55440,54624,55792,54833,55809,54849,55153,54689,54593,54513,55297,54177,54641,54113,55761,54816,54768,55280,56208,55536,54576,54592,54208,54688,55824,55536,55264,54481,55713}],N[Median[{55665,56017,55057,56193,56625,55697,56513,56192,55248,54480,55344,55024,54768,55504,54848,55552,54864,55712,54657,55489,54209,55665,56417,55057,54881,53857,54609,55441,54896,54896,54480,55888,54224,55216,56208,55056,55008,54560,55168,54721,55489,53617,55089,54769,55569,55777,54465,54529,55377,55313,55649,55425,55329,56945,55072,56080,56672,55056,55840,55792,55793,57297,55793,57953,56817,56992,56368,56464,57632,55488,57889,55665,56721,56737,56625,56320,58416,56656,56656,57504,58001,56801,57313,56193,57201,57968,55760,57376,58656,56096,57329,57729,57425,56193,56016,56640,57440,57184,56864,57328,54752,54657,56513,54481,54769,54641,54001,54161,55265,55041,54993,54289,54801,54273,55089,55168,55440,55984,55408,53760,55776,55440,54624,55792,54833,55809,54849,55153,54689,54593,54513,55297,54177,54641,54113,55761,54816,54768,55280,56208,55536,54576,54592,54208,54688,55824,55536,55264,54481,55713}]/Median[{33440,30784,29344,30592,29600,31232,29088,29504,31456,30624,31648,29600,29984,31616,31520,29824,30336,31872,29408,30592,31648,31712,29216,30080,31520,30208,30368,29088,29344,28544,30560,30656,30304,30592,28640,28480,29792,29888,30144,30432,29216,27968,32512,30688,32960,28000,28448,28032,30368,29472,32576,31264,29248,29920,29152,30432,29760,38144,30688,29408,29632,29888,29376,29952,29504,31328,29760,29728,29568,29728,30528,29632,31616,29184,29728,28256,29792,30400,29696,30496,29088,29696,28320,29472,34816,30432,29760,29856,31648,28896,28640,30304,29888,29728,31584,30048,28512,31584,31808,29664,33152,29664,30688,29696,29216,30976,30688,29312,29664,30560,29632,30752,29088,31936,31648,29152,30176,30624,29792,28544,29952,30016,28576,29344,32064,38368,30624,30656,30752,31872,31520,29856,29184,28800,30688,28768,30560,31712,30848,29856,29696,31264,30016,29408,29216,30464,29696,28672,32672,27904,34528,32416,30656,30496,31392,31616,30624,30112,29536,29568,30880,30752,30144,30752,30688,32384,29024,29760,29952,29280,28928,29728,30560,29696,29536,29152,29568,29536,29632,29728,31488,29376,29664,32064,30400,29664,30272,28736,29984,30176,29824,30912,30304,31360,36416,30688,30592,32992,28416,28576,35232,31744,31808,35712,30144,30272,31552,29888,30336,30720,30816,28896,29888,32256,28800,29696,29120,29632,29888,29696,29920,34080,30336,29440,28928,29152,29952,29344,31872,29152,29152,30336,29120,28864,29120,30240,29024,30272,28800,29056,29248,29824,29888,29280,28800,30976,30816,29600,29792,28736}]]}} \ No newline at end of file diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/swiglu_131072.wl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/swiglu_131072.wl new file mode 100644 index 0000000..41bb75a --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/swiglu_131072.wl @@ -0,0 +1,2 @@ +o={{110385,108897,110625,110897,112305,109025,112353,110689,110689,110145,111713,109985,109953,108737,110689,110497,111041,110065,109553,110993,109681,60592,109313,111425,110817,109232,108833,111745,113601,109745,109841,111441,111073,109649,110464,108929,109729,110769,110625,110257,109905,108417,108049,630854,107889,106881,108913,109889,90513,108465},{63216,109697,107264,107280,107121,106705,105825,106417,105457,107889,106097,107377,106369,106881,106593,107105,106112,69296,107665,107121,106913,107168,106465,108209,109105,108641,108561,110673,107649,108609,106449,107585,107376,108225,107313,107265,107937,107297,99089,107025,106529,107329,107713,106625,107745,107616,108129,107585,107713,108017},{106433,107153,107473,108097,107041,107009,106977,106912,107537,106961,106993,107473,96081,106833,106833,107889,107345,107697,106849,106977,107377,106897,106961,107025,107009,105936,107169,107169,107313,86993,107153,107409,107217,108305,107121,108257,106993,107041,107025,107297,107425,107697,93601,106913,106977,107041,106929,106721,107281,107281},{107841,108753,109041,107617,107985,107441,107377,107521,107009,82369,107041,107329,106305,108065,107233,108193,107249,107121,107393,107569,108257,107985,106113,106177,105825,106785,106561,106593,106993,107649,107569,106513,108977,108273,109329,107761,108097,107953,108801,108193,107009,107809,107569,109232,108145,109009,108513,110209,100017,108257},{106656,106401,106865,106833,106641,107057,107585,108385,77473,107297,107553,106625,109297,108145,107425,107985,108817,107712,107361,108193,107585,57664,107265,106945,107025,107521,107105,108017,107153,107345,107585,107345,108385,107713,106817,107281,106481,106929,73233,105969,114545,106097,106144,106017,105889,105537,106321,106641,108241,106161}};t={{14496,12256,11584,11808,11872,12896,12224,11872,12896,13056,12288,11904,12896,12096,12064,12032,11712,11840,11936,13024,12128,11904,12896,13056,12032,12128,12864,12320,12000,12896,12224,12000,12832,5472,11936,11808,11936,11808,13280,12160,12032,12768,12032,11808,12544,12192,11936,11872,11616,12128},{13408,12448,12224,11808,12512,12160,12864,12064,12864,12288,11968,12160,11904,12032,11712,12416,11840,12000,11744,12096,11968,11936,12192,12608,12384,11872,13312,12256,11904,13024,12320,12064,12864,12128,11616,12320,11968,11968,12128,12800,12096,12160,12640,12096,12896,12128,12096,12416,12864,11776},{13440,12960,12032,11712,12064,11648,12256,12544,12288,12224,11872,12352,11872,13056,12352,13408,12128,12416,12896,12096,12256,11968,11840,16832,13152,12288,11840,11968,11936,12000,12096,12896,12224,12000,12928,12224,11808,12416,11936,12288,11808,12384,11744,12256,12064,12224,12064,11744,12192,12000},{14432,12768,12704,11936,12960,13088,13664,12672,12032,12864,13600,13568,12608,12480,12128,12832,17248,12032,12864,12736,11712,12480,12704,12064,12832,13152,13152,12672,12608,12448,12032,12960,12256,12384,12416,12160,11808,12416,12128,12928,12320,12256,11744,12928,11904,12576,12128,11840,11936,11840},{14912,11808,12960,13056,13024,13184,12320,12128,12864,12192,12512,11808,12960,12256,11808,12896,12096,12160,12992,13632,12384,11712,12352,12096,13440,12640,13184,12384,12160,12416,12192,12320,12032,12128,12128,12192,16736,12416,11808,12576,11936,12928,12480,12192,12832,12128,12096,11680,12224,11968}};ow={{229122,228770,238594,235762,238994,229586,235074,235458,228786,232530,240194,233554,227250,235058,226338,235075,233266,231266,228130,231122,228706,178962,228066,231250,228242,234626,230162,232706,231442,227442,228994,231602,232258,231650,229714,231698,233394,231330,224274,234946,231826,228610,228850,749814,234114,231058,231698,227698,212482,231138},{178226,227890,223394,228898,232146,224338,228066,223074,225714,231042,223794,232242,225026,227906,224498,232034,222818,188626,226786,234434,223378,231042,228178,227762,230002,229186,234498,231650,228802,225810,229906,228306,230210,228978,230450,225986,224114,226706,216658,230930,228402,233026,233666,227810,229602,231698,228882,236290,226770,234226},{222386,221010,221186,226130,224130,223538,227970,229186,225874,227602,225874,228194,216658,221954,221970,224514,231266,227794,227954,227010,229026,228882,222818,221970,225666,225874,227714,227442,229362,205666,224194,227826,226962,224578,219586,226642,220114,216834,218930,221586,219746,217202,207138,221522,219810,221154,230514,228386,228194,226498},{224498,231058,221634,224914,222626,219682,221970,221826,221250,197201,220546,223554,219938,222610,219730,223906,220594,218930,219042,217314,219938,221426,219714,217970,215074,217218,218114,221106,218898,218146,219346,218466,222882,223618,220946,223938,221634,220498,223602,222034,225714,221778,222866,223410,221314,222930,221586,223314,217586,223586},{227042,225282,227570,227730,227378,232674,230178,228866,197089,225730,230434,227058,226610,223010,221730,222914,226786,226866,222690,222626,222738,179970,222274,221106,225506,226098,236114,227010,233618,232322,232130,228947,226818,225378,224242,227938,224098,222546,190162,229714,238178,227746,232834,230066,225362,248322,222738,223345,238306,228466}};tw={{62673,102272,58481,57248,58369,57088,56609,56272,56129,56528,56177,57776,57585,58384,57009,56368,56081,55984,56161,56208,56097,56848,56385,57568,55665,55872,56385,56192,56305,57728,56353,55792,56929,57616,56433,56688,56945,56400,55441,55952,56305,56528,57153,56816,56353,58192,57457,62112,57441,57776},{66305,105809,57360,57009,58240,57393,55776,56641,56736,56849,57072,56497,56224,56897,56368,56913,55952,55537,56320,56865,56224,57473,56864,56193,56640,56017,58256,56417,55680,55505,57168,59329,56416,55809,56752,57105,56096,56513,56544,56065,55664,57521,56528,68721,55840,55665,57216,56017,56768,56833},{64240,924184,78625,58593,56848,56177,56864,55729,56608,55649,60656,56529,56208,55713,56752,55392,56193,56112,56769,56032,56481,56432,56577,55648,67617,55408,56273,56128,55825,55760,56609,56176,56833,56464,56241,56336,56417,55536,55809,55296,56001,55344,56081,55568,55889,56864,55601,55440,55793,55952},{62416,108001,57713,57552,57649,56112,55697,55760,55761,56976,56609,55856,57073,57008,58849,57584,57729,57360,56849,57072,56801,57488,56801,57056,57265,57408,56641,56528,57057,57008,56945,58096,56145,57344,57297,57264,57105,57280,57921,57760,56449,57264,57713,58464,58897,57712,57329,56176,56065,56000},{62497,100336,56449,55216,55137,56400,56881,55712,56129,56576,56449,55520,56177,56352,55969,55312,55649,55760,55057,55392,55985,56512,56353,56656,56801,55696,55841,58496,56257,59440,56145,56352,55953,55728,55393,55632,55793,56400,56193,56144,56129,55984,56113,55632,55809,56464,56401,55536,56464,55553}};st[x_]:=N[{Median[Flatten[x]],Quantile[Flatten[x],1/4],Quantile[Flatten[x],3/4]}/1000]; +{st[o],st[t],N[Median[Flatten[o]]/Median[Flatten[t]]],N[Median[MapThread[Median[#1]/Median[#2]&,{o,t}]]],st[ow],st[tw],N[Median[Flatten[ow]]/Median[Flatten[tw]]]} \ No newline at end of file diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/swiglu_5632.wl b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/swiglu_5632.wl new file mode 100644 index 0000000..637b046 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/paired/wolfram/swiglu_5632.wl @@ -0,0 +1,2 @@ +o={{106097,106529,105105,106209,106241,108097,106497,106049,106689,105793,106081,106865,106689,106865,105809,107281,104929,105665,105409,106081,105505,104561,105088,105648,105168,105057,105393,111153,104833,104849,105393,105905,105473,106593,106561,106257,101505,106177,106449,105777,106305,106081,105073,104897,104769,100385,104081,104769,104401,104481},{105601,103809,104081,103793,104945,103777,105025,104209,104785,104881,103921,103921,104736,103744,104288,104145,105025,104161,105713,104833,105153,103825,104081,103777,104577,104369,136961,103617,103425,104401,103729,104081,103569,106097,103601,104321,103905,104065,104769,104785,103873,104241,103665,104241,103920,103936,104065,103889,104161,103857},{103425,103777,103777,104385,104225,103649,104161,103729,103633,103729,103744,103696,103873,103569,104145,103777,103601,103777,103649,103521,103569,104209,103729,103969,104353,103633,103601,103505,103521,103569,57248,103617,103809,103841,104161,104273,103697,103569,104017,103953,104289,103761,103825,103633,104161,103616,103664,103537,103473,104097},{106817,106305,105729,105825,105073,105649,105777,105201,104561,104113,104881,106369,104512,104544,104465,104833,104753,105489,104641,104913,105425,104321,105809,105585,105441,105041,105057,103841,103809,104225,105041,103617,103809,104689,104017,104193,104209,104369,104641,105024,104336,104145,59025,105505,103793,103953,104481,104513,103841,104145},{104017,104033,104657,104977,105409,106081,104609,104241,103777,104049,104288,103856,103953,105457,104641,103825,104513,104097,113345,104177,103617,104177,105537,106049,105169,104817,103825,104049,103665,104065,104273,103665,104241,104529,104801,104657,103825,103585,104049,103456,103585,104081,103409,104369,103313,103553,103537,103361,103265,104529}};t={{14560,12800,12832,12576,12672,11744,13312,13248,12512,12192,13376,13248,12640,12192,12128,12832,12384,11968,12768,14880,12224,12832,12384,12288,11712,13120,12288,12096,12896,12576,11904,12896,12480,12000,12928,12192,12096,12960,12320,12096,12896,13120,12384,12160,12832,12288,12096,12832,12320,12576},{14976,11680,13056,12032,13344,12192,12640,11776,13184,12256,12192,12256,12448,12928,12384,12096,12896,13056,19616,14752,12256,12832,10560,11776,12256,11744,12896,11968,12192,11872,13472,13024,11968,12416,12256,11936,12192,11168,11808,12896,12384,12064,11776,12224,13056,13152,12384,12896,12032,11712},{14720,12896,12416,12032,12960,12064,12160,13376,12160,11744,12000,12832,12256,11808,12832,12160,10752,12224,12448,14624,12384,12064,11680,12608,12832,12000,11968,12832,12480,12320,12224,12032,12896,12032,11904,12320,12064,11584,12864,12064,16832,12160,11936,12640,12032,11904,12288,12832,12192,11776},{14400,11872,12832,13024,13472,12320,12064,12832,12416,12064,12000,12896,12448,12544,11616,12064,12128,13056,11936,15840,12224,12128,12992,12960,12992,12416,10848,12448,11936,12704,12448,11712,13088,11840,13344,12544,12512,11776,12672,11744,13152,12832,12448,13952,12640,12480,11872,12480,12160,12896},{15168,13152,12896,14528,13024,11744,12832,12288,11648,12288,12160,12864,12704,12128,12032,12064,12832,12352,12096,14528,12096,12000,11936,12192,12544,12416,12480,13504,12448,12288,12320,11616,12608,13024,12672,13056,11776,11680,13280,13120,13184,12800,13088,12512,12992,12256,11776,12960,12640,12512}};ow={{111585,112385,110801,111729,112177,116001,112609,111889,112417,111313,111473,112561,112689,112817,111297,112641,110657,111393,111185,117297,111041,109857,110465,110832,110433,110401,110641,116353,110113,110321,110945,111649,111169,112129,112385,111729,107025,111825,112369,111441,111873,111665,110657,110193,110161,105553,109313,110017,110369,110305},{111105,109569,109441,109281,110241,109409,114177,109697,110129,110321,109313,109345,110129,109136,109857,109537,110449,109697,111009,110545,110561,108849,109345,109025,110097,109857,142625,109345,108801,110065,109089,109537,109025,111265,109201,109873,109249,109745,110033,110577,109281,109761,109153,113329,109249,109136,109409,109217,109649,109313},{108433,108993,108705,109569,109633,109105,109201,108913,108577,108769,109249,108832,109009,108593,109137,108945,108817,109233,108801,108769,108849,109601,108961,109121,109537,109025,109121,108881,109345,109073,62400,108721,108865,109169,109233,109441,108881,108945,109441,109089,109553,109217,109025,108913,109457,108929,108640,108753,108817,109249},{111793,111665,111009,111025,110145,110913,110993,110369,109745,109201,109905,111777,109568,109841,109649,110017,109793,110705,109873,110001,110705,109553,111153,110913,110657,110049,110273,109009,108833,109297,110097,109009,108913,109649,108977,109441,109297,109633,109649,110144,109345,109073,64369,110497,109073,108897,109489,109889,109025,109169},{109761,110689,110593,110609,110913,111825,110257,109777,109201,109841,109872,109409,109537,110913,110433,109425,110273,110081,119121,109649,108961,109697,111105,111857,110881,110161,108913,109137,108865,109249,109521,108897,109537,109633,109921,110033,109425,108721,109089,108464,108545,109089,108417,109937,108417,108753,108769,108529,108465,109681}};tw={{46096,36401,31376,31872,32417,29424,31664,31744,32257,32160,32160,31233,30048,30288,29040,29201,31712,29888,29712,29537,28960,29104,30016,30337,30672,29056,32064,30033,31184,29232,29441,28064,28240,34208,28801,28272,30864,28400,32769,29904,29568,31568,31521,29648,32848,29489,29296,29904,34048,29537},{53264,30608,34577,28912,29552,31377,33920,30176,32768,33633,33808,33376,32225,29824,31968,33232,33441,28656,33152,30657,33136,29872,30672,31569,33312,32704,35152,35649,32496,29104,31505,31920,30976,31392,36001,33072,33616,32545,29920,32192,29840,37169,29008,33200,32081,32016,32592,29824,32513,30704},{49024,33040,31697,31616,31296,32785,31680,29136,29152,29729,29136,30704,30432,29633,29152,28432,31408,29489,29472,31888,32465,29824,29664,31856,32289,32944,30160,32400,30817,31264,28304,34353,29536,29184,28784,30385,29696,30256,30608,29233,30640,30416,32208,29393,29168,29312,29584,31521,30704,28336},{49200,35073,33104,29504,29280,34257,30400,32416,33425,29808,31200,30496,32209,32704,32896,31297,30400,31520,30176,28545,29968,28800,30384,29313,34560,28000,29984,31489,32432,31440,33297,32400,32304,36208,33649,33200,33344,30561,31088,30704,30096,32369,32288,31264,30432,30897,29232,29024,30065,31328},{48896,31329,33712,33136,31697,33440,33056,30560,31041,31328,30896,33504,35329,32000,32512,35489,30608,31152,29360,29937,32688,31808,30961,32208,31264,30352,29889,32240,28576,29824,32545,31904,35584,29809,30064,31568,30912,29521,33792,29856,32976,30049,30064,32336,30001,29104,29600,32464,31457,29104}};st[x_]:=N[{Median[Flatten[x]],Quantile[Flatten[x],1/4],Quantile[Flatten[x],3/4]}/1000]; +{st[o],st[t],N[Median[Flatten[o]]/Median[Flatten[t]]],N[Median[MapThread[Median[#1]/Median[#2]&,{o,t}]]],st[ow],st[tw],N[Median[Flatten[ow]]/Median[Flatten[tw]]]} \ No newline at end of file diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/spin/r0/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/spin/r0/stdout.jsonl new file mode 100644 index 0000000..be1970c --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/spin/r0/stdout.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":0,"first_call_ns":178378596,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[19905,19184,19088,19056,18624,18848,19473,18928,18864,18928,18928,19008,18929,19088,18816,18944,18944,18976,18913,18880,19472,18784,18992,18896,19089,18944,18880,19168,18864,19088,18865,18960,18992,18928,19104,19072,19249,19872,19536,18896,20224,20512,19489,19520,19952,19584,19152,19617,19472,19504],"chip_ns":[17537,16880,16624,16752,16560,16608,17025,16656,16624,16592,16800,16688,16561,16784,16592,16640,16576,16608,16529,16656,16896,16688,16704,16688,16609,16656,16592,16784,16592,16720,16545,16592,16576,16528,16752,16640,16705,17312,16912,16640,17744,17776,16865,16880,17456,16896,16688,17168,16928,16544]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":0,"first_call_ns":734534,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[124641,127553,129025,126241,127010,128305,125297,125025,126609,119170,125761,125953,121985,124305,118945,116577,117026,122305,121793,123361,123953,122577,122337,122258,123857,124897,119137,116353,121937,122721,123650,121745,117377,117057,125489,124145,124593,124562,123441,124225,123185,126097,126561,125042,120657,121745,123745,125825,124561,117633],"chip_ns":[23184,26352,24785,24928,25040,25024,23616,24401,24560,20880,24096,21296,21873,22129,21024,20544,20672,20832,20720,22016,23009,23072,21968,22400,23200,23440,21008,20033,21760,21744,22752,22256,20256,19936,23793,23633,24400,22736,22544,23424,23664,24193,24368,22784,22320,21776,22033,24369,22544,20592]} +{"case":"rope_32x128","rc":0,"mutant":0,"first_call_ns":349619,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[10432,10608,11409,10592,11120,10064,10288,10416,10240,11216,10384,10256,11040,10497,10192,10912,10480,10368,10528,10240,10864,10656,10128,10720,10273,10160,10912,10240,10384,10496,10240,10928,10384,10160,10513,10176,10576,10192,10192,10256,10192,11152,10304,10144,11024,10609,10336,10624,10240,10208],"chip_ns":[6544,6656,6769,6688,7120,6432,6400,6448,6528,7328,6432,6480,7152,6689,6400,7024,6528,6736,6560,6336,7008,6640,6432,6816,6432,6336,7152,6448,6352,6672,6320,7088,6512,6352,6528,6288,6800,6432,6432,6448,6288,7168,6480,6352,7264,6577,6576,6896,6544,6400]} +{"case":"swiglu_5632","rc":0,"mutant":0,"first_call_ns":188402,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[10800,10800,11456,11345,11616,14112,11168,11408,11584,11680,12000,11856,12032,11569,11472,11392,11360,11200,11136,11184,11600,11456,11424,11521,11920,11472,11232,10928,11056,11008,10864,10864,11504,11601,11376,11712,11440,11632,11408,11440,11376,11504,11361,11680,11776,10944,10944,10976,10832,10880],"chip_ns":[6000,6080,6624,6592,6896,6768,6368,6544,6784,6592,6880,6912,6976,6753,6656,6432,6176,6032,6176,6368,6608,6432,6544,6544,7056,6640,6176,6144,6032,6048,6032,6080,6688,6720,6640,6816,6528,6656,6416,6448,6512,6592,6512,6736,6688,6192,6144,6128,5952,6016]} +{"case":"swiglu_131072","rc":0,"mutant":0,"first_call_ns":560229,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[126257,127265,125953,129041,127729,132065,133217,133457,132049,133297,132401,132705,127570,131377,130945,130481,129121,124433,124785,130961,130449,133889,132577,131233,133377,131329,134113,133313,130001,124033,126609,128513,129073,129985,137793,123474,123089,123521,127873,130001,128850,124433,123841,123281,122625,130001,127969,123393,123121,123825],"chip_ns":[15664,14881,15360,16096,15600,15600,15376,16544,16704,15344,15745,16384,15136,15088,15569,15408,15456,15344,14512,15824,15408,15984,14624,15856,16336,15248,16256,16080,15424,14704,14736,15200,15440,15233,26048,14448,14864,15360,15137,16464,15376,14544,14320,14737,14592,15440,14784,14656,14288,14897]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":0,"first_call_ns":5260013,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1090986,1202026,1276219,1236619,1261963,1334588,1286379,1151370,1150474,1258939,1250123,1259643,1190170,1406669,1312779,1088809,1059274,1180842,1190106,1143226,1140490,1135626,1263659,1098794,1047929,1021529,1064937,1247179,1143898,1250459,1130698,1287819,1132714,1086218,1062761,1160154,1284763,4100836,1248683,1284811,1148042,1095738,1213658,1302268,1206234,1692399,1702607,1543949,1085674,1564557],"chip_ns":[399636,491700,444116,489924,433044,504901,418692,405364,425860,467956,421524,466308,403011,616534,541621,399763,415556,481524,444547,457492,411011,436164,505380,409444,403427,410516,406995,472900,407427,461220,417924,502164,408356,391731,399812,487140,465092,404692,488740,449556,435988,392164,468036,452500,461908,875896,891752,850807,400260,875735]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":0,"first_call_ns":902920,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[586053,571429,527108,518085,481588,567349,580661,507429,527332,486660,536837,544293,510532,525413,452404,494612,449572,482852,475092,482421,507972,497668,552005,579957,554965,536309,502068,572245,567413,534917,500084,494900,548324,561573,556197,533285,507188,468596,492373,468740,455540,458756,459364,464292,479044,488148,544453,563909,483764,504644],"chip_ns":[463236,442612,402995,394564,378163,438164,447748,379940,404307,376675,411219,419284,383603,399060,352355,392307,349091,368515,373715,374580,408307,386755,443620,446916,429028,410500,399043,449412,439668,428004,380579,393619,432580,435204,436068,416916,387379,368195,377956,365012,351491,360484,358004,366964,374259,371395,436020,441844,360835,401763]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":0,"first_call_ns":3897346,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[2152659,2208947,2106306,2079522,2492662,2321268,2072386,2070179,2260452,2219715,2264580,2059506,2106786,2590086,2308884,2192403,2182963,2086418,2175459,2220708,2136915,2116882,2053682,2237235,2220467,2170051,2143331,2077730,2260484,3139436,2484197,5328686,2360133,2329492,2364468,2253540,2273652,2222948,2307781,2291236,2302020,2335764,2149507,2189891,2312837,2325812,2253956,2229971,2115778,2022417],"chip_ns":[1164971,1214779,1118602,1086090,1486493,1269850,1060073,1070281,1225963,1193067,1229083,1037513,1124683,1574686,1276428,1152810,1171211,1101528,1152826,1207482,1139642,1061720,1071849,1227867,1197019,1153547,1142042,1097833,1254171,1299291,1438365,1258568,1294636,1249484,1307916,1202107,1209499,1165018,1262939,1254571,1246522,1279020,1134330,1187194,1257083,1275803,1210282,1177131,1125626,1056761]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":0,"first_call_ns":444132,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[121057,120369,119489,121073,121745,120401,120881,120353,120481,118514,119489,118945,119249,120097,118961,120305,120385,119841,118977,119537,118593,120049,120385,119489,121073,118225,118865,119681,119265,119329,119170,120801,118193,120897,120593,119393,118945,118785,119601,118961,119697,118401,119713,119073,119905,121057,118897,118753,119873,121665],"chip_ns":[55665,56017,55057,56193,56625,55697,56513,56192,55248,54480,55344,55024,54768,55504,54848,55552,54864,55712,54657,55489,54209,55665,56417,55057,54881,53857,54609,55441,54896,54896,54480,55888,54224,55216,56208,55056,55008,54560,55168,54721,55489,53617,55089,54769,55569,55777,54465,54529,55377,55313]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/spin/r1/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/spin/r1/stdout.jsonl new file mode 100644 index 0000000..69a2f91 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/spin/r1/stdout.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":0,"first_call_ns":127657978,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[20144,19248,19488,20337,19040,19104,18800,19312,18672,18833,19008,18848,19312,18688,18592,19121,20000,18896,18784,18608,18912,18849,18896,19680,18944,18816,19008,18881,18848,18880,18624,18752,18784,18721,19424,18576,19168,18672,20000,19073,18816,19008,19120,18928,18944,18913,19120,18992,18976,40128],"chip_ns":[17648,17104,16816,17825,16976,16960,16672,17184,16608,16721,16928,16592,17200,16512,16480,16961,17872,16640,16736,16512,16640,16769,16832,17520,16848,16768,16816,16705,16624,16752,16496,16656,16688,16641,17312,16496,16944,16624,17616,16737,16656,16736,16768,16736,16608,16705,16720,16768,16672,37824]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":0,"first_call_ns":736823,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[116545,117937,120769,123633,123457,121777,123745,124305,124274,124465,122769,118609,125025,122561,122065,121953,116353,116833,118129,125921,126497,125617,124049,124545,122737,126881,126897,129154,129473,118481,123361,125553,122497,120945,119937,117009,115985,117409,117697,121745,118817,119169,118849,117698,119073,117153,117857,117249,117121,120177],"chip_ns":[20656,20896,21520,24368,24016,22065,23617,24064,23600,24720,23120,21472,22769,23120,22608,22512,20656,21040,21808,22881,25344,24624,24096,24368,23760,25105,25680,22384,25936,20992,22096,23601,23280,22512,21808,21040,20704,21024,21152,23393,22416,20976,20800,20768,22640,20944,21072,21280,21569,24769]} +{"case":"rope_32x128","rc":0,"mutant":0,"first_call_ns":344435,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[10224,10896,10496,10416,10608,10032,10160,10128,10369,10704,10480,11536,10608,10464,10752,10528,10352,10256,10256,10849,10048,10160,10288,10144,10224,10064,11136,10160,10384,13569,10784,10144,10224,10416,10272,11136,10368,10176,11104,10432,10257,10848,10528,10640,10256,10496,10688,11120,10592,10256],"chip_ns":[6448,7104,6528,6416,7024,6512,6464,6464,6673,6448,6688,7152,6720,6480,6576,6624,6672,6512,6400,7313,6480,6416,6544,6336,6480,6336,7328,6480,6608,7312,7008,6528,6656,6496,6384,7328,6624,6368,7296,6512,6417,6800,6592,6656,6480,6656,6432,7216,6640,6416]} +{"case":"swiglu_5632","rc":0,"mutant":0,"first_call_ns":184113,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[12016,11040,11744,11568,11472,11216,11280,11456,11569,11504,11296,11424,11248,11536,11456,11376,11104,11857,11392,11584,11312,11584,11472,11088,11136,12000,11344,11921,10912,11568,11216,11712,11440,11264,11712,14432,11377,11472,11136,11552,11712,11456,11312,11296,11168,11088,11409,11184,11168,11264],"chip_ns":[6528,6160,6656,6336,6336,6160,6416,6560,6208,6384,6192,6416,6352,6640,6448,6336,6240,6672,6480,6304,6208,6496,6304,6144,6352,6784,6240,6449,6032,6192,6224,6688,6544,6256,6672,6784,6224,6128,6112,6288,6432,6256,6272,6224,6192,6096,6305,6160,6096,6192]} +{"case":"swiglu_131072","rc":0,"mutant":0,"first_call_ns":517093,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[127345,124945,128482,129281,129297,126913,128881,122913,123665,128865,125793,127153,131010,128129,127921,127489,129969,131682,126321,124769,123537,127393,130082,129297,127793,124673,122721,122849,124258,124337,127201,128513,128289,124161,124353,123025,123457,123217,127537,123953,124433,123393,123585,123089,125393,127601,126561,126097,123441,124561],"chip_ns":[16705,16352,18208,17664,18736,17921,17920,18272,17584,18976,18305,17920,18176,17200,17680,17361,17392,18288,17568,17104,17057,17856,18576,17328,17504,17169,17008,16944,16880,17248,17728,18897,17824,17136,17152,16832,16944,16609,16688,17280,17024,16832,16656,16945,16864,17168,17584,16512,16785,17376]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":0,"first_call_ns":5181757,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1207306,1243179,1206635,1240411,1247899,1199130,1144170,1279659,1294091,1292668,1262715,1264011,1266603,1269035,1304907,1330092,1327388,1289467,1310795,1264219,1264411,1296204,1274139,1269819,1295083,1273611,1266363,1231899,968200,988537,994121,994776,999657,974633,981208,973673,964952,995817,997337,999000,962681,964872,968153,1000760,988729,993257,977192,994553,1000664,981752],"chip_ns":[443491,439156,478388,435556,478261,425092,455204,484516,480020,468948,476788,475860,464820,481444,490932,484660,478469,466772,488004,477236,475076,481365,482437,480324,481940,487940,466228,439780,386051,392259,394452,401683,404211,383988,395427,385636,386755,393396,401043,394371,383732,387299,385700,394195,391044,398004,387491,382532,389411,380707]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":0,"first_call_ns":784263,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[458580,460357,452484,454388,450579,450516,441364,453332,474932,445908,463300,455828,469332,464004,456308,456324,455684,454020,450212,449508,449940,453092,443380,443700,452356,449124,442403,448740,442148,438852,446244,440660,438052,437667,438772,433844,436148,452212,442708,451876,444260,440787,447636,526021,803607,453076,468420,597109,584165,450244],"chip_ns":[349267,351572,347620,347491,344691,344051,337507,350979,365763,340563,350515,352963,364995,356195,351907,352371,353331,352275,349971,349427,350147,344131,346707,347267,355219,347059,345443,351619,344499,342611,343459,344691,343443,342627,343907,339507,344355,359715,348675,351444,349812,347075,350707,431444,704310,355971,368579,494692,489524,355299]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":0,"first_call_ns":4180789,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1988705,2008690,2040802,1981090,1947537,2071442,1966561,2079842,2327541,2009954,2027090,2053954,2115906,1998097,1973377,3236637,2352613,2205683,2104675,2092946,2085794,1997473,2064194,2022769,2152723,2330661,2039634,2038034,2029489,1989441,2023234,2159091,2005602,2036546,2064850,1999537,2053490,2024546,2029842,2186979,2014849,2072178,2198852,2229507,2041218,2242628,1996769,2038978,2036402,2000418],"chip_ns":[1035226,1060009,1085258,1016937,989225,1084873,1003257,1115977,1343243,1021848,1032504,1079017,1143067,1024009,1004201,2257363,1371692,1200506,1084905,1089801,1093594,1008329,1099258,1055785,1154538,1357436,1059017,1062089,1027513,994217,1052906,1149594,1038761,1061161,1099098,1033929,1090457,1062137,1041387,1169322,1048457,1085546,1223291,1258173,1071289,1218523,1028345,1069434,1077482,1036873]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":0,"first_call_ns":427668,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[123089,124337,123969,124641,124177,125010,125921,123905,124145,125713,124193,125873,124161,126977,125473,125505,125570,124721,125825,122929,125377,124689,125121,125649,125025,126001,127250,126145,125537,127073,127233,125921,127681,124305,126673,127154,124593,126897,128065,125569,126001,128177,126513,125409,124721,125842,125745,125713,125761,124753],"chip_ns":[55649,55425,55329,56945,55072,56080,56672,55056,55840,55792,55793,57297,55793,57953,56817,56992,56368,56464,57632,55488,57889,55665,56721,56737,56625,56320,58416,56656,56656,57504,58001,56801,57313,56193,57201,57968,55760,57376,58656,56096,57329,57729,57425,56193,56016,56640,57440,57184,56864,57328]} diff --git a/evidence/STACK7-GPU-20261026/gpu-runs/spin/r2/stdout.jsonl b/evidence/STACK7-GPU-20261026/gpu-runs/spin/r2/stdout.jsonl new file mode 100644 index 0000000..34b62f8 --- /dev/null +++ b/evidence/STACK7-GPU-20261026/gpu-runs/spin/r2/stdout.jsonl @@ -0,0 +1,9 @@ +{"case":"rmsnorm_1x2048","rc":0,"mutant":0,"first_call_ns":151456729,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[19184,18800,18912,18880,19057,18976,19024,18960,18816,19360,18785,19456,19200,19056,18960,18992,19009,18848,18736,18928,18896,18944,19313,18576,19680,19120,18944,18960,19121,18912,18912,18848,19024,18960,19153,19104,18784,19024,18752,18912,19137,18848,18880,18944,18896,19088,18945,19040,19056,19456],"chip_ns":[16784,16592,16672,16656,16705,16736,16784,16784,16640,17088,16577,17184,16736,16640,16688,16576,16529,16656,16592,16704,16592,16560,17217,16480,17360,16688,16688,16720,16657,16656,16672,16656,16768,16672,16753,16688,16656,16720,16592,16704,16721,16576,16576,16656,16688,16704,16705,16576,16640,16992]} +{"case":"rmsnorm_64x2048","rc":0,"mutant":0,"first_call_ns":672790,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[116081,119937,117105,116993,115233,115697,115873,116177,116593,118481,116865,115681,115489,116897,115841,117569,115809,119105,116913,116337,116673,115217,116817,116097,116161,117281,117473,117153,117809,118321,116449,116465,116753,119377,118081,117201,125569,121762,122417,119217,122433,122017,116945,118369,118225,117313,116865,115777,117377,121777],"chip_ns":[20336,20144,21089,20673,19968,20768,20208,20688,20592,20320,20688,20192,20240,20657,20177,21184,20224,21104,21168,20272,20192,20048,20432,20928,20833,20065,20784,21008,20704,21824,20896,21040,21232,21184,21409,20864,22608,21792,23088,21568,23152,22241,20912,22352,21216,21024,20576,20992,20768,22288]} +{"case":"rope_32x128","rc":0,"mutant":0,"first_call_ns":328483,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[10400,10240,10240,10368,10081,9952,10384,12032,10080,10448,10144,10880,11008,10272,10128,10305,9984,10288,10208,13888,10208,10416,10016,10272,11120,11105,10464,10352,10256,10256,10304,10128,10336,10320,10208,10160,11265,10352,10176,10384,10416,10496,11152,10176,10192,10256,10416,10241,10224,10160],"chip_ns":[6496,6640,6560,6608,6385,6400,6560,8112,6528,6592,6528,7248,7280,6528,6368,6465,6432,6464,6368,10096,6496,6512,6352,6608,7312,7185,6512,6624,6512,6352,6496,6400,6592,6528,6352,6496,7569,6400,6528,6576,6592,6576,7408,6528,6416,6608,6704,6577,6416,6576]} +{"case":"swiglu_5632","rc":0,"mutant":0,"first_call_ns":180610,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[11440,11440,11664,11392,11616,11601,11632,11360,12112,10960,11520,12416,10752,11280,11888,11137,12304,10928,10784,11856,11232,11664,11104,11744,10832,11137,11136,11120,11744,11040,11056,11392,11104,11968,10752,11697,11008,10960,10672,11088,12288,10896,11408,10864,10896,11089,12640,11360,10944,11680],"chip_ns":[6752,6688,6848,6688,6688,6705,6576,6624,7360,6016,6544,7504,6032,6368,7152,6145,7520,6208,5968,7040,6256,6800,6192,6928,6080,6129,6224,6032,7040,6128,6016,6672,6112,7040,6048,6817,6192,6096,6032,6096,7264,6144,6624,6080,6176,6065,7552,6496,6096,6912]} +{"case":"swiglu_131072","rc":0,"mutant":0,"first_call_ns":489300,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[124929,128689,126337,124561,124545,125921,126369,125937,125377,125073,126257,124561,124897,126417,125666,126817,126433,126177,128097,124785,123777,125857,125921,129409,124465,124178,124417,125473,124529,125057,125233,130770,125393,124769,126497,128913,128178,127521,131057,126337,135457,127425,125137,124881,126817,129505,124785,127297,125153,126033],"chip_ns":[17889,18912,17888,17104,17216,17232,18001,18064,17328,17696,18096,17345,17280,17984,17936,18608,17008,17601,17680,16816,16672,17680,17440,18128,17328,17504,17168,17280,17457,18288,17648,17504,17376,16720,16576,17296,18640,18464,21265,18336,28048,19584,18720,18561,19360,19328,18448,20144,18944,19601]} +{"case":"gqa_f32_32q8kv_hd128_ctx2048","rc":0,"mutant":0,"first_call_ns":5787842,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1047145,1062073,1054425,1044841,1025385,1031673,1046745,1056938,1024121,999256,1019193,980185,1027225,988392,975145,992873,996136,1035913,992521,972729,1010072,1990658,1042377,1022697,1031001,1027033,1019145,1041225,1021705,992728,1067338,1162842,978664,985353,983112,968585,965144,966441,963128,976937,975784,967593,969928,966921,1132313,1078906,996601,1010840,1013817,1007225],"chip_ns":[389844,394531,389475,379203,386899,389011,378963,380964,381764,380755,386291,380756,387300,390643,388195,392068,395875,407443,393443,384868,392227,1383932,382740,388132,392004,386820,389412,385268,379652,383043,463604,426100,383203,386403,380579,378243,380979,382644,381395,386836,389523,384036,386499,383331,472964,378003,388340,395843,385715,384995]} +{"case":"gqa_f32_32q4kv_hd64_ctx2048","rc":0,"mutant":0,"first_call_ns":738999,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[446307,446708,447668,453300,496293,479156,484516,475604,464388,459924,455652,455604,452036,456420,459188,449524,451732,452788,447348,450084,442420,446083,444100,444900,456052,453300,438388,437972,447924,438132,445971,449300,447172,440036,448772,437844,443188,455140,455540,442852,444659,450468,446564,450436,450356,442436,466084,452100,450004,439956],"chip_ns":[343427,344387,344563,347555,381508,379748,379587,378611,364291,360275,359171,358275,356195,357491,365235,353219,355379,357251,351027,349683,345363,349267,349155,349491,362739,348755,344643,342691,348179,344963,353587,355331,353555,345587,352307,343587,341731,359363,352771,349187,350451,355347,349875,352275,346867,344771,362243,359059,353139,344995]} +{"case":"gqa_rows_f32_32q8kv_hd128_m256","rc":0,"mutant":0,"first_call_ns":3206460,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[1992737,2052018,2222371,2005938,2053730,2111746,2057458,2053730,2098643,2365365,2262500,2073346,2067586,2048385,2064738,1976930,2105426,2049954,2112771,1979105,2051842,2074962,1974785,2019698,2026289,2095986,2020130,2014066,2010897,2011233,2015089,2163651,2065874,2001185,1994577,1957985,2021890,2021826,2049570,2056450,2132227,2068386,1972081,2093570,2066418,2097426,2055345,2170931,2079138,1956289],"chip_ns":[1042362,1108714,1236619,1018360,1084410,1146809,1068857,1098202,1146777,1381275,1305564,1105161,1105451,1092057,1082329,1015304,1135050,1083337,1096073,974472,1084185,1094202,997880,1020648,1040457,1047577,1030921,1024344,1033880,1028921,1024393,1125690,1059641,1020874,1018553,986632,1042104,1015945,1083131,1047642,1122506,1071883,994168,1118489,1095226,1123386,1085881,1148587,1124329,985482]} +{"case":"paged_bf16_32q8kv_hd128_ctx2048_bs16","rc":0,"mutant":0,"first_call_ns":462292,"warm":10,"reps":50,"timed_outputs_differing_from_first":0,"wall_ns":[119169,117889,120465,117889,119361,117953,117793,117793,120449,119617,119329,117217,118401,118001,119121,119265,121649,119618,119089,117969,120129,119009,118881,120737,120737,122049,118817,119617,118065,119057,118545,119457,118673,119649,119057,119633,118705,118209,119345,120002,119921,122289,118721,118097,119265,119745,118945,119889,118449,119377],"chip_ns":[54752,54657,56513,54481,54769,54641,54001,54161,55265,55041,54993,54289,54801,54273,55089,55168,55440,55984,55408,53760,55776,55440,54624,55792,54833,55809,54849,55153,54689,54593,54513,55297,54177,54641,54113,55761,54816,54768,55280,56208,55536,54576,54592,54208,54688,55824,55536,55264,54481,55713]} diff --git a/evidence/STACK7-GPU-20261026/npy-not-published.sha256 b/evidence/STACK7-GPU-20261026/npy-not-published.sha256 new file mode 100644 index 0000000..bda7d8a --- /dev/null +++ b/evidence/STACK7-GPU-20261026/npy-not-published.sha256 @@ -0,0 +1,26 @@ +9a06a77d4dc929e39de4118c1e03ece6dea57c5a32ffdef348452ca52c5f2d4c ./corr/torch/gqa_f32_32q4kv_hd64_ctx2048.sdpa_cudnn_bf16_REFONLY.out.npy +a70cdce95531447a1940233e90df61d183a524a31807946c314b1001e1519a9e ./corr/torch/gqa_f32_32q4kv_hd64_ctx2048.sdpa_efficient_f32.out.npy +1dfad2df52609f5e6ce2312d1351e61315b75e9259734f3514757c6641eaeef7 ./corr/torch/gqa_f32_32q4kv_hd64_ctx2048.sdpa_flash_bf16_REFONLY.out.npy +ea6f2205d88aca9cb0a60332a6eddddf3cb872c3f0de17def1a79cba46b0cb7c ./corr/torch/gqa_f32_32q4kv_hd64_ctx2048.sdpa_math_f32.out.npy +596ce8ab83740ea40a1ac6aec15d9b8206396084e175139b70abbc76c987ede2 ./corr/torch/gqa_f32_32q8kv_hd128_ctx2048.sdpa_cudnn_bf16_REFONLY.out.npy +a09ebd8ac3ec72722da17173f15fcf2f69d1c604c01e4aaa0b3ff1ed560f6e30 ./corr/torch/gqa_f32_32q8kv_hd128_ctx2048.sdpa_efficient_f32.out.npy +02c1ed1c8234d1e27fd1993700f6f36b4259e3d8f966d5392f2e2371a356589b ./corr/torch/gqa_f32_32q8kv_hd128_ctx2048.sdpa_flash_bf16_REFONLY.out.npy +e6f7c6f78adb3262067917f781df2126a53e4c5d6e2a1108b465ad978de39e12 ./corr/torch/gqa_f32_32q8kv_hd128_ctx2048.sdpa_math_f32.out.npy +aa210eb9d484ae34401cdd6506051bbe5aecd0d82ac84fd25e300387709fe69d ./corr/torch/gqa_rows_f32_32q8kv_hd128_m256.sdpa_cudnn_bf16_REFONLY.out.npy +52e23471a7bca07d178502ef61939b14c2eb45143923836afe3ba459f07a4398 ./corr/torch/gqa_rows_f32_32q8kv_hd128_m256.sdpa_efficient_f32.out.npy +62d6ef5b3cda7ef868023bcebe3eb9eb9fca19e0feb9a119f3697bfb2b95f0d9 ./corr/torch/gqa_rows_f32_32q8kv_hd128_m256.sdpa_flash_bf16_REFONLY.out.npy +da0383d11fdde594e067fd750734967d772cdcac0ad86e44e580ca630fa48b9a ./corr/torch/gqa_rows_f32_32q8kv_hd128_m256.sdpa_math_f32.out.npy +2e18cf6afb05af78a64c214139425c67724583e4ceada3e5ec9eec34c0ea70ea ./corr/torch/paged_bf16_32q8kv_hd128_ctx2048_bs16.gather+sdpa_cudnn_bf16.out.npy +a6076f64811e5235aa5dd3f2393b4ce16fdfdb1fb233b5e372cf9f941e564a4c ./corr/torch/paged_bf16_32q8kv_hd128_ctx2048_bs16.gather+sdpa_efficient_bf16.out.npy +5828f22a7f266e0e411ac82ed688a4b17a6c2aa6034d34118f28718828df315f ./corr/torch/paged_bf16_32q8kv_hd128_ctx2048_bs16.gather+sdpa_flash_bf16.out.npy +4bce0345bec7a3216b782409d1c6c757e34b07897e53135a8360306cdcfe8694 ./corr/torch/paged_bf16_32q8kv_hd128_ctx2048_bs16.gather+sdpa_math_bf16.out.npy +2e18cf6afb05af78a64c214139425c67724583e4ceada3e5ec9eec34c0ea70ea ./corr/torch/paged_bf16_32q8kv_hd128_ctx2048_bs16.sdpa_cudnn_bf16_pregathered.out.npy +a6076f64811e5235aa5dd3f2393b4ce16fdfdb1fb233b5e372cf9f941e564a4c ./corr/torch/paged_bf16_32q8kv_hd128_ctx2048_bs16.sdpa_efficient_bf16_pregathered.out.npy +c867c9b21ab8ad121d0049f6a7f95d1f19cd73f7a683a38b133ce95dea49cb75 ./corr/torch/paged_bf16_32q8kv_hd128_ctx2048_bs16.sdpa_efficient_f32q_f32kv_pregathered.out.npy +5828f22a7f266e0e411ac82ed688a4b17a6c2aa6034d34118f28718828df315f ./corr/torch/paged_bf16_32q8kv_hd128_ctx2048_bs16.sdpa_flash_bf16_pregathered.out.npy +4bce0345bec7a3216b782409d1c6c757e34b07897e53135a8360306cdcfe8694 ./corr/torch/paged_bf16_32q8kv_hd128_ctx2048_bs16.sdpa_math_bf16_pregathered.out.npy +c2143ba64468b9d47b647ae15140b3e5e72f3779a9ee9fc654e1f7c34a2049bf ./corr/torch/rmsnorm_1x2048.torch_rms_norm.out.npy +2655551cc38ecf637f614f0eb2509f14237846e41f978d05c0f76fe25b4d7a56 ./corr/torch/rmsnorm_64x2048.torch_rms_norm.out.npy +0fccb40b75a3f0922392f60da8daa54fdeee740d15f1ec49015d8126399857da ./corr/torch/rope_32x128.torch_ops.out.npy +904f1db9f874e0626d1a3184bf0725d75e059c4174a94b421e55c382818b331d ./corr/torch/swiglu_131072.torch_silu_mul.out.npy +1170673f163329aa3ab0874292c61ac53d97523492549c9c7d066540ba4fe0d7 ./corr/torch/swiglu_5632.torch_silu_mul.out.npy diff --git a/tests/test_gpu.py b/tests/test_gpu.py new file mode 100644 index 0000000..09de755 --- /dev/null +++ b/tests/test_gpu.py @@ -0,0 +1,681 @@ +"""GB10 tier: CUDApp native kernels against the omega-dnn host reference (docs/TOLERANCE.md, "GPU tier"). + +Usage: + python tests/test_gpu.py --lib LIB --group ew|attn|gemm [--cases N] [--seed S] --out receipt.json [--hold] + +LIB is a shared build of CUDApp's libomega_gpu.a (README, "GPU tier"). Every case is prepared on the host first +(the omega-dnn unit's output and a torch float64 reference); with --hold the chip calls then run under +flock /tmp/aien-gb10.lock with the BOARD and health-check discipline of the Spark. Without --hold nothing touches the +chip and the run stops after the preparation (a dry run). + +Each chip output element y must satisfy + |y - host| <= T_chip + T_host (the gate: the omega-dnn unit is the reference) + |y - ref64| <= T_chip + T_ref64 (diagnostic against torch float64) +where T_host is the host contract of tests/test_ops.py, T_ref64 = 2 gamma64(n + 64) M + 2^-149, and T_chip is the +op's bound for the CUDApp kernel against exact arithmetic, derived in docs/TOLERANCE.md and frozen before the run. +Every op also runs CUDApp's own chip mutants, and each mutant must fail the gate (negative control). +Exit status 1 on any gate violation, chip error, or surviving mutant. +""" +import argparse +import ctypes as C +import fcntl +import hashlib +import json +import math +import os +import re +import subprocess +import sys +import time + +import torch +import torch.nn.functional as F + +sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "python")) +import omega_dnn as od # noqa: E402 + +U = 2.0 ** -24 # f32 unit roundoff +U64 = 2.0 ** -53 +TINY = 2.0 ** -149 +FLOOR = 2.0 ** -124 # absolute allowance: a few f32 products that may flush below 2^-126 on the chip +E_EX2 = 5 * U # PTX ISA 9.4 ex2.approx.f32: 2 ulp from the correctly rounded result -> 2.5 ulp <= 5u +E_RCP = 2 * U # PTX ISA 9.4 rcp.approx.f32: 1 ulp +NEWTON = 3.0000007 * U # Wolfram Maximize over the rsqrt Newton step (docs/TOLERANCE.md) +E_HEXP = 25 * U # host_exp2 (Cephes polynomial in f32) relative error: 24.27u (Wolfram) +C_HMMA = (17 * 2.0 ** -25 + 2.0 ** -23) * (1 + 2.0 ** -20) # one HMMA.16816 step, chip-exact model {16,2,RZ,nominal} +BOARD = "/home/drakestapleton/handoffs/BOARD.md" +LOCK = "/tmp/aien-gb10.lock" +LANE = "DnnGpu" + + +def g32(n): + return n * U / (1 - n * U) + + +def g64(n): + return n * U64 / (1 - n * U64) + + +def host_tol(ref, n, mag): + return U * ref.abs() + 2 * g64(n + 64) * mag + TINY + + +def ref_tol(n, mag): + return 2 * g64(n + 64) * mag + TINY + + +def ri(g, lo, hi): + return int(torch.randint(lo, hi + 1, (1,), generator=g)) + + +def rn(g, *shape, scale=1.0): + return torch.randn(*shape, generator=g) * scale + + +def pick(g, xs): + return xs[ri(g, 0, len(xs) - 1)] + + +def ptr(t): + return C.c_void_p(t.data_ptr()) + + +# ------------------------------------------------------------------ CUDApp ABI (src/*.h at the pinned sha) +class EwInfo(C.Structure): + _fields_ = [("chip_calls", C.c_uint32), ("elapsed_ns", C.c_uint64), ("completion_marker", C.c_uint32), + ("unwritten_words", C.c_uint32), ("kernel_cache_hit", C.c_bool), ("gpr_count", C.c_uint32), + ("insn_count", C.c_uint32), ("threads_per_cta", C.c_uint32), ("ctas_last_launch", C.c_uint32), + ("target_chip", C.c_char * 64), ("sm_architecture", C.c_uint32), ("call_ns", C.c_uint64)] + + +class AttnInfo(C.Structure): + _fields_ = [("chip_calls", C.c_uint32), ("elapsed_ns", C.c_uint64), ("call_ns", C.c_uint64), + ("completion_marker", C.c_uint32), ("unwritten_words", C.c_uint32), ("gpr_count", C.c_uint32), + ("insn_count", C.c_uint32), ("kernel_cache_hit", C.c_bool), ("ctas_last_launch", C.c_uint32), + ("threads_per_cta", C.c_uint32), ("target_chip", C.c_char * 64), ("sm_architecture", C.c_uint32), + ("kv_bytes_staged", C.c_uint64), ("kv_bytes_naive", C.c_uint64), ("kv_blocks_logical", C.c_uint32), + ("kv_blocks_unique", C.c_uint32), ("q_bytes", C.c_uint64), ("tab_bytes", C.c_uint64), + ("out_bytes", C.c_uint64), ("kv_source", C.c_uint32)] + + +class KvLayout(C.Structure): + _fields_ = [("block_stride_bytes", C.c_uint64), ("layer_stride_bytes", C.c_uint64), + ("kv_plane_stride_bytes", C.c_uint64), ("token_stride_bytes", C.c_uint64), + ("head_stride_bytes", C.c_uint64), ("pool_bytes", C.c_uint64), ("num_blocks", C.c_uint32), + ("num_layers", C.c_uint32), ("block_size", C.c_uint32)] + + +class GemmExInfo(C.Structure): + _fields_ = [("route", C.c_uint32), ("core_type", C.c_uint32), ("core_calls", C.c_uint64), ("host_fixed", C.c_uint64)] + + +class GemmExArgs(C.Structure): + _fields_ = [("op_a", C.c_int), ("op_b", C.c_int), ("m", C.c_uint64), ("n", C.c_uint64), ("k", C.c_uint64), + ("batch", C.c_uint64), ("a_type", C.c_int), ("b_type", C.c_int), ("c_type", C.c_int), + ("a", C.c_void_p), ("lda", C.c_uint64), ("stride_a", C.c_uint64), + ("b", C.c_void_p), ("ldb", C.c_uint64), ("stride_b", C.c_uint64), + ("c", C.c_void_p), ("ldc", C.c_uint64), ("stride_c", C.c_uint64), + ("alpha", C.c_float), ("beta", C.c_float), ("compute", C.c_int), ("scale", C.c_int), + ("scale_a", C.c_void_p), ("scale_b", C.c_void_p), ("scale_stride_a", C.c_uint64), + ("scale_stride_b", C.c_uint64), ("block_m", C.c_uint32), ("block_n", C.c_uint32), + ("block_k", C.c_uint32), ("info", C.POINTER(GemmExInfo))] + + +EW_RMSNORM, EW_ROPE, EW_SWIGLU = 3, 4, 5 +ATTN_NO_MAX, ATTN_KV_HEAD, ATTN_SLOT, ATTN_NO_RESCALE, ATTN_Q_ROW, ATTN_OUT_ROW = 1, 2, 3, 4, 5, 6 # attention_api.h:217-226 +PRED_MIN = 4.0 # a mutant runs on a case only if the host predicts gate ratio >= this (NO_RESCALE) +GEMM_DT_F32, GEMM_DT_BF16 = 0, 1 +LIB = None + + +def info_dict(info): + d = {} + for f, _ in info._fields_: + v = getattr(info, f) + d[f] = v.decode() if isinstance(v, bytes) else v + return d + + +# ------------------------------------------------------------------ chip error bounds (docs/TOLERANCE.md, GPU tier) +def bound_rms(dim): + gs = g32(dim // 128 + 11) + return (1 + gs / (2 * (1 - gs))) * (1 + NEWTON) * (1 + U) ** 2 - 1 + + +def bound_silu(gabs): + e = torch.exp(gabs * g32(2)) * (1 + E_EX2) - 1 + return (1 + U) ** 2 * (1 + E_RCP) * (1 + e / (1 - e)) / (1 - U) - 1 + + +def bound_attn(ctx, hd, splits, lam): + """Relative bound (x A = p @ |v|) for one output row of the online-softmax kernels; ctx, lam tensors.""" + ctx = ctx.double() + nch = torch.ceil(ctx / hd) + ep = torch.exp(2 * lam * g32(hd + 3)) * (1 + E_EX2) - 1 + ea = torch.exp(2 * lam * U) * (1 + E_EX2) - 1 + ew = torch.exp(2 * lam * U) * (1 + E_HEXP) - 1 if splits > 1 else torch.zeros_like(lam) + eta = (1 + ep) * (1 + ea) ** (nch - 1) * (1 + ew) - 1 + gs = g32(ctx + 2 * nch + 2 * splits + 8) + alpha = (1 + eta) * (1 + gs) - 1 + phi = (1 + E_RCP) * (1 + U) - 1 + return (phi + alpha * (2 + phi)) / (1 - alpha) + + +def own_log2split(ctx, hd): + x, l = (ctx + hd - 1) // hd, 0 + while l < 4 and (2 << l) <= x: + l += 1 + return l + + +def gemm_steps(k): + parts = -(-k // 1808) + -(-k // 16384) + return 9 * (-(-k // 16) + parts) + parts + + +# ------------------------------------------------------------------ cases: each returns a dict with the chip call +def case_rmsnorm(g): + rows, dim = ri(g, 1, 8), pick(g, [128, 256, 384, 640, 1024, 2048, 4096, 128 * ri(g, 1, 128), 16384]) + x, w, eps = rn(g, rows, dim, scale=float(torch.rand(1, generator=g)) * 8 + 0.1), rn(g, dim), 2.0 ** -20 + xd = x.double() + ref = xd / torch.sqrt((xd * xd).mean(-1, keepdim=True) + eps) * w.double() + + def chip(): + out, info = torch.empty_like(x), EwInfo() + rc = LIB.omega_gpu_rmsnorm_f32(rows, dim, ptr(x), ptr(w), C.c_float(eps), ptr(out), C.byref(info)) + return rc, out, info + return dict(op="rmsnorm", shape=[rows, dim], host=od.rms_norm(x, w, eps), ref=ref, chip=chip, + t_chip=bound_rms(dim) * ref.abs() + FLOOR, t_host=host_tol(ref, dim, ref.abs()), + t_ref=ref_tol(dim, ref.abs()), mutants=[("ew", EW_RMSNORM, {})]) + + +def case_rope(g): + heads, hd = ri(g, 1, 8), pick(g, [2, 64, 128, 2 * ri(g, 1, 64), 2 * ri(g, 1, 1024), 2048]) + maxp = ri(g, 1, 64) + x, cos, sin = rn(g, heads, hd), rn(g, maxp, hd // 2), rn(g, maxp, hd // 2) + p = ri(g, 0, maxp - 1) + xd, c, s = x.double(), cos.double()[p], sin.double()[p] + x1, x2 = xd[:, : hd // 2], xd[:, hd // 2:] + ref = torch.cat([x1 * c - x2 * s, x2 * c + x1 * s], -1) + mag = torch.cat([x1.abs() * c.abs() + x2.abs() * s.abs(), x2.abs() * c.abs() + x1.abs() * s.abs()], -1) + ch, sh = cos[p].contiguous(), sin[p].contiguous() + host = od.rope(x.view(1, heads, 1, hd), cos, sin, torch.tensor([[p]]), rot=hd, interleaved=False).view(heads, hd) + + def chip(): + out, info = torch.empty_like(x), EwInfo() + rc = LIB.omega_gpu_rope_f32(heads, hd, ptr(x), ptr(ch), ptr(sh), ptr(out), C.byref(info)) + return rc, out, info + return dict(op="rope", shape=[heads, hd, p], host=host, ref=ref, chip=chip, t_chip=g32(2) * mag + FLOOR, + t_host=host_tol(ref, 2, mag), t_ref=ref_tol(2, mag), mutants=[("ew", EW_ROPE, {})]) + + +def case_swiglu(g, silu=False): + n = pick(g, [1, 127, 128, 129, ri(g, 1, 5000), ri(g, 1, 200000)]) + gate = rn(g, n, scale=pick(g, [1.0, 4.0, 16.0])).clamp(-80, 80) + up = torch.ones(n) if silu else rn(g, n, scale=4) + gd, ud = gate.double(), up.double() + ref = F.silu(gd) * ud + if silu: + host, n_h, mag = od.elementwise(od.SILU, gate), 1, ref.abs() + gd.abs() + else: + host, n_h, mag = od.elementwise(od.SWIGLU, gate, up), 1, ref.abs() + gd.abs() * (1 + ud.abs()) + + def chip(): + out, info = torch.empty_like(gate), EwInfo() + rc = LIB.omega_gpu_swiglu_f32(n, ptr(gate), ptr(up), ptr(out), C.byref(info)) + return rc, out, info + return dict(op="silu" if silu else "swiglu", shape=[n], host=host, ref=ref, chip=chip, + t_chip=bound_silu(gd.abs()) * ref.abs() + FLOOR, t_host=host_tol(ref, n_h, mag), t_ref=ref_tol(n_h, mag), + mutants=[("ew", EW_SWIGLU, {})]) + + +def attn_stats(qd, kd, vd, scale, mask=None): + """qd [H,Sq,D], kd/vd [H,Skv,D] float64 (kv heads already repeated). Returns ref, A = p@|v|, lam [H,Sq,1].""" + lg = qd @ kd.transpose(-1, -2) * scale + lam = qd.abs() @ kd.abs().transpose(-1, -2) * scale + if mask is not None: + lg = lg.masked_fill(mask, float("-inf")) + lam = lam.masked_fill(mask, 0.0) + p = torch.softmax(lg, -1) + return p @ vd, p @ vd.abs(), lam.amax(-1, keepdim=True) + + +def nores_output(qd, kd, vd, scale, hd, mask=None): + """Host model of CUDApp's NO_RESCALE mutant with one CTA per head (split 1): the chunk loop walks HD tokens at a + time from token 0, rescales L by alpha = exp(M_old - M_new) but leaves the accumulator unscaled + (src/omega_gpu_attention_api.c:571-572). Same shapes as attn_stats; returns the mutant's output.""" + lg = qd @ kd.transpose(-1, -2) * scale + if mask is not None: + lg = lg.masked_fill(mask, float("-inf")) + m = torch.full(lg.shape[:-1] + (1,), float("-inf"), dtype=lg.dtype) + L = torch.zeros_like(m) + acc = torch.zeros(lg.shape[:-1] + (vd.shape[-1],), dtype=lg.dtype) + for c0 in range(0, lg.shape[-1], hd): + lc = lg[..., c0:c0 + hd] + mn = torch.maximum(m, lc.amax(-1, keepdim=True)) + safe = torch.where(torch.isinf(mn), torch.zeros_like(mn), mn) # a row with every key masked so far + L = L * torch.exp(m - safe) + torch.exp(lc - safe).sum(-1, keepdim=True) + acc = acc + torch.exp(lc - safe) @ vd[..., c0:c0 + hd, :] + m = mn + return acc / L + + +def gate_pred(mut, host, t_chip, t_host): + """max |mutant - host| / (T_chip + T_host): the gate ratio the mutant is predicted to reach.""" + return float(((mut - host.double()).abs() / (t_chip + t_host)).max()) + + +def row_mutants(nq, nkv): + """Head-wiring mutants, on the shapes CUDApp's own tests run them (tests/gpu_attention_test.c:379,524).""" + m = [("attn", ATTN_KV_HEAD, {})] if nkv >= 2 else [] + if nq >= 2: # both swap rows h and h ^ 1: num_q_heads even (omega_gpu_attention_api.h:222-224) + m += [("attn", ATTN_Q_ROW, {}), ("attn", ATTN_OUT_ROW, {})] + return m + + +def visible(pred): + """A mutant joins a case only if the host predicts it leaves the gate by PRED_MIN (no equivalent mutants).""" + return pred >= PRED_MIN + + +def case_softmax(g): + """softmax over c <= 64 logits through the attention kernel: D = 64, K = V = I[:c], q = 8 x (scale 1/8 exact).""" + c = ri(g, 1, 64) + x = rn(g, c, scale=float(torch.rand(1, generator=g)) * 8 + 0.1) + if ri(g, 0, 1): + x = x * 300 # far past exp overflow: only a max-subtracted softmax survives (the NO_MAX mutant overflows) + q = torch.zeros(64) + q[:c] = 8 * x + eye = torch.zeros(c, 1, 64) + eye[:, 0, :c] = torch.eye(c) + xd = x.double() + r = torch.softmax(xd, -1) + ref = torch.zeros(64, dtype=torch.float64) + ref[:c] = r + span = (xd - xd.amax()).abs() + host = torch.zeros(64) + host[:c] = od.softmax(x.view(1, c)).view(c) + mag = torch.zeros(64, dtype=torch.float64) + mag[:c] = r * (1 + span) + r.amax() * span.amax() + lam = xd.abs().amax().view(1) + tc = bound_attn(torch.tensor([c]), 64, 1, lam) * ref.abs() + FLOOR # A = p @ |e_d| = p_d = |ref| + + def chip(): + out, info = torch.empty(64), AttnInfo() + rc = LIB.omega_gpu_gqa_attention_f32(ptr(q), ptr(eye), ptr(eye), c, 1, 1, 64, ptr(out), C.byref(info)) + return rc, out, info + # NO_MAX is exact softmax unless 2^(x log2 e) leaves the f32 range (CUDApp tests/gpu_attention_test.c:523) + lo2 = float(xd.amax()) * math.log2(math.e) + muts = [("attn", ATTN_NO_MAX, dict(pred=math.inf))] if lo2 > 128 or lo2 < -126 else [] + return dict(op="softmax_via_attn", shape=[c, round(float(x.abs().max()), 1)], host=host, ref=ref, chip=chip, + t_chip=tc, t_host=host_tol(ref, c, mag), t_ref=ref_tol(c, mag), mutants=muts) + + +def heads(g, max_q): + while True: + nkv, rep = pick(g, [1, 2, 4, 8]), pick(g, [1, 2, 4, 8]) + if nkv * rep <= max_q: + return nkv, rep + + +def case_gqa(g): + hd = pick(g, [64, 128]) + nkv, rep = heads(g, 64) + nq = nkv * rep + ctx = pick(g, [1, 2, hd - 1, hd, hd + 1, ri(g, 1, 512), ri(g, 1, 512), ri(g, 1, 4096), 4096]) + q = rn(g, nq, hd, scale=float(torch.rand(1, generator=g)) * 2 + 0.1) + k, v = rn(g, ctx, nkv, hd), rn(g, ctx, nkv, hd) + sc = hd ** -0.5 + kd, vd = (t.double().permute(1, 0, 2).repeat_interleave(rep, 0) for t in (k, v)) + ref, A, lam = attn_stats(q.double()[:, None], kd, vd, sc) + ref, A, lam = ref[:, 0], A[:, 0], lam[:, 0] + host = od.attention(q.view(1, nq, 1, hd), k.permute(1, 0, 2)[None].contiguous(), v.permute(1, 0, 2)[None].contiguous(), + causal=False).view(nq, hd) + mag = A * (1 + 2 * lam) + ref.abs() + tc = bound_attn(torch.full((nq, 1), ctx), hd, 1, lam) * A + FLOOR + + def chip(): + out, info = torch.empty(nq, hd), AttnInfo() + rc = LIB.omega_gpu_gqa_attention_f32(ptr(q), ptr(k), ptr(v), ctx, nq, nkv, hd, ptr(out), C.byref(info)) + return rc, out, info + t_host = host_tol(ref, hd + ctx, mag) + muts = row_mutants(nq, nkv) + pred = gate_pred(nores_output(q.double()[:, None], kd, vd, sc, hd)[:, 0], host, tc, t_host) + if visible(pred): + muts.append(("attn", ATTN_NO_RESCALE, dict(pred=pred))) + return dict(op="attention_decode", shape=[nq, nkv, hd, ctx], host=host, ref=ref, chip=chip, t_chip=tc, + t_host=t_host, t_ref=ref_tol(hd + ctx, mag), mutants=muts) + + +def case_rows(g): + hd = pick(g, [64, 128]) + nkv, rep = heads(g, 16) + nq, rows = nkv * rep, pick(g, [1, 2, ri(g, 1, 64), ri(g, 64, 200)]) + q = rn(g, rows, nq, hd, scale=float(torch.rand(1, generator=g)) * 2 + 0.1) + k, v = rn(g, rows, nkv, hd), rn(g, rows, nkv, hd) + kd, vd = (t.double().permute(1, 0, 2).repeat_interleave(rep, 0) for t in (k, v)) + mask = torch.ones(rows, rows, dtype=torch.bool).triu(1) + ref, A, lam = attn_stats(q.double().permute(1, 0, 2), kd, vd, hd ** -0.5, mask) # [nq, rows, hd] + host = od.attention(q.permute(1, 0, 2)[None].contiguous(), k.permute(1, 0, 2)[None].contiguous(), + v.permute(1, 0, 2)[None].contiguous(), causal=True)[0] + ctx = torch.arange(1, rows + 1).view(1, rows, 1).expand(nq, rows, 1) + tc = bound_attn(ctx, hd, 1, lam) * A + FLOOR + mag = A * (1 + 2 * lam) + ref.abs() + perm = (1, 0, 2) + + def chip(): + out, info = torch.empty(rows, nq, hd), AttnInfo() + rc = LIB.omega_gpu_gqa_attention_rows_f32(ptr(q), ptr(k), ptr(v), 0, rows, nq, nkv, hd, ptr(out), C.byref(info)) + return rc, out.permute(*perm), info + t_host = host_tol(ref, hd + rows, mag) + muts = row_mutants(nq, nkv) + pred = gate_pred(nores_output(q.double().permute(1, 0, 2), kd, vd, hd ** -0.5, hd, mask), host, tc, t_host) + if visible(pred): + muts.append(("attn", ATTN_NO_RESCALE, dict(pred=pred))) + return dict(op="attention_prefill_causal", shape=[nq, nkv, hd, rows], host=host, ref=ref, chip=chip, t_chip=tc, + t_host=t_host, t_ref=ref_tol(hd + rows, mag), mutants=muts) + + +def case_paged(g, single=False): + hd = pick(g, [64, 128]) + nkv, rep = heads(g, 32) + nq, B, bs = nkv * rep, 1 if single else ri(g, 1, 4), pick(g, [8, 16, 32, 64]) + maxb = ri(g, 1, 2048 // bs) + nblk = B * maxb + ri(g, 0, 4) + lens = torch.randint(1, maxb * bs + 1, (B,), generator=g) + table = torch.stack([torch.randperm(nblk, generator=g)[:maxb] for _ in range(B)]) + q = rn(g, B, nq, hd, scale=float(torch.rand(1, generator=g)) * 2 + 0.1) + kc, vc = (rn(g, nblk, bs, nkv, hd).bfloat16().float() for _ in range(2)) + host = od.paged_decode(q, kc, vc, table, lens) + refs, As, lams, nores = [], [], [], [] + for i in range(B): + kb, vb = (t[table[i]].reshape(-1, nkv, hd)[: lens[i]].double().permute(1, 0, 2).repeat_interleave(rep, 0) + for t in (kc, vc)) + r, a, lm = attn_stats(q[i].double()[:, None], kb, vb, hd ** -0.5) + refs.append(r[:, 0]), As.append(a[:, 0]), lams.append(lm[:, 0]) + nores.append(nores_output(q[i].double()[:, None], kb, vb, hd ** -0.5, hd)[:, 0]) + ref, A, lam = torch.stack(refs), torch.stack(As), torch.stack(lams) + splits = 1 << max(own_log2split(int(n), hd) for n in lens) + tc = bound_attn(lens.view(B, 1, 1).expand(B, nq, 1), hd, splits, lam) * A + FLOOR + mag = A * (1 + 2 * lam) + ref.abs() + pool = torch.stack([kc, vc], 1).bfloat16().contiguous() # [block][plane][token][head][d], one layer + lay = KvLayout() + lay.head_stride_bytes, lay.token_stride_bytes = hd * 2, nkv * hd * 2 + lay.kv_plane_stride_bytes = bs * lay.token_stride_bytes + lay.layer_stride_bytes = lay.block_stride_bytes = 2 * lay.kv_plane_stride_bytes + lay.pool_bytes, lay.num_blocks, lay.num_layers, lay.block_size = nblk * lay.block_stride_bytes, nblk, 1, bs + tab32, len32 = table.to(torch.int32).contiguous(), lens.to(torch.int32).contiguous() + ids = table[0, : -(-int(lens[0]) // bs)].to(torch.int32).contiguous() # single call: uint32 block ids + + def chip(): + out, info = torch.empty(B, nq, hd), AttnInfo() + if single: + rc = LIB.omega_gpu_paged_attention_bf16(ptr(q), ptr(pool), C.byref(lay), ptr(ids), ids.numel(), int(lens[0]), + 0, nq, nkv, hd, ptr(out), C.byref(info)) + else: + rc = LIB.omega_gpu_paged_attention_batch_bf16(ptr(q), ptr(pool), C.byref(lay), ptr(tab32), ptr(len32), maxb, + B, 0, nq, nkv, hd, ptr(out), C.byref(info)) + return rc, out, info + n_h = hd + maxb * bs + t_host = host_tol(ref, n_h, mag) + muts = row_mutants(nq, nkv) + if int(lens.min()) >= 2: # one token: softmax weight 1 whatever K says, so a K/V slot mismatch is invisible + muts.append(("attn", ATTN_SLOT, {})) + # NO_RESCALE runs with one CTA per head as CUDApp's own test does (cut J gives each split one chunk otherwise) + pred = gate_pred(torch.stack(nores), host, tc, t_host) + if visible(pred): + muts.append(("attn", ATTN_NO_RESCALE, dict(pred=pred, split0=True))) + return dict(op="paged_decode_single" if single else "paged_decode_batch", + shape=[B, nq, nkv, hd, bs, maxb, int(lens.max()), splits], host=host, ref=ref, + chip=chip, t_chip=tc, t_host=t_host, t_ref=ref_tol(n_h, mag), mutants=muts) + + +def gemm_call(a, a_t, b, b_t, m, n, k, op_b, ldb, c, beta): + info = GemmExInfo() + args = GemmExArgs(op_a=0, op_b=op_b, m=m, n=n, k=k, batch=1, a_type=a_t, b_type=b_t, c_type=GEMM_DT_F32, + a=a.data_ptr(), lda=0, b=b.data_ptr(), ldb=ldb, c=c.data_ptr(), ldc=0, alpha=1.0, beta=beta, + compute=0, scale=0, info=C.pointer(info)) + return LIB.omega_gpu_gemm_ex(C.byref(args)), info + + +def case_matmul(g): + M, N = pick(g, [1, 16, ri(g, 1, 70)]), pick(g, [1, 8, ri(g, 1, 300)]) + K = pick(g, [1, 15, 16, 17, ri(g, 1, 300), ri(g, 1, 2048), 1808, 1809]) + A, Bm = rn(g, M, K), rn(g, K, N) + tb, has_bias = bool(ri(g, 0, 1)), ri(g, 0, 3) > 0 + bv = rn(g, N) if has_bias else torch.zeros(N) + Bs = Bm.t().contiguous() if tb else Bm + host = od.matmul(A, Bs, bv if has_bias else None, trans_b=tb) + ref = A.double() @ Bm.double() + bv.double() + sab = A.double().abs() @ Bm.double().abs() + sapb = A.double().abs().sum(1, keepdim=True) + Bm.double().abs().sum(0, keepdim=True) + acc = ((1 + C_HMMA) ** gemm_steps(K) - 1) * sab + 2.0 ** -124 * sapb + K * 2.0 ** -140 + tc = acc + 2.0 ** -52 * (sab + bv.double().abs()) + U * (ref.abs() + acc) + TINY + mag = sab + bv.double().abs() + + def chip(): + c = bv.expand(M, N).contiguous() + rc, info = gemm_call(A, GEMM_DT_F32, Bs, GEMM_DT_F32, M, N, K, 1 if tb else 0, K if tb else N, c, + 1.0 if has_bias else 0.0) + return rc, c, info + mut = 2 if tb and N > 1 and K > 1 else (1 if K <= 256 else None) + return dict(op="matmul", shape=[M, N, K, int(tb), int(has_bias)], host=host, ref=ref, chip=chip, t_chip=tc, + t_host=host_tol(ref, K, mag), t_ref=ref_tol(K, mag), mutants=[("gemm", mut, {})] if mut else []) + + +GROUPS = {"ew": [case_rmsnorm, case_rope, case_swiglu, lambda g: case_swiglu(g, silu=True)], + "attn": [case_softmax, case_gqa, case_rows, case_paged, lambda g: case_paged(g, single=True)], + "gemm": [case_matmul]} + + +# ------------------------------------------------------------------ the CUDApp#139 per-step bound probe (host model: scratch) +def probe_hmma(): + """bf16 native gemm_ex, k = 1808 (one k part): a = [1, t x 1807], b = 1, t = 0x1.fcp-26. The chip-exact HMMA + model {16,2,RZ,nominal} truncates every t at alignment to the running 1.0, so the result is 1.0 and the error is + 1807 t = 5.343e-5, above the old stated bound (steps+4) 2^-22 sab = 2.843e-5 and below ((1+c)^steps - 1) sab.""" + k, t = 1808, float.fromhex("0x1.fcp-26") + a = torch.full((1, k), t) + a[0, 0] = 1.0 + a16, b16 = a.bfloat16().contiguous(), torch.ones(k, 1).bfloat16().contiguous() + assert torch.equal(a16.float(), a) + c = torch.zeros(1, 1) + rc, info = gemm_call(a16, GEMM_DT_BF16, b16, GEMM_DT_BF16, 1, 1, k, 0, 1, c, 0.0) + ref = 1.0 + (k - 1) * t + parts = 2 + steps = -(-k // 16) + parts + err = abs(ref - float(c[0, 0])) + return dict(rc=rc, got=float(c[0, 0]).hex(), ref=ref, err=err, old_bound=(steps + 4) * 2.0 ** -22 * ref + U * ref, + new_bound=((1 + C_HMMA) ** steps - 1) * ref + U * ref, model_prediction="0x1.0000000000000p+0", + info=info_dict(info)) + + +class GemmInfo(C.Structure): # OmegaGpuGemmInfo, src/omega_gpu_gemm.h:93-98 + _fields_ = [("pack_ns", C.c_uint64), ("main_ns", C.c_uint64), ("call_ns", C.c_uint64), ("gpr", C.c_uint32 * 3)] + + +def gemm_chip_witness(): + """OmegaGemmExInfo carries no device field, so the receipt also runs the core gemm_ex calls by default (chip_core -> + omega_gpu_gemm_ld, src/omega_gpu_gemm_ex.c:20-22; this harness never calls omega_gpu_gemm_ex_set_backend) directly, + with its kernel timings and register counts, and checks the product bit-for-bit against gemm_ex native bf16.""" + g = torch.Generator().manual_seed(1) + a = torch.randn(32, 64, generator=g).bfloat16().contiguous() + b = torch.randn(64, 16, generator=g).bfloat16().contiguous() + c1, c2, info = torch.zeros(32, 16), torch.zeros(32, 16), GemmInfo() + rc1 = LIB.omega_gpu_gemm_ld(0, 0, 32, 16, 64, ptr(a), C.c_uint64(0), ptr(b), C.c_uint64(0), ptr(c1), C.byref(info)) + rc2, xinfo = gemm_call(a, GEMM_DT_BF16, b, GEMM_DT_BF16, 32, 16, 64, 0, 16, c2, 0.0) + ok = rc1 == 0 and rc2 == 0 and info.main_ns > 0 and torch.equal(c1, c2) + return dict(ok=ok, rc_core=rc1, rc_ex=rc2, pack_ns=info.pack_ns, main_ns=info.main_ns, call_ns=info.call_ns, + gpr=list(info.gpr), bit_identical=bool(torch.equal(c1, c2)), ex_info=info_dict(xinfo)) + +# ------------------------------------------------------------------ chip session discipline +def window_open(): + try: + lines = [ln for ln in open(BOARD) if re.match(r"^[0-9TZ:.-]+ Main: WINDOW-(START|END|ABORTED)", ln)] + except OSError: + return True + return bool(lines) and "WINDOW-START" in lines[-1] + + +def board(msg): + with open(BOARD, "a") as f: + f.write(f"{time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime())} {LANE}: {msg}\n") + + +def health(): + r = subprocess.run(["curl", "-s", "-m", "5", "127.0.0.1:18091/health"], capture_output=True, text=True) + return r.stdout.strip() or f"rc={r.returncode}" + + +def judge(case, rc, y): + if rc != 0: + return dict(rc=rc, gate_viol=-1, exact_viol=-1, gate_ratio=float("inf"), exact_ratio=float("inf")) + y = y.double().reshape(case["ref"].shape) + out = {"rc": 0} + for key, base, tol in (("gate", case["host"].double().reshape(case["ref"].shape), case["t_chip"] + case["t_host"]), + ("exact", case["ref"], case["t_chip"] + case["t_ref"])): + err = (y - base).abs() + out[f"{key}_viol"] = int((~(err <= tol)).sum()) + out[f"{key}_ratio"] = float((err / tol).nan_to_num(float("inf")).max()) + return out + + +MUTANT_SETTER = {"ew": "omega_gpu_elementwise_test_set_mutant", "attn": "omega_gpu_attention_test_set_mutant", + "gemm": "omega_gpu_gemm_ex_test_set_mutant"} + + +def set_mutant(kind, m): + getattr(LIB, MUTANT_SETTER[kind])(m) + + +def main(): + global LIB + ap = argparse.ArgumentParser() + ap.add_argument("--lib", required=True) + ap.add_argument("--group", required=True, choices=sorted(GROUPS)) + ap.add_argument("--cases", type=int, default=24) + ap.add_argument("--mutant-cases", type=int, default=4) + ap.add_argument("--seed", type=int, default=7) + ap.add_argument("--cudapp-sha", required=True) + ap.add_argument("--out", required=True) + ap.add_argument("--hold", action="store_true") + a = ap.parse_args() + LIB = C.CDLL(os.path.abspath(a.lib)) + g = torch.Generator().manual_seed(a.seed) + t0 = time.time() + cases = [mk(g) for _ in range(a.cases) for mk in GROUPS[a.group]] + print(f"prepared {len(cases)} cases on the host in {time.time() - t0:.1f}s", flush=True) + for kind in {m[0] for cs in cases for m in cs["mutants"]}: + getattr(LIB, MUTANT_SETTER[kind]) # an absent hook fails here, before any hold + rec = dict(lane=LANE, group=a.group, seed=a.seed, cases_per_op=a.cases, cudapp_sha=a.cudapp_sha, + lib=os.path.abspath(a.lib), lib_sha256=hashlib.sha256(open(a.lib, "rb").read()).hexdigest(), + harness_sha256=hashlib.sha256(open(os.path.abspath(__file__), "rb").read()).hexdigest(), + torch=torch.__version__, host=os.uname().nodename, kernel=os.uname().release, + driver=open("/proc/driver/nvidia/version").readline().strip(), ops={}, mutants={}, cases=[]) + if not a.hold: + print("dry run: no --hold, chip not touched") + return 0 + if window_open(): + print("REFUSED: Main WINDOW-START without END/ABORTED on BOARD; no hold taken") + return 2 + fd = os.open(LOCK, os.O_RDWR | os.O_CREAT, 0o666) + deadline = time.time() + 900 + while True: + try: + fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) + break + except BlockingIOError: + if time.time() > deadline: + print("REFUSED: lock not free within 900 s") + return 2 + time.sleep(2) + if window_open(): + os.close(fd) + print("REFUSED: window opened while waiting") + return 2 + rec["health_before"] = health() + rec["utc_start"] = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()) + board(f"GPU-START omega-dnn GPU tier group={a.group} (CUDApp kernels, no model) health={rec['health_before'][:60]}") + t_hold = time.time() + bad = 0 + try: + for cs in cases: + rc, y, info = cs["chip"]() + j = judge(cs, rc, y) + row = rec["ops"].setdefault(cs["op"], dict(cases=0, gate_viol=0, exact_viol=0, rc_fail=0, gate_worst=0.0, + exact_worst=0.0, chip_calls=0, elapsed_ns=0)) + row["cases"] += 1 + row["rc_fail"] += rc != 0 + row["gate_viol"] += max(j["gate_viol"], 0) + row["exact_viol"] += max(j["exact_viol"], 0) + row["gate_worst"] = max(row["gate_worst"], j["gate_ratio"]) + row["exact_worst"] = max(row["exact_worst"], j["exact_ratio"]) + inf = info_dict(info) + row["chip_calls"] += inf.get("chip_calls", inf.get("core_calls", 0)) + row["elapsed_ns"] += inf.get("elapsed_ns", 0) + for f in ("target_chip", "sm_architecture", "route", "core_type"): + if f in inf: + row[f] = inf[f] + rec["cases"].append(dict(op=cs["op"], shape=cs["shape"], **j)) + bad += (rc != 0) + (j["gate_viol"] != 0) + # negative controls: CUDApp's own mutants must fail the gate. A case only carries a mutant the host + # predicts to be visible on it (attention: nores_output; docs/TOLERANCE.md, GPU tier). + done = {} + for cs in cases: + for kind, m, opt in cs["mutants"]: + key = f"{cs['op']}:{kind}:{m}" + if done.get(key, 0) >= a.mutant_cases: + continue + done[key] = done.get(key, 0) + 1 + if opt.get("split0"): + LIB.omega_gpu_attention_test_set_split(0) + set_mutant(kind, m) + try: + rc, y, _ = cs["chip"]() + finally: + set_mutant(kind, 0) + if opt.get("split0"): + LIB.omega_gpu_attention_test_set_split(-1) + j = judge(cs, rc, y) + killed = rc == 0 and j["gate_viol"] > 0 + row = rec["mutants"].setdefault(key, dict(runs=0, killed=0, refused=0, survived=0, runs_detail=[])) + row["runs"] += 1 + row["killed"] += killed + row["refused"] += rc != 0 + row["survived"] += rc == 0 and not killed + row["runs_detail"].append(dict(shape=cs["shape"], rc=rc, gate_viol=j["gate_viol"], + gate_ratio=j["gate_ratio"], predicted_ratio=opt.get("pred"), + split0=bool(opt.get("split0")))) + bad += rc == 0 and not killed + if a.group == "gemm": + rec["probe_cudapp139_hmma_bound"] = probe_hmma() + rec["gemm_chip_witness"] = gemm_chip_witness() + bad += not rec["gemm_chip_witness"]["ok"] + except Exception as e: # recorded in the receipt as a failure; the hold is still released below + rec["error"] = repr(e) + bad += 1 + finally: + rec["hold_s"] = round(time.time() - t_hold, 1) + rec["utc_end"] = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()) + rec["health_after"] = health() + board(f"GPU-END group={a.group} hold={rec['hold_s']}s health={rec['health_after'][:60]}") + fcntl.flock(fd, fcntl.LOCK_UN) + os.close(fd) + rec["result"] = "PASS" if bad == 0 else "FAIL" + with open(a.out, "w") as f: + json.dump(rec, f, indent=1) + for name, r in rec["ops"].items(): + print(f"{name:26s} cases={r['cases']:3d} gate_worst={r['gate_worst']:.3g} gate_viol={r['gate_viol']} " + f"exact_worst={r['exact_worst']:.3g} exact_viol={r['exact_viol']} rc_fail={r['rc_fail']} " + f"chip={r.get('target_chip', '')} sm={r.get('sm_architecture', '')}") + for key, r in rec["mutants"].items(): + print(f"MUTANT {key:34s} runs={r['runs']} killed={r['killed']} refused={r['refused']} survived={r['survived']}") + if "probe_cudapp139_hmma_bound" in rec: + print("PROBE", json.dumps(rec["probe_cudapp139_hmma_bound"])) + if "gemm_chip_witness" in rec: + print("WITNESS", json.dumps(rec["gemm_chip_witness"])) + print(f"RESULT {rec['result']} hold={rec['hold_s']}s") + return 0 if bad == 0 else 1 + + +if __name__ == "__main__": + sys.exit(main()) From 397dd32a735f3d10e124d6077ba19fef48aebb69 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Thu, 29 Oct 2026 12:40:58 -0500 Subject: [PATCH 3/3] fix(tests): avoid overly permissive mask in lock file creation --- tests/test_gpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_gpu.py b/tests/test_gpu.py index 09de755..3569076 100644 --- a/tests/test_gpu.py +++ b/tests/test_gpu.py @@ -577,7 +577,7 @@ def main(): if window_open(): print("REFUSED: Main WINDOW-START without END/ABORTED on BOARD; no hold taken") return 2 - fd = os.open(LOCK, os.O_RDWR | os.O_CREAT, 0o666) + fd = os.open(LOCK, os.O_RDWR | os.O_CREAT, 0o600) deadline = time.time() + 900 while True: try: