def __init__(self, arguments, operation, name="elwise", preamble="", template_processor=None): KernelTemplateBase.__init__(self, template_processor=template_processor) self.arguments = arguments self.operation = operation self.name = name self.preamble = preamble
def __init__(self, arguments, neutral, reduce_expr, map_expr=None, is_segment_start_expr=None, input_fetch_exprs=[], name_prefix="reduce", preamble="", template_processor=None): KernelTemplateBase.__init__(self, template_processor=template_processor) self.arguments = arguments self.reduce_expr = reduce_expr self.neutral = neutral self.map_expr = map_expr self.name_prefix = name_prefix self.preamble = preamble