@@ -9,7 +9,7 @@ function defaultalg(A,b)
9
9
# Special case on Arrays: avoid BLAS for RecursiveFactorization.jl when
10
10
# it makes sense according to the benchmarks, which is dependent on
11
11
# whether MKL or OpenBLAS is being used
12
- if (A === nothing && ! (b isa GPUArrays . AbstractGPUArray)) || A isa Matrix
12
+ if (A === nothing && ! (b isa GPUArraysCore . AbstractGPUArray)) || A isa Matrix
13
13
if (A === nothing || eltype (A) <: Union{Float32,Float64,ComplexF32,ComplexF64} ) &&
14
14
ArrayInterfaceCore. can_setindex (b)
15
15
if length (b) <= 10
@@ -39,7 +39,7 @@ function defaultalg(A,b)
39
39
40
40
# This catches the case where A is a CuMatrix
41
41
# Which does not have LU fully defined
42
- elseif A isa GPUArrays . AbstractGPUArray || b isa GPUArrays . AbstractGPUArray
42
+ elseif A isa GPUArraysCore . AbstractGPUArray || b isa GPUArraysCore . AbstractGPUArray
43
43
alg = QRFactorization (false )
44
44
45
45
# Not factorizable operator, default to only using A*x
@@ -100,7 +100,7 @@ function SciMLBase.solve(cache::LinearCache, alg::Nothing,
100
100
101
101
# This catches the case where A is a CuMatrix
102
102
# Which does not have LU fully defined
103
- elseif A isa GPUArrays . AbstractGPUArray
103
+ elseif A isa GPUArraysCore . AbstractGPUArray
104
104
alg = QRFactorization (false )
105
105
SciMLBase. solve (cache, alg, args... ; kwargs... )
106
106
@@ -158,7 +158,7 @@ function init_cacheval(alg::Nothing, A, b, u, Pl, Pr, maxiters, abstol, reltol,
158
158
159
159
# This catches the case where A is a CuMatrix
160
160
# Which does not have LU fully defined
161
- elseif A isa GPUArrays . AbstractGPUArray
161
+ elseif A isa GPUArraysCore . AbstractGPUArray
162
162
alg = QRFactorization (false )
163
163
init_cacheval (alg, A, b, u, Pl, Pr, maxiters, abstol, reltol, verbose)
164
164
0 commit comments