From 3c4a07b680cf477b68a57e4326ba446aa70dd522 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 30 Oct 2024 22:37:07 -0100 Subject: [PATCH 1/2] Guard BLAS defaults more, allowing only Array and BLASFloats Fixes https://github.com/SciML/JumpProcesses.jl/issues/459 --- src/default.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/default.jl b/src/default.jl index 4621edcff..525c5360f 100644 --- a/src/default.jl +++ b/src/default.jl @@ -179,7 +179,8 @@ function defaultalg(A, b, assump::OperatorAssumptions{Bool}) __conditioning(assump) === OperatorCondition.WellConditioned) if length(b) <= 10 DefaultAlgorithmChoice.RFLUFactorization - elseif appleaccelerate_isavailable() + elseif appleaccelerate_isavailable() && b isa Array && + eltype(b) <: Union{Float32, Float64, ComplexF32, ComplexF64} DefaultAlgorithmChoice.AppleAccelerateLUFactorization elseif (length(b) <= 100 || (isopenblas() && length(b) <= 500) || (usemkl && length(b) <= 200)) && @@ -188,7 +189,8 @@ function defaultalg(A, b, assump::OperatorAssumptions{Bool}) DefaultAlgorithmChoice.RFLUFactorization #elseif A === nothing || A isa Matrix # alg = FastLUFactorization() - elseif usemkl + elseif usemkl && b isa Array && + eltype(b) <: Union{Float32, Float64, ComplexF32, ComplexF64} DefaultAlgorithmChoice.MKLLUFactorization else DefaultAlgorithmChoice.LUFactorization From 80ee7ccf158ec8d10f6c5381a844e4216f4ea5fd Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 30 Oct 2024 23:11:57 -0100 Subject: [PATCH 2/2] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index e873ffe16..ec00c84c6 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LinearSolve" uuid = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae" authors = ["SciML"] -version = "2.36.1" +version = "2.36.2" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"