Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Destory torch group communicator if still available
Browse files Browse the repository at this point in the history
  • Loading branch information
chang-l committed Dec 6, 2023
1 parent 54ef09c commit 6eb6d85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/pylibwholegraph/pylibwholegraph/torch/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ def finalize():
"""
wmb.finalize()
reset_communicators()
torch.distributed.destroy_process_group() if torch.distributed.is_initialized() else None

0 comments on commit 6eb6d85

Please sign in to comment.