Skip to content

Commit 9ea818d

Browse files
simplify gpu code
1 parent affc130 commit 9ea818d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ext/LinearSolveCUDAExt.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ function SciMLBase.solve!(cache::LinearSolve.LinearCache, alg::CudaOffloadFactor
1717
end
1818

1919
function LinearSolve.do_factorization(alg::CudaOffloadFactorization, A, b, u)
20-
A isa Union{AbstractMatrix, AbstractSciMLOperator} ||
21-
error("LU is not defined for $(typeof(A))")
22-
23-
if A isa Union{MatrixOperator, DiffEqArrayOperator}
24-
A = A.A
25-
end
26-
2720
fact = lu(CUDA.CuArray(A))
2821
return fact
2922
end

0 commit comments

Comments
 (0)