Skip to content

Commit f31b350

Browse files
authored
Merge pull request #2558 from devitocodes/more-asyncpipe-modes-3
compiler: Tweak init_core/halo properties
2 parents adbf3bf + f0c7368 commit f31b350

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

devito/ir/support/properties.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,22 @@ def inbound(self, dims):
296296
return self.add(dims, INBOUND)
297297

298298
def init_core_shm(self, dims):
299-
return self.add(dims, INIT_CORE_SHM)
299+
properties = self.add(dims, INIT_CORE_SHM)
300+
properties = properties.drop(properties={INIT_HALO_LEFT_SHM,
301+
INIT_HALO_RIGHT_SHM})
302+
return properties
300303

301304
def init_halo_left_shm(self, dims):
302-
return self.add(dims, INIT_HALO_LEFT_SHM)
305+
properties = self.add(dims, INIT_HALO_LEFT_SHM)
306+
properties = properties.drop(properties={INIT_CORE_SHM,
307+
INIT_HALO_RIGHT_SHM})
308+
return properties
303309

304310
def init_halo_right_shm(self, dims):
305-
return self.add(dims, INIT_HALO_RIGHT_SHM)
311+
properties = self.add(dims, INIT_HALO_RIGHT_SHM)
312+
properties = properties.drop(properties={INIT_CORE_SHM,
313+
INIT_HALO_LEFT_SHM})
314+
return properties
306315

307316
def is_parallel(self, dims):
308317
return any(len(self[d] & {PARALLEL, PARALLEL_INDEP}) > 0

0 commit comments

Comments
 (0)