fix: all epilogue warps do TMA store, no dynamic if inside method
This commit is contained in:
@@ -190,11 +190,11 @@ class FmhaV3StageCMulti:
|
||||
)
|
||||
epilog_sync_bar.arrive_and_wait()
|
||||
|
||||
# All warps in the epilogue group do the TMA store together
|
||||
c_buffer = 0
|
||||
if warp_idx == self.epilogue_warp_id[0]:
|
||||
cute.copy(tma_c, tCsC[(None, c_buffer)], tCgC_tma[(None, 0, 0, 0, 0, 0, 0)])
|
||||
cute.arch.cp_async_bulk_commit_group()
|
||||
cute.arch.cp_async_bulk_wait_group(0, read=True)
|
||||
cute.copy(tma_c, tCsC[(None, c_buffer)], tCgC_tma[(None, 0, 0, 0, 0, 0, 0)])
|
||||
cute.arch.cp_async_bulk_commit_group()
|
||||
cute.arch.cp_async_bulk_wait_group(0, read=True)
|
||||
epilog_sync_bar.arrive_and_wait()
|
||||
|
||||
@cute.kernel
|
||||
|
||||
Reference in New Issue
Block a user