Skip to content

Commit

Permalink
Fix converting predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf authored and inducer committed Jul 1, 2023
1 parent 93fcd9c commit 524f2c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loopy/kernel/instruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,8 @@ def __str__(self):
result += " {%s}" % (": ".join(options))

if self.predicates:
result += "\n" + 10*" " + "if (%s)" % " && ".join(self.predicates)
result += "\n" + 10*" " + "if (%s)" % " && ".join(
str(pred) for pred in self.predicates)
return result

def arg_id_to_arg(self):
Expand Down

0 comments on commit 524f2c4

Please sign in to comment.