Skip to content

Commit 7e3b779

Browse files
committed
compiler: Refine cluster fusion key
1 parent 384f4c9 commit 7e3b779

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

devito/passes/clusters/misc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,12 @@ def _key(self, c):
228228
# If there are writes to thread-shared object, make it part of the key.
229229
# This will promote fusion of non-adjacent Clusters writing to (some
230230
# form of) shared memory, which in turn will minimize the number of
231-
# necessary barriers Same story for reads from thread-shared objects
231+
# necessary barriers. Same story for reads from thread-shared objects
232232
weak.extend([
233233
any(f._mem_shared for f in c.scope.writes),
234234
any(f._mem_shared for f in c.scope.reads)
235235
])
236+
weak.append(c.properties.is_core_init())
236237

237238
# Prefetchable Clusters should get merged, if possible
238239
weak.append(c.properties.is_prefetchable_shm())

0 commit comments

Comments
 (0)