Commit Graph

462 Commits

Author SHA1 Message Date
f21defe6dd D1.4: Remove --opt-level 0 from hd512 test (use default opt level) 2026-05-24 16:42:01 +00:00
18bf723bde D1.4: Fix merge test - use use_smem_p=False for hd=256 kernel (SMEM budget) 2026-05-24 16:36:48 +00:00
8ace674349 D1.4: Add external k_sub merge test for hd=512 (avoids slow in-kernel k_sub compilation) 2026-05-24 16:31:06 +00:00
939b9400f1 D1.4: Use --opt-level 0 only (ptxas -j not supported, MLIR is the bottleneck) 2026-05-24 15:43:17 +00:00
b20a239bf3 D1.4: Use options string for compile flags (--ptxas-options -j64 --opt-level 0) 2026-05-24 15:40:39 +00:00
7b1b13bdea D1.4: Add PtxasOptions -j64 + OptLevel(0) for faster hd=512 compilation 2026-05-24 15:36:35 +00:00
a06f83e27f D1.4: Fix regression test for un-normalized O output (D5a) 2026-05-24 15:13:16 +00:00
93a4418246 Fix: add cutlass import to test_d1_qk512 2026-05-24 14:20:32 +00:00
9f8f5c39b6 Fix: add cpasync import to test_d1_qk512 2026-05-24 14:20:01 +00:00
0c6c3ea956 D1.4: Add hd=512 QK-only and standalone test for compilation debugging 2026-05-24 14:19:26 +00:00
59195c7d17 D1.4: Reduce pv_n_tile to 128 for hd=512 to fit SMEM budget (192KB) 2026-05-24 08:07:32 +00:00
a325f4ca5f D1: Full test with TMEM-P at hd=64,128,256,512 2026-05-24 04:07:40 +00:00
d3a3a6988a D1: SMEM-P test at hd=128 2026-05-24 03:48:37 +00:00
44b72cc570 D1: Fix SMEM-P (coordinate store), LSE (FP32), add TMEM-P-only test 2026-05-24 03:27:14 +00:00
66aaadadbf D1: LSE diagnostic at various hd 2026-05-24 03:23:16 +00:00
cadc11d5d2 D1: Add diagnostic test (TMEM-P vs SMEM-P at various hd) 2026-05-24 03:22:23 +00:00
64e11caf97 D1 test: compare un-norm O + norm using ref row_sum + LSE verification 2026-05-24 03:21:01 +00:00
b471579140 D1.5: Always output un-normalized O + LSE (epilogue_tma_store only, no TMEM round-trip normalize) 2026-05-24 03:18:38 +00:00
19a65ee7fa test: add try/except for SMEM-P coord test 2026-05-24 02:15:07 +00:00
ce5818038d test: use FmhaKernel for SMEM-P coord test 2026-05-24 01:59:25 +00:00
2e0fc3db74 test: SMEM-P coordinate verification test 2026-05-24 01:58:32 +00:00
1209b7b394 fix: proper v_major from tensor 2026-05-24 01:55:37 +00:00
5b04bc4d45 fix: COL_MAJOR 2026-05-24 01:54:30 +00:00
c6139c47e3 fix: hardcode v_major for diag test 2026-05-24 01:54:20 +00:00
1e3926443c diag: use FmhaKernel setup for cotiled test 2026-05-24 01:54:08 +00:00
60fa7fb8f4 fix: v_major derivation in cotiled diag 2026-05-24 01:53:40 +00:00
2318bc3d77 diag: simplified cotiled layout test 2026-05-24 01:53:24 +00:00
7cdf61d6b0 fix: LayoutEnum import in cotiled diag test 2026-05-24 01:52:58 +00:00
e31ab787a1 diag: layout composition test for make_cotiled_copy SMEM-P 2026-05-24 01:48:50 +00:00
a22014d21f D1.5: Replace TMEM round-trip normalize with correction epilog (one-way: TMEM→reg→SMEM→GMEM)
- Remove noop + normalize TMEM round-trips (3% error per trip)
- Use epilogue_tmem_copy_and_partition for TMEM→reg (paired atoms)
- Use epilogue_smem_copy_and_partition for reg→SMEM (paired atoms)
- Apply 1/row_sum normalization in register space (exact)
- TMA store from SMEM→GMEM (no TMEM write-back)
- Add iter_acc_early_release_in_epilogue attribute
- Update SMEM-P comments to reflect coordinate-indexed fallback
2026-05-24 00:24:24 +00:00
892a68fcd1 D1.3: Add unnormalized debug test to isolate SMEM-P vs O round-trip error 2026-05-24 00:15:41 +00:00
c30334b42f D1.3: Add SMEM-P write/read diagnostic 2026-05-24 00:13:28 +00:00
95a946d4d4 D1.3: Add SMEM-P vs TMEM-P comparison test 2026-05-24 00:10:18 +00:00
571fc43f57 D1.3: Fix while loop in cotiled diag - precompute num_tmem_alloc_cols 2026-05-24 00:07:22 +00:00
d9f3fcd71d D1.3: Fix cotiled diagnostic - use proper MMA construction 2026-05-24 00:06:50 +00:00
63e3ed0fed D1.3: Add make_cotiled_copy diagnostic test 2026-05-24 00:05:48 +00:00
d4659d661d shit left dangling 2026-05-23 23:58:57 +00:00
68df389c93 D1.3: Add SMEM-P coordinate diagnostic test 2026-05-23 23:23:05 +00:00
7771e5a72b D1.3: Enhanced diagnostic - test QK C-fragment as source for make_tiled_copy_C 2026-05-23 22:24:15 +00:00
4c71998851 D1.3: Skip fragment creation in diagnostic, just print layouts 2026-05-23 22:21:31 +00:00
077ecc5a62 D1.3: Fix diagnostic - use dummy ptr 0 for shape analysis 2026-05-23 22:20:16 +00:00
7dad292401 D1.3: Fix sP allocation - p_smem_s.outer is already a layout 2026-05-23 22:19:11 +00:00
ff0b4de5e8 D1.3: Fix layout diagnostic - compute c_major outside kernel 2026-05-23 22:17:54 +00:00
999c46268b D1.3: Layout diagnostic v2 - run inside JIT-compiled kernel 2026-05-23 22:16:57 +00:00
bbec77c1b3 D1.3: Fix layout diagnostic - remove JIT-dependent code 2026-05-23 22:15:47 +00:00
5f2343fa49 D1.3: Layout diagnostic - print all QK C-fragment and PV A-operand shapes 2026-05-23 22:14:35 +00:00
df6a2a03cb D5b: Fix reference computation - use logsumexp for stable LSE, fix o_unnorm definition 2026-05-23 21:43:04 +00:00
3891f00b9a D5b: Use normalized O + LSE for merge (correct formula), always output LSE 2026-05-23 21:35:40 +00:00
34125fa61c D5b: Clean up merge test - stable formula for both ref and kernel 2026-05-23 21:33:45 +00:00
2c5799c8d8 D5b: Use reference per-row LSE for proper O normalization 2026-05-23 21:31:52 +00:00