Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,9 @@ def kernel(
real_subtile_idx = subtile_idx // 2
else:
real_subtile_idx = subtile_idx
# Position in processing order. The early accumulator release below counts
# processed subtiles, so it must not use the reversed index.
iter_subtile_idx = real_subtile_idx
if cutlass.const_expr(self.overlapping_accum):
if reverse_subtile:
real_subtile_idx = (
Expand Down Expand Up @@ -1584,7 +1587,7 @@ def kernel(
# Async arrive accumulator buffer empty earlier when overlapping_accum is enabled
#
if cutlass.const_expr(self.overlapping_accum):
if real_subtile_idx == self.iter_acc_early_release_in_epilogue:
if iter_subtile_idx == self.iter_acc_early_release_in_epilogue:
# Fence for TMEM load
cute.arch.fence_view_async_tmem_load()
with cute.arch.elect_one():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2501,6 +2501,9 @@ def kernel(
real_subtile_idx = subtile_idx // 2
else:
real_subtile_idx = subtile_idx
# Position in processing order. The early accumulator release below counts
# processed subtiles, so it must not use the reversed index.
iter_subtile_idx = real_subtile_idx
if cutlass.const_expr(self.overlapping_accum):
if reverse_subtile:
real_subtile_idx = (
Expand Down Expand Up @@ -2528,7 +2531,7 @@ def kernel(
# Async arrive accumulator buffer empty earlier when overlapping_accum is enabled
#
if cutlass.const_expr(self.overlapping_accum):
if real_subtile_idx == self.iter_acc_early_release_in_epilogue:
if iter_subtile_idx == self.iter_acc_early_release_in_epilogue:
# Fence for TMEM load
cute.arch.fence_view_async_tmem_load()
acc_pipeline.consumer_release(acc_consumer_state)
Expand Down
Loading