Skip to content

Commit 392d48f

Browse files
committed
compiler: ensure reductions use unbounded par-tile
1 parent f31b350 commit 392d48f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

devito/passes/clusters/blocking.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,9 @@ def __init__(self, par_tile):
508508
# The user has supplied one specific par-tile per blocked nest
509509
self.umt_small = par_tile
510510
self.umt_sparse = par_tile
511-
self.umt_reduce = par_tile
511+
# Reduction tiles have to be unbounded.
512+
self.umt_reduce = UnboundedMultiTuple(
513+
*[UnboundTuple(*p, 1) for p in par_tile])
512514
else:
513515
# Special case 1: a smaller par-tile to avoid under-utilizing
514516
# computational resources when the iteration spaces are too small

0 commit comments

Comments
 (0)