Skip to content

Commit 7aa6783

Browse files
Merge pull request #390 from SciML/ChrisRackauckas-patch-1
HOTFIX: Don't use MKL with numbers other that Float64
2 parents a3d8398 + 473cb47 commit 7aa6783

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/default.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function defaultalg(A, b, assump::OperatorAssumptions)
170170
DefaultAlgorithmChoice.RFLUFactorization
171171
#elseif A === nothing || A isa Matrix
172172
# alg = FastLUFactorization()
173-
elseif usemkl
173+
elseif usemkl && eltype(A) <: Union{Float64, Float32}
174174
DefaultAlgorithmChoice.MKLLUFactorization
175175
else
176176
DefaultAlgorithmChoice.LUFactorization
@@ -179,7 +179,7 @@ function defaultalg(A, b, assump::OperatorAssumptions)
179179
DefaultAlgorithmChoice.QRFactorization
180180
elseif __conditioning(assump) === OperatorCondition.SuperIllConditioned
181181
DefaultAlgorithmChoice.SVDFactorization
182-
elseif usemkl
182+
elseif usemkl && eltype(A) <: Union{Float64, Float32}
183183
DefaultAlgorithmChoice.MKLLUFactorization
184184
else
185185
DefaultAlgorithmChoice.LUFactorization

0 commit comments

Comments
 (0)