Skip to content

Commit

Permalink
alltoall_v_inplace test
Browse files Browse the repository at this point in the history
  • Loading branch information
Youhe-Jiang committed Nov 9, 2021
1 parent b592958 commit 5d5e2e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/communication_primitives/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,17 @@ def main():
recv_sdispls,
comm=comm,
)
bagua.alltoall_v_inplace(send_tensors, send_counts, send_sdispls)
assert torch.equal(
recv_tensors, recv_tensor_bagua
), "recv_tensors:{a}, recv_tensor_bagua:{b}".format(
a=recv_tensors, b=recv_tensor_bagua
)
assert torch.equal(
send_tensors, recv_tensor_bagua
), "recv_tensors:{a}, recv_tensor_bagua:{b}".format(
a=recv_tensors, b=recv_tensor_bagua
)


if __name__ == "__main__":
Expand Down

0 comments on commit 5d5e2e4

Please sign in to comment.