From 556fadc0e13959d53a053e4d3c9662ba9cb3e5d0 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Thu, 29 Mar 2018 11:56:42 +0200 Subject: [PATCH] Adapt to latest loopy --- python/dune/perftool/pdelab/localoperator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/dune/perftool/pdelab/localoperator.py b/python/dune/perftool/pdelab/localoperator.py index 15184288..c5261439 100644 --- a/python/dune/perftool/pdelab/localoperator.py +++ b/python/dune/perftool/pdelab/localoperator.py @@ -526,6 +526,7 @@ def extract_kernel_from_cache(tag, name, signature, wrap_in_cgen=True, add_timin options=opt, silenced_warnings=silenced, name=name, + lang_version=(2018, 1), ) from loopy import make_reduction_inames_unique @@ -682,6 +683,9 @@ def cgen_class_from_cache(tag, members=[]): signature = "{}({})".format(basename, ", ".join(next(iter(p.generate(with_semicolon=False))) for p in constructor_params)) constructor = LoopyKernelMethod([signature], constructor_knl, add_timings=False, initializer_list=il) + from loopy import get_one_scheduled_kernel + constructor_knl = get_one_scheduled_kernel(constructor_knl) + # Take any temporary declarations from the kernel and make them class members target = DuneTarget() from loopy.codegen import CodeGenerationState -- GitLab