From 75762e38a660f93bf6f9420b3cd99a59e2dc8925 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Mon, 24 Oct 2016 10:46:57 +0200 Subject: [PATCH] Allow predicates=None for instructions NoOpInstruction.__init__ set this to None and therefore does not work. --- loopy/kernel/instruction.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loopy/kernel/instruction.py b/loopy/kernel/instruction.py index 3221535ae..b409f446b 100644 --- a/loopy/kernel/instruction.py +++ b/loopy/kernel/instruction.py @@ -160,6 +160,9 @@ class InstructionBase(Record): within_inames = forced_iname_deps within_inames_is_final = forced_iname_deps_is_final + if predicates is None: + predicates = frozenset() + new_predicates = set() for pred in predicates: if isinstance(pred, str): -- GitLab