diff --git a/src/pyxu/info/deps.py b/src/pyxu/info/deps.py index 056a33100..3d7db0418 100644 --- a/src/pyxu/info/deps.py +++ b/src/pyxu/info/deps.py @@ -15,8 +15,9 @@ import cupy import cupyx.scipy.sparse import cupyx.scipy.sparse.linalg - except ImportError: - # CuPy is installed, but GPU drivers probably missing. + + cupy.is_available() # will fail if hardware/drivers/runtime missing + except Exception: CUPY_ENABLED = False