Skip to content

Commit ea56e22

Browse files
committed
Comment changes.
1 parent 454abc6 commit ea56e22

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/reference.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# reference implementation on the CPU
22

3+
# note that most of the code in this file serves to define a functional array type,
4+
# the actual implementation of GPUArrays-interfaces is much more limited.
5+
36
module JLArrays
47

58
using GPUArrays
@@ -25,9 +28,9 @@ struct JLBackend <: AbstractGPUBackend end
2528
mutable struct JLKernelContext <: AbstractKernelContext
2629
blockdim::Int
2730
griddim::Int
28-
2931
blockidx::Int
3032
threadidx::Int
33+
3134
localmem_counter::Int
3235
localmems::Vector{Vector{Array}}
3336
end
@@ -169,7 +172,7 @@ Base.size(x::JLArray) = x.dims
169172
Base.sizeof(x::JLArray) = Base.elsize(x) * length(x)
170173

171174

172-
## interop with other arrays
175+
## interop with Julia arrays
173176

174177
JLArray{T,N}(x::AbstractArray{S,N}) where {T,N,S} =
175178
JLArray{T,N}(convert(Array{T}, x), size(x))

0 commit comments

Comments
 (0)