Skip to content

Commit

Permalink
compiler: Derive solution from oob set of dims
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Jan 15, 2024
1 parent 95e258e commit e2d6547
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions devito/ir/clusters/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,12 @@ def dspace(self):
intervals = intervals.promote(lambda d: not d.is_Sub)
intervals = intervals.zero(set(intervals.dimensions) - oobs)

# DataSpace intervals should derive their upper bound from
# the higher upper bound available in the involved parts
# Upper bound of intervals including dimensions classified for
# shifting should retain the "oobs" upper bound
for f, v in parts.items():
try:
intervals = intervals.ceil(v[f.time_dim])
except:
pass
for i in v:
if i.dim in oobs:
intervals = intervals.ceil(v[i.dim])

return DataSpace(intervals, parts)

Expand Down

0 comments on commit e2d6547

Please sign in to comment.