Skip to content

Commit

Permalink
Merge pull request #519 from mlcommons/profiler_oom_fix
Browse files Browse the repository at this point in the history
Profiler oom fix
  • Loading branch information
priyakasimbeg authored Sep 22, 2023
2 parents a6d06df + 33a8a9f commit 92b2d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithmic_efficiency/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


def _get_monotonic_time() -> float:
if torch.cuda.is_available():
if torch.cuda.is_available() and torch.cuda.is_initialized():
torch.cuda.synchronize()
return time.monotonic()

Expand Down

0 comments on commit 92b2d1d

Please sign in to comment.