Skip to content

Commit

Permalink
Merge pull request #358 from JuliaGPU/pxl-th/inbounds-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pxl-th authored Jan 23, 2023
2 parents 09cf06c + fce88dd commit 13cb562
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/device/gcn/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ Base.unsafe_convert(::Type{LLVMPtr{T,A}}, a::ROCDeviceArray{T,N,A}) where {T,A,N

# indexing

@inline alignment(::ROCDeviceArray{T}) where T = Base.datatype_alignment(T)
@generated function alignment(::ROCDeviceArray{T}) where T
Base.datatype_alignment(T)
end

@device_function @inline function Base.getindex(A::ROCDeviceArray{T}, index::Integer) where {T}
@boundscheck checkbounds(A, index)
Expand Down

0 comments on commit 13cb562

Please sign in to comment.