Skip to content

Commit

Permalink
don't require operator conversion for MKL
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Oct 4, 2023
1 parent 412845e commit 3480ba3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mkl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,15 @@ end
default_alias_A(::MKLLUFactorization, ::Any, ::Any) = false
default_alias_b(::MKLLUFactorization, ::Any, ::Any) = false

const PREALLOCATED_MKL_LU = begin
A = rand(0, 0)
luinst = ArrayInterface.lu_instance(A), Ref{BlasInt}()
end

function init_cacheval(alg::MKLLUFactorization, A, b, u, Pl, Pr,
maxiters::Int, abstol, reltol, verbose::Bool,
assumptions::OperatorAssumptions)
ArrayInterface.lu_instance(convert(AbstractMatrix, A)), Ref{BlasInt}()
PREALLOCATED_MKL_LU
end

function SciMLBase.solve!(cache::LinearCache, alg::MKLLUFactorization;
Expand Down

0 comments on commit 3480ba3

Please sign in to comment.