Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Binyang2014 committed Jan 25, 2025
1 parent 049b4d3 commit 653b3e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/examples/allgather_allpairs_multinodes_packets.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@


def allgather_multinodes_allpair(gpus, gpus_per_node, instances):
"""
Implements a multi-node allgather collective using an allpairs algorithm with MSCCL++ DSL.
Steps:
1. Each rank sends a chunk to all other ranks' scratch buffers using packet format.
2. Copy the chunk from the scratch buffer to the output buffer using packet format.
"""
collective = AllGather(gpus, 1, True)
with MSCCLPPProgram(
"allgather_multinodes_allpair",
Expand Down

0 comments on commit 653b3e1

Please sign in to comment.