Skip to content

Commit

Permalink
take any nvidia-smi exception as not having gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
glennhickey committed Oct 3, 2023
1 parent 9b09d62 commit 328b3eb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/toil/lib/accelerators.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,7 @@ def count_nvidia_gpus() -> int:
.firstChild,
).data
)
except (
FileNotFoundError,
subprocess.CalledProcessError,
IndexError,
ValueError,
PermissionError,
):
except:
return 0

# TODO: Parse each gpu > product_name > text content and convert to some
Expand Down

0 comments on commit 328b3eb

Please sign in to comment.