Skip to content

Commit 9c67b43

Browse files
Update ext/LinearSolveCUDAExt.jl
1 parent ad039a1 commit 9c67b43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext/LinearSolveCUDAExt.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ end
5050
function LinearSolve.init_cacheval(alg::CudaOffloadLUFactorization, A, b, u, Pl, Pr,
5151
maxiters::Int, abstol, reltol, verbose::Bool,
5252
assumptions::OperatorAssumptions)
53-
ArrayInterface.lu_instance(A)
53+
T = eltype(A)
54+
noUnitT = typeof(zero(T))
55+
luT = LinearAlgebra.lutype(noUnitT)
56+
ipiv = Vector{Int32}(undef, 0)
57+
info = zero(LinearAlgebra.BlasInt)
58+
return LU{luT}(CuMatrix{Float64}(undef, 0, 0), ipiv, info)
5459
end
5560

5661
function SciMLBase.solve!(cache::LinearSolve.LinearCache, alg::CudaOffloadQRFactorization;

0 commit comments

Comments
 (0)