From a5234fadb18d9762187875d33fe64767022bdba2 Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Tue, 20 Dec 2016 18:23:54 +0100
Subject: [PATCH] Correct dependencies of trialfunction basis evaluations on
 their input data

Tricky... some grad components depended on the sumfac kernels of the
other directions instead of their input...
---
 python/dune/perftool/sumfact/basis.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/python/dune/perftool/sumfact/basis.py b/python/dune/perftool/sumfact/basis.py
index d3452f31..46a639fb 100644
--- a/python/dune/perftool/sumfact/basis.py
+++ b/python/dune/perftool/sumfact/basis.py
@@ -68,7 +68,6 @@ def pymbolic_trialfunction_gradient(element, restriction, component, visitor):
 
     dim = world_dimension()
     buffers = []
-    insn_dep = None
     for i in range(dim):
         # Construct the matrix sequence for this sum factorization
         a_matrices = construct_amatrix_sequence(derivative=i,
@@ -90,8 +89,7 @@ def pymbolic_trialfunction_gradient(element, restriction, component, visitor):
                                 ).get_temporary(shape=shape,
                                                 name=inp,
                                                 )
-        if insn_dep is None:
-            insn_dep = frozenset({Writes(inp)})
+        insn_dep = frozenset({Writes(inp)})
 
         if get_option('fastdg'):
             # Name of direct input, shape and globalarg is set in sum_factorization_kernel
@@ -161,7 +159,6 @@ def pymbolic_trialfunction(element, restriction, component, visitor):
                                       name=inp,
                                       )
 
-    # TODO: fastdg and vectorization
     if get_option('fastdg'):
         # Name of direct input, shape and globalarg is set in sum_factorization_kernel
         direct_input = name_coefficientcontainer(restriction)
-- 
GitLab