Skip to content

Commit b8ca961

Browse files
Update ext/LinearSolveCUSOLVERRFExt.jl
1 parent 6db7c55 commit b8ca961

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/LinearSolveCUSOLVERRFExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ function SciMLBase.solve!(cache::LinearSolve.LinearCache, alg::LinearSolve.CUSOL
3131
A = cache.A
3232

3333
# Convert to appropriate GPU format if needed
34-
if A isa SparseMatrixCSC || A isa Adjoint{SparseMatrixCSC}
34+
if A isa SparseMatrixCSC
3535
A_gpu = CuSparseMatrixCSR(A)
36-
elseif A isa CuSparseMatrixCSR || A isa Adjoint{CuSparseMatrixCSR}
36+
elseif A isa CuSparseMatrixCSR
3737
A_gpu = A
3838
else
3939
error("CUSOLVERRFFactorization only supports SparseMatrixCSC or CuSparseMatrixCSR matrices")

0 commit comments

Comments
 (0)