Skip to content

Commit 248f95f

Browse files
mlouboutFabioLuporini
authored andcommitted
mpi: make default mode an kwarg
1 parent c455b7e commit 248f95f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

devito/passes/iet/mpi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,14 @@ def _mark_overlappable(iet):
264264

265265

266266
@iet_pass
267-
def make_halo_exchanges(iet, mpimode=None, **kwargs):
267+
def make_halo_exchanges(iet, mpimode=None, fallback='basic', **kwargs):
268268
"""
269269
Lower HaloSpots into halo exchanges for distributed-memory parallelism.
270270
"""
271271
# To produce unique object names
272272
generators = {'msg': generator(), 'comm': generator(), 'comp': generator()}
273273

274-
sync_heb = HaloExchangeBuilder('basic', generators, **kwargs)
274+
sync_heb = HaloExchangeBuilder(fallback, generators, **kwargs)
275275
user_heb = HaloExchangeBuilder(mpimode, generators, **kwargs)
276276
mapper = {}
277277
for hs in FindNodes(HaloSpot).visit(iet):

0 commit comments

Comments
 (0)