Skip to content

Commit ce8b494

Browse files
authored
try workaround for #384
1 parent 8744b1a commit ce8b494

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mapreduce.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ Base.@propagate_inbounds _map_getindex(args::Tuple{}, I) = ()
4545
# Reduce an array across the grid. All elements to be processed can be addressed by the
4646
# product of the two iterators `Rreduce` and `Rother`, where the latter iterator will have
4747
# singleton entries for the dimensions that should be reduced (and vice versa).
48-
function partial_mapreduce_device(f, op, neutral, maxitems, Rreduce, Rother, R, As...)
48+
function partial_mapreduce_device(f, op, neutral, maxitems, Rreduce, Rother, R, A)
49+
As = (A,)
4950
# decompose the 1D hardware indices into separate ones for reduction (across items
5051
# and possibly groups if it doesn't fit) and other elements (remaining groups)
5152
localIdx_reduce = get_local_id()

0 commit comments

Comments
 (0)