Skip to content

Commit

Permalink
Update auto_batch_size.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed Jan 7, 2025
1 parent 3feb0f6 commit 5702a47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deepmd/pt/utils/auto_batch_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def is_oom_error(self, e: Exception) -> bool:
"CUDA out of memory." in e.args[0]
or "CUDA driver error: out of memory" in e.args[0]
or "cusolver error: CUSOLVER_STATUS_INTERNAL_ERROR" in e.args[0]
or "CUDA error: CUBLAS_STATUS_INTERNAL_ERROR" in e.args[0]
):
# Release all unoccupied cached memory
torch.cuda.empty_cache()
Expand Down

0 comments on commit 5702a47

Please sign in to comment.