Skip to content

Commit 41bf124

Browse files
committed
add notes
1 parent 6fc7dc4 commit 41bf124

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/nditeration.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ Base.@propagate_inbounds function expand(ndrange::NDRange{N}, groupidx::Integer,
8585
# expand(ndrange, blocks(ndrange)[groupidx], workitems(ndrange)[idx])
8686

8787
# The formulation below saves one sdiv
88+
# but leads to a different index order...
89+
# previous: julia> expand(ndrange, 1, 32*32)
90+
# CartesianIndex(32, 32)
91+
# now: julia> expand(ndrange, 1, 32*32)
92+
# CartesianIndex(1024, 1)
8893
B = blocks(ndrange)
8994
W = workitems(ndrange)
9095
Ind = ntuple(Val(N)) do I

0 commit comments

Comments
 (0)