Skip to content

Commit

Permalink
take any nvidia-smi exception as not having gpu (DataBiosphere#4611)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Novak <[email protected]>
  • Loading branch information
2 people authored and Brandon Duane Walker committed Oct 12, 2023
1 parent b2fc98d commit 4d06c27
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 4d06c27

Please sign in to comment.