fix: FA4 paged-KV zero-size page-table registers on SM90 (#35757)

Co-authored-by: razorback16 <razorback16@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: BBuf <1182563586@qq.com>
This commit is contained in:
razorback16
2026-10-14 19:10:15 +08:00
committed by GitHub
co-authored by razorback16 Claude Opus 5 BBuf
parent 3b72b70ef4
commit bab9c81fea
@@ -94,7 +94,7 @@ class PagedKVManager(ParamsBase):
)
gmem_thr_copy_KV = gmem_tiled_copy_KV.get_slice(thread_idx)
# Cover short tiles and the remaining rows of a partial final thread group.
page_entry_per_thread = (n_block_size + num_threads - 1) // num_threads
page_entry_per_thread = cute.ceil_div(n_block_size, num_threads)
if const_expr(mSFK_paged is not None or mSFV_paged is not None):
atom_async_copy_sf = cute.make_copy_atom(