Skip to content

Commit

Permalink
fixed a bug that occurred when destroying RPC while the world size is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
xrsrke committed Oct 10, 2023
1 parent b7827ea commit b57fc3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipegoose/distributed/parallel_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ def destroy(self):

dist.barrier()
dist.destroy_process_group()
rpc.shutdown()

if self.get_world_size(ParallelMode.GLOBAL) > 1:
rpc.shutdown()

self._groups.clear()

0 comments on commit b57fc3c

Please sign in to comment.