Skip to content

Commit 394045b

Browse files
authored
Merge pull request #2560 from devitocodes/mloubout/reduce_tiles
compiler: Fix reduction multi_partile
2 parents f31b350 + c0b77d3 commit 394045b

2 files changed

Lines changed: 5 additions & 3 deletions

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

devito/symbolics/extended_dtypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
limits_mapper = {
1414
np.int32: Bunch(min=ValueLimit('INT_MIN'), max=ValueLimit('INT_MAX')),
1515
np.int64: Bunch(min=ValueLimit('LONG_MIN'), max=ValueLimit('LONG_MAX')),
16-
np.float32: Bunch(min=-ValueLimit('FLT_MIN'), max=ValueLimit('FLT_MAX')),
17-
np.float64: Bunch(min=-ValueLimit('DBL_MIN'), max=ValueLimit('DBL_MAX')),
16+
np.float32: Bunch(min=-ValueLimit('FLT_MAX'), max=ValueLimit('FLT_MAX')),
17+
np.float64: Bunch(min=-ValueLimit('DBL_MAX'), max=ValueLimit('DBL_MAX')),
1818
}
1919

2020

0 commit comments

Comments
 (0)