Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Jun 28, 2021
1 parent 16f94e5 commit de03f74
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pytorch_lightning/plugins/training_type/ddp.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,6 @@ def post_dispatch(self) -> None:
def barrier(self, *args, **kwargs):
if not torch_distrib.is_initialized():
return

if self.global_rank == 0:
import time
print("sleeping to test barrier")
time.sleep(10)
if _TORCH_GREATER_EQUAL_1_8:
torch_distrib.barrier(device_ids=self.determine_ddp_device_ids())
else:
Expand Down

0 comments on commit de03f74

Please sign in to comment.