Skip to content

Commit 32c6b61

Browse files
FabioLuporinimloubout
authored andcommitted
compiler: Polish MPI passes
1 parent fcdd6a4 commit 32c6b61

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

devito/passes/iet/mpi.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,6 @@ def _derive_scope(it, hs0, hs1):
458458
and ends at the HaloSpot `hs1`.
459459
"""
460460
expressions = FindWithin(Expression, hs0, stop=hs1).visit(it)
461-
assert len(expressions) > 0, \
462-
"Expected at least one Expression between %s and %s" % (hs0, hs1)
463-
464461
return Scope([e.expr for e in expressions])
465462

466463

@@ -515,8 +512,5 @@ def _is_mergeable(hsf0, hsf1, scope):
515512
not hsf0.functions & hsf1.functions:
516513
return False
517514

518-
# Then, check the data dependences would be satisfied
519-
if not _is_iter_carried(hsf1, scope):
520-
return False
521-
522-
return True
515+
# Finally, check the data dependences would be satisfied
516+
return _is_iter_carried(hsf1, scope)

0 commit comments

Comments
 (0)