From 6ed3785d2dd4d575a5d570ca1f44587857f2a534 Mon Sep 17 00:00:00 2001 From: Mathias Louboutin Date: Mon, 18 Sep 2023 08:25:17 -0400 Subject: [PATCH] compiler: remove atomic collapse hack --- devito/passes/iet/parpragma.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/devito/passes/iet/parpragma.py b/devito/passes/iet/parpragma.py index 4af585f86a1..2899898ba91 100644 --- a/devito/passes/iet/parpragma.py +++ b/devito/passes/iet/parpragma.py @@ -295,9 +295,6 @@ def _select_candidates(self, candidates): except TypeError: pass - # At least one inner loop (nested) or - # we do not collapse most inner loop if it is an atomic reduction - if not i.is_ParallelAtomic or nested: collapsable.append(i) # Give a score to this candidate, based on the number of fully-parallel @@ -318,9 +315,6 @@ def _select_candidates(self, candidates): return root, list(collapsable) def _make_reductions(self, partree): - if not any(i.is_ParallelAtomic for i in partree.collapsed): - return partree - exprs = [i for i in FindNodes(Expression).visit(partree) if i.is_reduction] reductions = []