From 0a278b58452c5786c7ff80b6ffe6109d80741c05 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Mon, 24 Oct 2016 17:10:18 +0200 Subject: [PATCH] Also fix default priority for NoOpInstruction The default priority is 0 not None. Again, this could be fixed in NoOpInstruction, but I consider this fix to be the better one. --- loopy/kernel/instruction.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loopy/kernel/instruction.py b/loopy/kernel/instruction.py index b409f446b..353653710 100644 --- a/loopy/kernel/instruction.py +++ b/loopy/kernel/instruction.py @@ -210,6 +210,9 @@ class InstructionBase(Record): if tags is None: tags = frozenset() + if priority is None: + priority = 0 + if not isinstance(tags, frozenset): # was previously allowed to be tuple tags = frozenset(tags) -- GitLab