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

Fix dependency printing logic

parent 37ef167d
No related branches found
No related tags found
No related merge requests found
......@@ -1063,12 +1063,11 @@ class LoopKernel(RecordWithoutPickling):
for insn in kernel.instructions:
if insn.depends_on:
dep_lines.append("%s : %s" % (insn.id, ",".join(insn.depends_on)))
if dep_lines:
if dep_lines and with_dependencies:
lines.append(sep)
lines.append("DEPENDENCIES: "
"(use loopy.show_dependency_graph to visualize)")
if with_dependencies:
lines.extend(dep_lines)
lines.extend(dep_lines)
lines.append(sep)
......
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