Skip to content

Commit

Permalink
improve tests
Browse files Browse the repository at this point in the history
Signed-off-by: youkaichao <[email protected]>
  • Loading branch information
youkaichao committed Dec 3, 2024
1 parent 6873cdb commit e116a89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/distributed/test_pynccl.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@ def broadcast_worker_fn():

for i in range(pynccl_comm.world_size):
pynccl_comm.broadcast(recv_tensors[i], src=i)
result = recv_tensors[i].mean().cpu().item()
assert result == i
assert torch.all(recv_tensors[i] == i).cpu().item()


def test_ncclGetUniqueId():
Expand Down

0 comments on commit e116a89

Please sign in to comment.