Skip to content

Commit 524f2c4

Browse files
isurufinducer
authored andcommitted
Fix converting predicates
1 parent 93fcd9c commit 524f2c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

loopy/kernel/instruction.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,8 @@ def __str__(self):
10621062
result += " {%s}" % (": ".join(options))
10631063

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

10681069
def arg_id_to_arg(self):

0 commit comments

Comments
 (0)