Skip to content

Commit

Permalink
Don't use AppleAccelerate on number types that are not floats
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianM-C authored Oct 30, 2023
1 parent 7527328 commit 7f4d23b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/default.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ function defaultalg(A, b, assump::OperatorAssumptions)
__conditioning(assump) === OperatorCondition.WellConditioned)
if length(b) <= 10
DefaultAlgorithmChoice.GenericLUFactorization
elseif VERSION >= v"1.8" && appleaccelerate_isavailable()
elseif VERSION >= v"1.8" && appleaccelerate_isavailable() &&

Check warning on line 165 in src/default.jl

View check run for this annotation

Codecov / codecov/patch

src/default.jl#L165

Added line #L165 was not covered by tests
(A === nothing ? eltype(b) <: Union{Float32, Float64} :
eltype(A) <: Union{Float32, Float64})
DefaultAlgorithmChoice.AppleAccelerateLUFactorization
elseif (length(b) <= 100 || (isopenblas() && length(b) <= 500) ||
(usemkl && length(b) <= 200)) &&
Expand Down Expand Up @@ -419,4 +421,4 @@ end
end
end
ex = Expr(:if, ex.args...)
end
end

0 comments on commit 7f4d23b

Please sign in to comment.