Skip to content

Commit 18f73d3

Browse files
authored
Implement Base.dataids(A::ROCArray) (#644)
1 parent d32722b commit 18f73d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/array.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Base.similar(::ROCArray{<:Any, <:Any, B}, ::Type{T}, dims::Base.Dims{N}) where {
100100
Base.elsize(::Type{<:ROCArray{T}}) where {T} = sizeof(T)
101101
Base.size(x::ROCArray) = x.dims
102102
Base.sizeof(x::ROCArray) = Base.elsize(x) * length(x)
103+
Base.dataids(A::ROCArray) = (UInt(pointer(A)),)
103104

104105
## interop with Julia arrays
105106

0 commit comments

Comments
 (0)