Skip to content

Commit 666578d

Browse files
Merge pull request #146 from SciML/gpuarrayscore
Change from GPUArrays to GPUArraysCore
2 parents 6ce0709 + 0e19abe commit 666578d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = "1.18.1"
66
[deps]
77
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
88
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
9-
GPUArrays = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
9+
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
1010
IterativeSolvers = "42fd0dbc-a981-5370-80f2-aaf504508153"
1111
KLU = "ef3ab10e-7fda-4108-b977-705223b18434"
1212
Krylov = "ba0b0d4f-ebba-5204-a429-3ac8c609bfb7"
@@ -23,7 +23,7 @@ UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
2323
[compat]
2424
ArrayInterfaceCore = "0.1.1"
2525
DocStringExtensions = "0.8"
26-
GPUArrays = "8"
26+
GPUArraysCore = "0.1"
2727
IterativeSolvers = "0.9.2"
2828
KLU = "0.3.0"
2929
Krylov = "0.7.11, 0.8"

src/LinearSolve.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using SuiteSparse
1414
using KLU
1515
using DocStringExtensions
1616

17-
import GPUArrays
17+
import GPUArraysCore
1818

1919
# wrap
2020
import Krylov

src/default.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function defaultalg(A,b)
99
# Special case on Arrays: avoid BLAS for RecursiveFactorization.jl when
1010
# it makes sense according to the benchmarks, which is dependent on
1111
# 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
1313
if (A === nothing || eltype(A) <: Union{Float32,Float64,ComplexF32,ComplexF64}) &&
1414
ArrayInterfaceCore.can_setindex(b)
1515
if length(b) <= 10
@@ -39,7 +39,7 @@ function defaultalg(A,b)
3939

4040
# This catches the case where A is a CuMatrix
4141
# 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
4343
alg = QRFactorization(false)
4444

4545
# Not factorizable operator, default to only using A*x
@@ -100,7 +100,7 @@ function SciMLBase.solve(cache::LinearCache, alg::Nothing,
100100

101101
# This catches the case where A is a CuMatrix
102102
# Which does not have LU fully defined
103-
elseif A isa GPUArrays.AbstractGPUArray
103+
elseif A isa GPUArraysCore.AbstractGPUArray
104104
alg = QRFactorization(false)
105105
SciMLBase.solve(cache, alg, args...; kwargs...)
106106

@@ -158,7 +158,7 @@ function init_cacheval(alg::Nothing, A, b, u, Pl, Pr, maxiters, abstol, reltol,
158158

159159
# This catches the case where A is a CuMatrix
160160
# Which does not have LU fully defined
161-
elseif A isa GPUArrays.AbstractGPUArray
161+
elseif A isa GPUArraysCore.AbstractGPUArray
162162
alg = QRFactorization(false)
163163
init_cacheval(alg, A, b, u, Pl, Pr, maxiters, abstol, reltol, verbose)
164164

0 commit comments

Comments
 (0)