Skip to content

Commit

Permalink
Merge pull request #2036 from devitocodes/hotfix-parlang-shm
Browse files Browse the repository at this point in the history
compiler: Turn data allocations of aliases into a no-op
  • Loading branch information
FabioLuporini authored Nov 25, 2022
2 parents 5614832 + b0d83fa commit 4cc9165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devito/types/dense.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def _allocate_memory(func):
def wrapper(self):
if self._data is None:
if self._alias:
raise TypeError("Aliasing Functions cannot allocate data")
# Aliasing Functions must not allocate data
return

debug("Allocating host memory for %s%s [%s]"
% (self.name, self.shape_allocated, humanbytes(self.nbytes)))
Expand Down

0 comments on commit 4cc9165

Please sign in to comment.