Skip to content

Commit ba4e2ad

Browse files
committed
Update auto_batch_size.py
1 parent 8f62ec9 commit ba4e2ad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

deepmd/pt/utils/auto_batch_size.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def is_oom_error(self, e: Exception) -> bool:
5757
or "cusolver error: CUSOLVER_STATUS_INTERNAL_ERROR" in e.args[0]
5858
# https://github.com/deepmodeling/deepmd-kit/issues/4594
5959
or "CUDA error: out of memory" in e.args[0]
60+
or "nonzero is not supported" in e.args[0]
6061
)
6162
) or isinstance(e, torch.cuda.OutOfMemoryError):
6263
# Release all unoccupied cached memory

0 commit comments

Comments
 (0)