From dd477a5ab7ee0eb2bc5500ddfbda4668135adfd8 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Fri, 31 Mar 2017 12:00:46 +0200 Subject: [PATCH] fixup 2 --- python/dune/perftool/sumfact/realization.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/dune/perftool/sumfact/realization.py b/python/dune/perftool/sumfact/realization.py index 6d99175e..bc24f488 100644 --- a/python/dune/perftool/sumfact/realization.py +++ b/python/dune/perftool/sumfact/realization.py @@ -68,6 +68,11 @@ def _realize_input(sf, insn_dep): context_tags=("kernel",), cache_key_generator=lambda s, **kw: s.cache_key) def _realize_sum_factorization_kernel(sf, insn_dep=frozenset(), outshape=None, direct_input=None, direct_output=None): + # Unify the insn_dep parameter to be a frozenset + if isinstance(insn_dep, str): + insn_dep = frozenset({insn_dep}) + assert isinstance(insn_dep, frozenset) + # Get the vectorization info. During dry run, this is a now op # sf = attach_vectorization_info(sf) if get_global_context_value("dry_run", False): -- GitLab