Skip to content

Commit 01d3d1a

Browse files
committed
compiler: prevent hosted per-thread arrays are dereferenced within partree at read
1 parent 2d32230 commit 01d3d1a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

devito/passes/iet/parpragma.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ def _make_parregion(self, partree, parrays):
317317
i = n.write
318318
if not (i.is_Array or i.is_TempFunction):
319319
continue
320+
elif partree.dim in i.dimensions:
321+
# Non-local Array (full iteration space): no need to vector-expand
322+
continue
320323
elif i in parrays:
321324
pi = parrays[i]
322325
else:

devito/types/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ def c0(self):
989989
def _eval_deriv(self):
990990
return self
991991

992-
@cached_property
992+
@property
993993
def _grid_map(self):
994994
"""
995995
Mapper of off-grid interpolation points indices for each dimension.

0 commit comments

Comments
 (0)