From 2d4f136d56e6347470991bbf7073008af3be7451 Mon Sep 17 00:00:00 2001 From: mloubout Date: Mon, 31 Mar 2025 08:20:14 -0400 Subject: [PATCH] compiler: revert broken reduce par_tile --- devito/mpi/distributed.py | 2 +- devito/passes/clusters/blocking.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/devito/mpi/distributed.py b/devito/mpi/distributed.py index 1fc587367e..63e3643fe0 100644 --- a/devito/mpi/distributed.py +++ b/devito/mpi/distributed.py @@ -91,7 +91,7 @@ def devito_mpi_finalize(): """ Finalize MPI, if initialized by Devito. """ - global init_by_devito + global init_by_devito # noqa: F824 if init_by_devito and MPI.Is_initialized() and not MPI.Is_finalized(): MPI.Finalize() diff --git a/devito/passes/clusters/blocking.py b/devito/passes/clusters/blocking.py index d718b263f8..a8e12de9b9 100644 --- a/devito/passes/clusters/blocking.py +++ b/devito/passes/clusters/blocking.py @@ -508,9 +508,7 @@ def __init__(self, par_tile): # The user has supplied one specific par-tile per blocked nest self.umt_small = par_tile self.umt_sparse = par_tile - # Reduction tiles have to be unbounded. - self.umt_reduce = UnboundedMultiTuple( - *[UnboundTuple(*p, 1) for p in par_tile]) + self.umt_reduce = par_tile else: # Special case 1: a smaller par-tile to avoid under-utilizing # computational resources when the iteration spaces are too small