We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 384f4c9 commit 7e3b779Copy full SHA for 7e3b779
1 file changed
devito/passes/clusters/misc.py
@@ -228,11 +228,12 @@ def _key(self, c):
228
# If there are writes to thread-shared object, make it part of the key.
229
# This will promote fusion of non-adjacent Clusters writing to (some
230
# form of) shared memory, which in turn will minimize the number of
231
- # necessary barriers Same story for reads from thread-shared objects
+ # necessary barriers. Same story for reads from thread-shared objects
232
weak.extend([
233
any(f._mem_shared for f in c.scope.writes),
234
any(f._mem_shared for f in c.scope.reads)
235
])
236
+ weak.append(c.properties.is_core_init())
237
238
# Prefetchable Clusters should get merged, if possible
239
weak.append(c.properties.is_prefetchable_shm())
0 commit comments