Skip to content

Commit

Permalink
Merge pull request #916 from opesci/fix-mpi-gather-ompization
Browse files Browse the repository at this point in the history
mpi: OMP-collapse gather/scatter routines
  • Loading branch information
FabioLuporini authored Aug 29, 2019
2 parents f8e137c + 1d4ac66 commit 914afa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion devito/dle/blocking_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def make_blocking(self, iet):
block_dims = []
for tree in retrieve_iteration_tree(iet):
# Is the Iteration tree blockable ?
iterations = filter_iterations(tree, lambda i: i.is_Parallel)
iterations = filter_iterations(tree, lambda i: i.is_Parallel and i.is_Affine)
if not self.blockinner:
iterations = iterations[:-1]
if len(iterations) <= 1:
Expand Down
3 changes: 1 addition & 2 deletions devito/mpi/routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@ def _make_copy(self, f, hse, key, swap=False):
iet = Expression(eq)
for i, d in reversed(list(zip(buf_indices, buf_dims))):
# The -1 below is because an Iteration, by default, generates <=
iet = Iteration(iet, i, d.symbolic_size - 1)
iet = iet._rebuild(properties=PARALLEL)
iet = Iteration(iet, i, d.symbolic_size - 1, properties=PARALLEL)

parameters = [buf] + list(buf.shape) + [f] + f_offsets
return Callable(name, iet, 'void', parameters, ('static',))
Expand Down

0 comments on commit 914afa6

Please sign in to comment.