Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions grudge/array_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,11 @@ def to_output_template(keys, _):

class MPIPytatoArrayContextBase(MPIBasedArrayContext):
def __init__(
self, mpi_communicator, queue, *, mpi_base_tag, allocator=None,
compile_trace_callback: Optional[Callable[[Any, str, Any], None]]
= None) -> None:
self, mpi_communicator, queue, *,
mpi_base_tag, allocator=None,
compile_trace_callback: Optional[Callable[[Any, str, Any], None]] = None,
use_axis_tag_inference_fallback: bool = False,
use_einsum_inference_fallback: bool = False) -> None:
"""
:arg compile_trace_callback: A function of three arguments
*(what, stage, ir)*, where *what* identifies the object
Expand All @@ -401,7 +403,9 @@ def __init__(
"to reduce device allocations)")

super().__init__(queue, allocator,
compile_trace_callback=compile_trace_callback)
compile_trace_callback=compile_trace_callback,
use_axis_tag_inference_fallback=use_axis_tag_inference_fallback,
use_einsum_inference_fallback=use_einsum_inference_fallback)

self.mpi_communicator = mpi_communicator
self.mpi_base_tag = mpi_base_tag
Expand All @@ -416,7 +420,9 @@ def clone(self):
# pylint: disable=no-member
return type(self)(self.mpi_communicator, self.queue,
mpi_base_tag=self.mpi_base_tag,
allocator=self.allocator)
allocator=self.allocator,
use_axis_tag_inference_fallback=self.use_axis_tag_inference_fallback,
use_einsum_inference_fallback=self.use_einsum_inference_fallback)

# }}}

Expand Down