D2: fix gC coordinate to match 5-mode flat_divide result

This commit is contained in:
2026-05-24 23:44:39 +00:00
parent a3559538cf
commit 34f5beb767

View File

@@ -205,7 +205,8 @@ class FmhaKernel:
gQ = tC_gQ[None, None, head_cta_idx, None, None, None]
c_tiler = cute.slice_(self.pv_mma_tiler, (None, None, 0)) # (128, hd)
tC_gC = cute.flat_divide(mC, c_tiler)
gC = tC_gC[None, None, head_cta_idx, None, None, None]
print(f"D2 DEBUG: tC_gC shape={cute.shape(tC_gC)}")
gC = tC_gC[None, None, head_cta_idx, None, None]
else:
gQ = cute.local_tile(mQ,cute.slice_(self.qk_mma_tiler,(None,0,None)),(None,None,None))
gC = cute.local_tile(mC,cute.slice_(self.pv_mma_tiler,(None,None,0)),(None,None,None))