mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-13 09:46:00 +00:00
Get rid of comm.setup()
This commit is contained in:
committed by
Saeed Maleki
parent
0863e862f5
commit
8cb63a7d1a
@@ -40,12 +40,11 @@ def setup_connections(comm, rank, world_size, element_size, proxy_service):
|
||||
for r in range(world_size):
|
||||
if r == rank:
|
||||
continue
|
||||
conn = comm.connect_on_setup(r, 0, mscclpp.Transport.CudaIpc)
|
||||
conn = comm.connect(r, 0, mscclpp.Transport.CudaIpc)
|
||||
connections.append(conn)
|
||||
comm.send_memory_on_setup(reg_mem, r, 0)
|
||||
remote_mem = comm.recv_memory_on_setup(r, 0)
|
||||
comm.send_memory(reg_mem, r, 0)
|
||||
remote_mem = comm.recv_memory(r, 0)
|
||||
remote_memories.append(remote_mem)
|
||||
comm.setup()
|
||||
|
||||
connections = [conn.get() for conn in connections]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user