We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@index(Global)
1 parent 6873c8c commit 0cc2c0dCopy full SHA for 0cc2c0d
examples/histogram.jl
@@ -14,10 +14,11 @@ end
14
15
# This a 1D histogram kernel where the histogramming happens on shmem
16
@kernel unsafe_indices=true function histogram_kernel!(histogram_output, input)
17
- tid = @index(Global, Linear)
+ gid = @index(Group, Linear)
18
lid = @index(Local, Linear)
19
20
@uniform gs = prod(@groupsize())
21
+ tid = (gid - 1) * gs + lid
22
@uniform N = length(histogram_output)
23
24
shared_histogram = @localmem eltype(input) (gs)
0 commit comments