Skip to content

Commit 219f64f

Browse files
committed
Remove cuSolver availability checking and change file names
1 parent 3cd1db3 commit 219f64f

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

cupyx/linalg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# "NOQA" to suppress flake8 warning
22
from cupyx.linalg import sparse # NOQA
3-
from cupyx.linalg.linalg import invh # NOQA
3+
from cupyx.linalg.solve import invh # NOQA
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import numpy
22

33
import cupy
4-
from cupy import cuda
54
from cupy.cuda import cublas
5+
from cupy.cuda import cusolver
66
from cupy.cuda import device
77
from cupy.linalg import util
88

9-
if cuda.cusolver_enabled:
10-
from cupy.cuda import cusolver
11-
129

1310
def invh(a):
1411
"""Compute the inverse of a Hermitian matrix.
@@ -24,9 +21,6 @@ def invh(a):
2421
cupy.ndarray: The inverse of matrix ``a``.
2522
"""
2623

27-
if not cuda.cusolver_enabled:
28-
raise RuntimeError('cuSOLVER is not available')
29-
3024
# to prevent `a` from being overwritten
3125
a = a.copy()
3226

File renamed without changes.

0 commit comments

Comments
 (0)