Skip to content

Commit 4953f96

Browse files
Update LinearSolveCUSOLVERRFExt.jl
1 parent 8d56eb0 commit 4953f96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/LinearSolveCUSOLVERRFExt.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ function SciMLBase.solve!(cache::LinearSolve.LinearCache, alg::LinearSolve.CUSOL
3232
A = cache.A
3333

3434
# Convert to appropriate GPU format if needed
35-
if A isa SparseMatrixCSC
35+
if A isa SparseMatrixCSC || Adjoint{SparseMatrixCSC}
3636
A_gpu = CuSparseMatrixCSR(A)
37-
elseif A isa CuSparseMatrixCSR
37+
elseif A isa CuSparseMatrixCSR || Adjoint{CuSparseMatrixCSR}
3838
A_gpu = A
3939
else
40-
error("CUSOLVERRFFactorization only supports SparseMatrixCSC or CuSparseMatrixCSR matrices")
40+
error("CUSOLVERRFFactorization only supports SparseMatrixCSC or CuSparseMatrixCSR matrices (and their adjoints)")
4141
end
4242

4343
if cache.isfresh

0 commit comments

Comments
 (0)