Skip to content

Commit 72a5fdf

Browse files
CodexFabioLuporini
authored andcommitted
compiler: Add thread rendezvous predicate
1 parent b861a48 commit 72a5fdf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎devito/ir/clusters/cluster.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,14 @@ def is_phase_marker(self):
248248
def is_critical_region(self):
249249
return self._is_type(CriticalRegion)
250250

251+
@cached_property
252+
def is_thread_rendezvous(self):
253+
"""
254+
True if it contains a synchronization point at which all participating
255+
threads must arrive before any may proceed.
256+
"""
257+
return self.is_thread_pool_sync and not self.is_thread_wait
258+
251259
@cached_property
252260
def is_thread_pool_sync(self):
253261
return self._is_type(ThreadPoolSync)

0 commit comments

Comments
 (0)