Skip to content

Commit

Permalink
ADLR/megatron-lm!2416 - tests: Add barrier for destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
ko3n1g committed Dec 3, 2024
1 parent ae832c7 commit 21cc9b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def pytest_sessionfinish(session, exitstatus):
def cleanup():
yield
if torch.distributed.is_initialized():
torch.distributed.barrier()
torch.distributed.destroy_process_group()


Expand Down

0 comments on commit 21cc9b0

Please sign in to comment.