Commit 4f5d548
committed
fix(§SO1): smem-fit batched B2 — HPC=2 LAUNCHES on sm_121 (DYX single-tile + fp16 dY band)
MEASURED gb10 sm_121. The HPC=2 batched B2 GEMM twin previously FAILED TO LAUNCH:
static=57344+dynamic=66560=123904 B > per-block opt-in cap 101376 B. Two precision-
disciplined reductions to chunk_scan_combine_bwd_cuda_prim_gemm_batched ONLY (v1 +
§27 prims byte-identical, flag-gated):
1. DYX (HPC,L,L) fp32 band -> single reused (L,L) tile (fuse dseg into dC_diag
head-loop; precision-neutral, atomic_adds commute) -> -16384 B at HPC=2.
2. dY result band fp32 -> fp16 (every consumer downcasts to fp16 MMA operand or
scales by fp32; dD uses fp32 local) -> -16384 B. 1e-3 gate is the arbiter.
Total ~91136 B < cap => HPC=2 LAUNCHES (no InternalError, kernel runs).
MEASURED: batched HPC=2 = 1279 ms = 0.708x vs v1-threaded 905 ms => still NO-GO.
SASS-confirmed per-64 MMA in serial head loop (tl::mma_sync 16,8,16; M-loop i<2
INSIDE for hh<2). Tall-M offset-relax is a non-starter: 3/4 B2 GEMMs are block-
diagonal (distinct per-head operands), so a dense M=HPC*L MMA computes HPC^2 cross-
head garbage; only dC_diag shares per-GROUP B/C. Parity: full 8-grad chain
overall_pass=true, worst 5.46e-04 < 1e-3 (incl dD fp16-cache, all elements). z3:
ALL_POSITIVES_PROVED_AND_NON_VACUOUS. Metal L=32 retile: sizing+z3 done but sub-
chunk body unimplemented (RAISES, Apple-GPU numeric deferred). RULE#1: clear cap-
named raise (no silent clamp); prod prims byte-identical; batched stays OFF in prod.
Core question RESOLVED: gb10 loads OUR source fork (tilelang+tvm from
/home/dave/source/tilelang/...), NOT a pip/stale wheel — libtvm_runtime.so mtime
2026-06-06 02:04, carries the cap-named string. Wrong-tilelang hypothesis falsified.
See docs/GB10-SMEM-OFFSET-FIX.md (§SO1).1 parent b9249bb commit 4f5d548
2 files changed
Lines changed: 196 additions & 29 deletions
Lines changed: 54 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2370 | 2370 | | |
2371 | 2371 | | |
2372 | 2372 | | |
2373 | | - | |
2374 | | - | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
2375 | 2391 | | |
2376 | 2392 | | |
2377 | 2393 | | |
| |||
2414 | 2430 | | |
2415 | 2431 | | |
2416 | 2432 | | |
2417 | | - | |
| 2433 | + | |
2418 | 2434 | | |
2419 | 2435 | | |
2420 | 2436 | | |
| |||
2435 | 2451 | | |
2436 | 2452 | | |
2437 | 2453 | | |
2438 | | - | |
2439 | | - | |
2440 | | - | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
2441 | 2462 | | |
2442 | 2463 | | |
| 2464 | + | |
| 2465 | + | |
2443 | 2466 | | |
2444 | 2467 | | |
2445 | 2468 | | |
| |||
2455 | 2478 | | |
2456 | 2479 | | |
2457 | 2480 | | |
2458 | | - | |
| 2481 | + | |
2459 | 2482 | | |
2460 | | - | |
2461 | | - | |
2462 | | - | |
2463 | | - | |
2464 | | - | |
2465 | 2483 | | |
2466 | 2484 | | |
2467 | 2485 | | |
| |||
2489 | 2507 | | |
2490 | 2508 | | |
2491 | 2509 | | |
2492 | | - | |
| 2510 | + | |
2493 | 2511 | | |
2494 | 2512 | | |
2495 | 2513 | | |
| |||
2521 | 2539 | | |
2522 | 2540 | | |
2523 | 2541 | | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
2524 | 2561 | | |
2525 | 2562 | | |
2526 | 2563 | | |
| |||
2554 | 2591 | | |
2555 | 2592 | | |
2556 | 2593 | | |
2557 | | - | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
2558 | 2598 | | |
2559 | 2599 | | |
2560 | 2600 | | |
| |||
2578 | 2618 | | |
2579 | 2619 | | |
2580 | 2620 | | |
2581 | | - | |
2582 | | - | |
2583 | | - | |
2584 | | - | |
2585 | | - | |
2586 | | - | |
2587 | | - | |
2588 | | - | |
2589 | | - | |
2590 | | - | |
2591 | | - | |
2592 | | - | |
2593 | | - | |
2594 | | - | |
2595 | | - | |
2596 | 2621 | | |
2597 | 2622 | | |
2598 | 2623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
0 commit comments