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
455459#  Internal kernel functions
456460# ##
457461
458- function  __index_Local_Linear end 
462+ function  __index_Local_Linear (ctx)
463+     KernelIntrinsics. get_local_id (). x
464+ end 
465+ 
459466function  __index_Group_Linear end 
460467function  __index_Global_Linear end 
461468
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