Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Fix deprecated indexing traits.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Feb 17, 2017
1 parent 9bbe88d commit 1aaad47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ end
Base.pointerset(Base.unsafe_convert(Ptr{T}, A), convert(T, x)::T, index, 8)
end

Base.linearindexing{A<:CuDeviceArray}(::Type{A}) = Base.LinearFast()
Base.IndexStyle{A<:CuDeviceArray}(::Type{A}) = Base.IndexLinear()

Base.show{T}(io::IO, a::CuDeviceArray{T,1}) =
print(io, "$(length(a))-element device array at $(pointer(a))")
Expand Down

0 comments on commit 1aaad47

Please sign in to comment.