class ExecutionMapperWrapper(Mapper): def __init__(self, queue, context, bound_op): self.inner_mapper = ExecutionMapper(queue, context, bound_op) self.queue = queue self.context = context self.bound_op = bound_op def map_variable(self, expr): # Needed, because bound op execution can ask for variable values. return self.inner_mapper.map_variable(expr) def map_grudge_variable(self, expr): # See map_variable() return self.inner_mapper.map_grudge_variable(expr)
class ExecutionMapperWrapper(Mapper): def __init__(self, array_context, context, bound_op): self.inner_mapper = ExecutionMapper(array_context, context, bound_op) self.array_context = array_context self.context = context self.bound_op = bound_op def map_variable(self, expr): # Needed, because bound op execution can ask for variable values. return self.inner_mapper.map_variable(expr) def map_node_coordinate_component(self, expr): return self.inner_mapper.map_node_coordinate_component(expr) def map_grudge_variable(self, expr): # See map_variable() return self.inner_mapper.map_grudge_variable(expr)
def __init__(self, array_context, context, bound_op): self.inner_mapper = ExecutionMapper(array_context, context, bound_op) self.array_context = array_context self.context = context self.bound_op = bound_op
def __init__(self, queue, context, bound_op): self.inner_mapper = ExecutionMapper(queue, context, bound_op) self.queue = queue self.context = context self.bound_op = bound_op