From 07ac662338d4340226f629cbbb93c696ddd1673b Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Thu, 22 Sep 2016 11:49:07 +0200 Subject: [PATCH] needs_iname_duplication -> not had_schedulable_iname_nesting --- python/dune/perftool/pdelab/localoperator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/dune/perftool/pdelab/localoperator.py b/python/dune/perftool/pdelab/localoperator.py index 85f1f0a2..9bd174b0 100644 --- a/python/dune/perftool/pdelab/localoperator.py +++ b/python/dune/perftool/pdelab/localoperator.py @@ -287,12 +287,12 @@ def generate_kernel(integrals): # see whether we need iname duplication to make this thing schedulable! # TODO: Use a clever strategy here, instead of random transformation until the problem is resolved - from loopy import needs_iname_duplication, get_iname_duplication_options, duplicate_inames - while needs_iname_duplication(kernel): + from loopy import has_schedulable_iname_nesting, get_iname_duplication_options, duplicate_inames + while not has_schedulable_iname_nesting(kernel): # If there is a duplication that solves the problem with just one duplication, we pick that one iname, within = (None, None) for i, w in get_iname_duplication_options(kernel): - if not needs_iname_duplication(duplicate_inames(kernel, i, w)): + if has_schedulable_iname_nesting(duplicate_inames(kernel, i, w)): iname, within = (i, w) # Otherwise pick a random one. -- GitLab