File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,10 @@ function unsafe_free! end
189189
190190unsafe_free! (:: AbstractArray ) = return
191191
192+ include (" intrinsics.jl" )
193+ import . KernelIntrinsics
194+ export KernelIntrinsics
195+
192196# ##
193197# Kernel language
194198# - @localmem
447451# Internal kernel functions
448452# ##
449453
450- function __index_Local_Linear end
454+ function __index_Local_Linear (ctx)
455+ KernelIntrinsics. get_local_id (). x
456+ end
457+
451458function __index_Group_Linear end
452459function __index_Global_Linear end
453460
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ module KernelIntrinsics
44 get_global_size()::@NamedTuple{x::Int32, y::Int32, z::Int32}
55
66Return the number of global work-items specified.
7+
8+ !!! note
9+ 1-based.
710"""
811function get_global_size end
912
You can’t perform that action at this time.
0 commit comments