Skip to content

Commit

Permalink
compiler: remove atomic collapse hack
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Sep 18, 2023
1 parent fa1a9b7 commit 87d8d0e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions devito/passes/iet/parpragma.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -429,11 +426,6 @@ def _make_nested_partree(self, partree):
if self.nhyperthreads <= self.nested:
return partree

# Loop nest with atomic reductions are more likely to have less latency
# keep outer loop parallel
if partree.root.is_ParallelAtomic:
return partree

# Note: there might be multiple sub-trees amenable to nested parallelism,
# hence we loop over all of them
#
Expand Down

0 comments on commit 87d8d0e

Please sign in to comment.