From 1336abfcfeb03bad59a47cc0fbe8bda5bcd326cb Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Tue, 20 Dec 2016 15:29:15 +0100 Subject: [PATCH] Small fixes --- .../perftool/loopy/transformations/collect_rotate.py | 1 + python/dune/perftool/sumfact/amatrix.py | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/python/dune/perftool/loopy/transformations/collect_rotate.py b/python/dune/perftool/loopy/transformations/collect_rotate.py index 43274b99..c0661447 100644 --- a/python/dune/perftool/loopy/transformations/collect_rotate.py +++ b/python/dune/perftool/loopy/transformations/collect_rotate.py @@ -154,6 +154,7 @@ def collect_vector_data_rotate(knl): prim.Subscript(prim.Variable(quantity), tuple(prim.Variable(i) for i in cinsn_inames)), within_inames=common_inames.union(inames).union(frozenset(cinsn_inames)), within_inames_is_final=True, + depends_on=frozenset({Writes(quantity)}), id=cinsn_id, )) all_writers.append(cinsn_id) diff --git a/python/dune/perftool/sumfact/amatrix.py b/python/dune/perftool/sumfact/amatrix.py index 7585281b..6cadb619 100644 --- a/python/dune/perftool/sumfact/amatrix.py +++ b/python/dune/perftool/sumfact/amatrix.py @@ -70,10 +70,11 @@ class LargeAMatrix(ImmutableRecord): @property def name(self): - name = "ThetaLarge{}{}_{}".format("face{}_".format(self.face) if self.face is not None else "", - "T" if self.transpose else "", - "_".join(tuple("d" if d else "" for d in self.derivative)) - ) + name = "ThetaLarge{}{}_{}_qp{}".format("face{}_".format(self.face) if self.face is not None else "", + "T" if self.transpose else "", + "_".join(tuple("d" if d else "" for d in self.derivative)), + quadrature_points_per_direction(), + ) for i, d in enumerate(self.derivative): define_theta(name, (self.rows, self.cols), self.transpose, d, face=self.face, additional_indices=(i,)) -- GitLab