Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
priyakasimbeg committed Sep 25, 2023
1 parent 7cf7f86 commit 59c08ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions submission_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,13 @@


def _get_time():
if torch.cuda.is_available() and torch.cuda.is_initialized():
if torch.cuda.is_available():
torch.cuda.synchronize()
return time.time()


def _get_time_ddp():
if torch.cuda.is_initialized():
torch.cuda.synchronize()
torch.cuda.synchronize()
t = time.time()
return sync_ddp_time(t, DEVICE)

Expand Down

0 comments on commit 59c08ab

Please sign in to comment.