From 4d06c277e033376900ad1a52720cc8eebd713a16 Mon Sep 17 00:00:00 2001 From: Glenn Hickey Date: Thu, 5 Oct 2023 10:51:16 -0400 Subject: [PATCH] take any nvidia-smi exception as not having gpu (#4611) Co-authored-by: Adam Novak --- src/toil/lib/accelerators.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/toil/lib/accelerators.py b/src/toil/lib/accelerators.py index 2c7f50c9c2..0c0fbc00f1 100644 --- a/src/toil/lib/accelerators.py +++ b/src/toil/lib/accelerators.py @@ -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