Skip to content

Commit 490c605

Browse files
committed
Revert back to DenseArray.
1 parent 3ff82e8 commit 490c605

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/device/abstractarray.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ export AbstractDeviceArray, @LocalMemory
66
## device array
77

88
"""
9-
AbstractDeviceArray{T, N}
9+
AbstractDeviceArray{T, N} <: DenseArray{T, N}
1010
1111
Supertype for `N`-dimensional GPU arrays (or array-like types) with elements of type `T`.
12-
This type is a subtype of `AbstractArray{T, N}`. Instances of this type are expected to live
13-
on the device, see [`AbstractGPUArray`](@ref) for device-side objects.
12+
Instances of this type are expected to live on the device, see [`AbstractGPUArray`](@ref)
13+
for device-side objects.
1414
"""
15-
abstract type AbstractDeviceArray{T, N} <: AbstractArray{T, N} end
15+
abstract type AbstractDeviceArray{T, N} <: DenseArray{T, N} end
1616

1717
Base.IndexStyle(::AbstractDeviceArray) = IndexLinear()
1818

src/host/abstractarray.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
export AbstractGPUArray
44

55
"""
6-
AbstractGPUArray{T, N}
6+
AbstractGPUArray{T, N} <: DenseArray{T, N}
77
88
Supertype for `N`-dimensional GPU arrays (or array-like types) with elements of type `T`.
9-
This type is a subtype of `AbstractArray{T, N}`. Instances of this type are expected to live
10-
on the host, see [`AbstractDeviceArray`](@ref) for device-side objects.
9+
Instances of this type are expected to live on the host, see [`AbstractDeviceArray`](@ref)
10+
for device-side objects.
1111
"""
12-
abstract type AbstractGPUArray{T, N} <: AbstractArray{T, N} end
12+
abstract type AbstractGPUArray{T, N} <: DenseArray{T, N} end
1313

1414
const AbstractGPUVector{T} = AbstractGPUArray{T, 1}
1515
const AbstractGPUMatrix{T} = AbstractGPUArray{T, 2}

0 commit comments

Comments
 (0)