Skip to content

Commit 084847e

Browse files
mawad-amdclaude
andcommitted
Fix RS graph capture test shape mismatch
iris RS uses same-shape input/output. torch RS expects input = ws * output. Expand input for torch reference comparison. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 18fcf6d commit 084847e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/ccl/test_graph_capture.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def collective(out, inp):
9696
ctx.ccl.reduce_scatter(out, inp)
9797

9898
def reference(out, inp):
99-
dist.reduce_scatter_tensor(out, inp)
99+
big = inp.expand(ws, -1).contiguous().view(ws * M, N)
100+
dist.reduce_scatter_tensor(out, big)
100101

101102
_graph_capture_test(ctx, collective, reference, (M, N), (M, N))
102103

0 commit comments

Comments
 (0)