diff --git a/Project.toml b/Project.toml index 5359be77a..65ed121f4 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LinearSolve" uuid = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae" authors = ["SciML"] -version = "1.16.2" +version = "1.16.3" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" diff --git a/src/default.jl b/src/default.jl index 3c46bb540..e90294920 100644 --- a/src/default.jl +++ b/src/default.jl @@ -9,7 +9,7 @@ function defaultalg(A,b) # Special case on Arrays: avoid BLAS for RecursiveFactorization.jl when # it makes sense according to the benchmarks, which is dependent on # whether MKL or OpenBLAS is being used - if (A === nothing && b isa GPUArrays.AbstractGPUArray) || A isa Matrix + if (A === nothing && !(b isa GPUArrays.AbstractGPUArray)) || A isa Matrix if (A === nothing || eltype(A) <: Union{Float32,Float64,ComplexF32,ComplexF64}) && ArrayInterface.can_setindex(b) if length(b) <= 10