[Bugfix] Widen ep_gather output offset to int64 (#58373)

Signed-off-by: Robert Shaw <robertgshaw2@gmail.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
This commit is contained in:
Robert Shaw
2026-10-07 01:45:04 +00:00
committed by GitHub
co-authored by Claude Code
parent fe51194e2d
commit 283d76d56a
2 changed files with 23 additions and 1 deletions
@@ -415,7 +415,7 @@ def _fwd_kernel_ep_gather(
tl.store(
output_tensor
+ cur_token * output_tensor_stride0
+ tl.cast(cur_token, tl.int64) * output_tensor_stride0
+ cur_block * BLOCK_D
+ off_d,
accumulator.to(output_tensor.dtype.element_ty),