Skip to content

Commit 2a5777f

Browse files
authored
Merge pull request #166 from JuliaArrays/devicecleanup
device cleanup, fixes #165
2 parents 3bd5aa6 + a714df9 commit 2a5777f

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/ArrayInterface.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,9 +1165,6 @@ function __init__()
11651165
end
11661166
ArrayInterface.axes(A::OffsetArrays.OffsetArray) = Base.axes(A)
11671167
ArrayInterface.axes(A::OffsetArrays.OffsetArray, dim::Integer) = Base.axes(A, dim)
1168-
function ArrayInterface.device(::Type{T}) where {T<:OffsetArrays.OffsetArray}
1169-
return device(parent_type(T))
1170-
end
11711168
end
11721169
end
11731170

src/cuarrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ function restructure(x::CuArrays.CuArray, y)
1414
return reshape(Adapt.adapt(parameterless_type(x), y), Base.size(x)...)
1515
end
1616

17-
Device(::Type{<:CuArrays.CuArray}) = GPU()
17+
device(::Type{<:CuArrays.CuArray}) = GPU()
1818

src/cuarrays2.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ function restructure(x::CUDA.CuArray, y)
1212
return reshape(Adapt.adapt(parameterless_type(x), y), Base.size(x)...)
1313
end
1414

15-
Device(::Type{<:CUDA.CuArray}) = GPU()
15+
device(::Type{<:CUDA.CuArray}) = GPU()
1616

0 commit comments

Comments
 (0)