Skip to content
Snippets Groups Projects
Commit 8297285a authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Merge branch 'basic-fusion' of ssh://gitlab.tiker.net/inducer/grudge into basic-fusion

parents c744fbcc aa913014
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,12 @@ class LoopyKernelInstruction(Instruction): ...@@ -109,7 +109,12 @@ class LoopyKernelInstruction(Instruction):
if isinstance(v, (Variable, Subscript))) if isinstance(v, (Variable, Subscript)))
def __str__(self): def __str__(self):
knl_str = self.kernel_descriptor.loopy_kernel.stringify("di") knl_str = "\n".join(
"%s = %s" % (insn.assignee, insn.expression)
for insn in self.kernel_descriptor.loopy_kernel.instructions)
knl_str = knl_str.replace("grdg_", "")
return "{ /* loopy */\n %s\n}" % knl_str.replace("\n", "\n ") return "{ /* loopy */\n %s\n}" % knl_str.replace("\n", "\n ")
mapper_method = "map_insn_loopy_kernel" mapper_method = "map_insn_loopy_kernel"
...@@ -278,7 +283,8 @@ def dot_dataflow_graph(code, max_node_label_length=30, ...@@ -278,7 +283,8 @@ def dot_dataflow_graph(code, max_node_label_length=30,
node_names[insn] = node_name node_names[insn] = node_name
node_label = str(insn) node_label = str(insn)
if max_node_label_length is not None: if (max_node_label_length is not None
and not isinstance(insn, LoopyKernelInstruction)):
node_label = node_label[:max_node_label_length] node_label = node_label[:max_node_label_length]
if label_wrap_width is not None: if label_wrap_width is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment