Skip to content

Commit

Permalink
Merge branch 'ko3n1g/ci/job-runners-2' into 'main'
Browse files Browse the repository at this point in the history
tests: Add barrier for destroy

See merge request ADLR/megatron-lm!2416
  • Loading branch information
ko3n1g committed Dec 3, 2024
2 parents ae832c7 + 21cc9b0 commit 844119f
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 844119f

Please sign in to comment.