D2: add shape debug print for mQ/mK
This commit is contained in:
@@ -189,6 +189,9 @@ class FmhaKernel:
|
||||
# D2: Multi-CTA grid. Use block_idx_y to select Q and O for this CTA's head.
|
||||
_bidx, head_cta_idx, _bidz = cute.arch.block_idx() # grid=(1, num_ctas, 1)
|
||||
|
||||
# Print mQ shape at trace time to understand mode structure
|
||||
print(f"D2 DEBUG: mQ shape={cute.shape(mQ)}, mK shape={cute.shape(mK)}")
|
||||
|
||||
# Q: if num_ctas > 1, mQ has a head dimension. local_tile indexes into it.
|
||||
# K/V: shared (MQA), always coordinate 0.
|
||||
# For single-CTA (num_ctas=1), head_cta_idx=0 and coordinates are the same as before.
|
||||
|
||||
Reference in New Issue
Block a user