Skip to content

Commit 3d98fea

Browse files
committed
shbrg
1 parent ae2d26c commit 3d98fea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/host/reverse.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ end
128128
# 1-dimensional API
129129

130130
# in-place
131-
Base.@propagate_inbounds function Base.reverse!(data::AnyGPUArray{T}, start::Integer,
131+
Base.@propagate_inbounds function Base.reverse!(data::AnyGPUVector{T}, start::Integer,
132132
stop::Integer=length(data)) where {T}
133133
_reverse!(view(data, start:stop))
134134
return data
135135
end
136136

137-
Base.reverse!(data::AnyGPUArray{T}) where {T} = @inbounds reverse!(data, 1, length(data))
137+
Base.reverse!(data::AnyGPUVector{T}) where {T} = @inbounds reverse!(data, 1, length(data))
138138

139139
# out-of-place
140-
Base.@propagate_inbounds function Base.reverse(input::AnyGPUArray{T}, start::Integer,
140+
Base.@propagate_inbounds function Base.reverse(input::AnyGPUVector{T}, start::Integer,
141141
stop::Integer=length(input)) where {T}
142142
output = similar(input)
143143

@@ -148,4 +148,4 @@ Base.@propagate_inbounds function Base.reverse(input::AnyGPUArray{T}, start::Int
148148
return output
149149
end
150150

151-
Base.reverse(data::AnyGPUArray{T}) where {T} = @inbounds reverse(data, 1, length(data))
151+
Base.reverse(data::AnyGPUVector{T}) where {T} = @inbounds reverse(data, 1, length(data))

0 commit comments

Comments
 (0)