diff --git a/python/dune/perftool/generation/loopy.py b/python/dune/perftool/generation/loopy.py index bdca6a9f2b99af29aee25fb181a0e55f45adb292..133a1f1712f011953f47515dd08575fbecdbe202 100644 --- a/python/dune/perftool/generation/loopy.py +++ b/python/dune/perftool/generation/loopy.py @@ -144,4 +144,4 @@ def barrier(**kwargs): assert 'id' not in kwargs name = 'barrier_{}'.format(get_counter('barrier')) _barrier(id=name, **kwargs) - return name \ No newline at end of file + return name diff --git a/python/dune/perftool/loopy/target.py b/python/dune/perftool/loopy/target.py index a28a10adc9a107ea753b20b130dada055bb54bc8..55fb43c71c7218f7969e06a70339372a68acfb26 100644 --- a/python/dune/perftool/loopy/target.py +++ b/python/dune/perftool/loopy/target.py @@ -75,8 +75,8 @@ class DuneCExpressionToCodeMapper(CExpressionToCodeMapper): result = self.rec(children.pop(), PREC_NONE) while children: result = "std::%s(%s, %s)" % (what, - self.rec(children.pop(), PREC_NONE), - result) + self.rec(children.pop(), PREC_NONE), + result) return result diff --git a/python/dune/perftool/loopy/transformations/collect_precompute.py b/python/dune/perftool/loopy/transformations/collect_precompute.py index 2324defcff748241ea7dbc1e6ab2f4a786565b34..9eda9688efc423057d57a05278da1d22599569f7 100644 --- a/python/dune/perftool/loopy/transformations/collect_precompute.py +++ b/python/dune/perftool/loopy/transformations/collect_precompute.py @@ -107,6 +107,6 @@ def collect_vector_data_precompute(knl, insns, inames): within_inames=frozenset(new_inames), within_inames_is_final=True, ) - ) + ) return knl.copy(instructions=new_insns + other_insns) diff --git a/python/dune/perftool/loopy/transformations/collect_rotate.py b/python/dune/perftool/loopy/transformations/collect_rotate.py index 16a472c87a22495925d65b6f9a9a04dc5f1329d4..e39595f9b35014937cd907f34ae784d038a34d95 100644 --- a/python/dune/perftool/loopy/transformations/collect_rotate.py +++ b/python/dune/perftool/loopy/transformations/collect_rotate.py @@ -101,7 +101,7 @@ def collect_vector_data_rotate(knl, insns, inames): new_insns.append(insn.copy(assignee=replacemap_arr[get_pymbolic_basename(insn.assignee)], depends_on_is_final=True, ) - ) + ) elif isinstance(insn, lp.CInstruction): # Rip apart the code and change the assignee assignee, expression = insn.code.split("=") @@ -175,7 +175,6 @@ def collect_vector_data_rotate(knl, insns, inames): # Add a continue statement depending on the rotate index # - # Determine the condition for the continue statement upper_bound = prim.Product(tuple(pw_aff_to_expr(knl.get_iname_bounds(i).size) for i in inames)) total_check = prim.Comparison(prim.Variable("total_index"), "<", upper_bound) diff --git a/python/dune/perftool/loopy/transformations/vectorview.py b/python/dune/perftool/loopy/transformations/vectorview.py index 243a6e528562607038f17134bb93837690aad72d..0fa7ff09d8978f2d9f0176698bde6745c8d19b51 100644 --- a/python/dune/perftool/loopy/transformations/vectorview.py +++ b/python/dune/perftool/loopy/transformations/vectorview.py @@ -10,6 +10,7 @@ import loopy as lp import numpy as np import pymbolic.primitives as prim + def get_vector_view_name(tmpname): return tmpname + "_vec" @@ -66,4 +67,4 @@ def add_temporary_with_vector_view(knl, name, *args, **kwargs): temps[name] = lp.TemporaryVariable(name, *args, **kwargs) knl = knl.copy(temporary_variables=temps) knl = add_vector_view(knl, name) - return knl \ No newline at end of file + return knl