Skip to content

Commit 2d4f136

Browse files
committed
compiler: revert broken reduce par_tile
1 parent 394045b commit 2d4f136

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

devito/mpi/distributed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def devito_mpi_finalize():
9191
"""
9292
Finalize MPI, if initialized by Devito.
9393
"""
94-
global init_by_devito
94+
global init_by_devito # noqa: F824
9595
if init_by_devito and MPI.Is_initialized() and not MPI.Is_finalized():
9696
MPI.Finalize()
9797

devito/passes/clusters/blocking.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,7 @@ 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-
# Reduction tiles have to be unbounded.
512-
self.umt_reduce = UnboundedMultiTuple(
513-
*[UnboundTuple(*p, 1) for p in par_tile])
511+
self.umt_reduce = par_tile
514512
else:
515513
# Special case 1: a smaller par-tile to avoid under-utilizing
516514
# computational resources when the iteration spaces are too small

0 commit comments

Comments
 (0)