[Fix] [AMD] mori: Look up elided DSA state entries by the paired dst index (#44412)

This commit is contained in:
Zhaoyi Li
2026-10-18 00:29:22 -07:00
committed by GitHub
parent 396e97e5dd
commit f1cf2e1005
2 changed files with 47 additions and 2 deletions
@@ -1918,7 +1918,7 @@ class MoriKVManager(CommonKVManager):
src_desc = src_state_mem_descs[i]
dst_desc = dst_state_mem_descs[j]
state_item_len = src_state_item_lens[i]
if is_elided_entry(state_item_len, dst_state_item_lens, i):
if is_elided_entry(state_item_len, dst_state_item_lens, j):
# DSA index-K elision gives every shared-topk layer a 0-row
# buffer; either peer eliding it means nothing moves, and the
# descriptor describes an empty allocation. Skipping keeps the