Skip to content
Snippets Groups Projects
Commit a5234fad authored by Dominic Kempf's avatar Dominic Kempf
Browse files

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...
parent c288a3e8
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,6 @@ def pymbolic_trialfunction_gradient(element, restriction, component, visitor): ...@@ -68,7 +68,6 @@ def pymbolic_trialfunction_gradient(element, restriction, component, visitor):
dim = world_dimension() dim = world_dimension()
buffers = [] buffers = []
insn_dep = None
for i in range(dim): for i in range(dim):
# Construct the matrix sequence for this sum factorization # Construct the matrix sequence for this sum factorization
a_matrices = construct_amatrix_sequence(derivative=i, a_matrices = construct_amatrix_sequence(derivative=i,
...@@ -90,8 +89,7 @@ def pymbolic_trialfunction_gradient(element, restriction, component, visitor): ...@@ -90,8 +89,7 @@ def pymbolic_trialfunction_gradient(element, restriction, component, visitor):
).get_temporary(shape=shape, ).get_temporary(shape=shape,
name=inp, name=inp,
) )
if insn_dep is None: insn_dep = frozenset({Writes(inp)})
insn_dep = frozenset({Writes(inp)})
if get_option('fastdg'): if get_option('fastdg'):
# Name of direct input, shape and globalarg is set in sum_factorization_kernel # Name of direct input, shape and globalarg is set in sum_factorization_kernel
...@@ -161,7 +159,6 @@ def pymbolic_trialfunction(element, restriction, component, visitor): ...@@ -161,7 +159,6 @@ def pymbolic_trialfunction(element, restriction, component, visitor):
name=inp, name=inp,
) )
# TODO: fastdg and vectorization
if get_option('fastdg'): if get_option('fastdg'):
# Name of direct input, shape and globalarg is set in sum_factorization_kernel # Name of direct input, shape and globalarg is set in sum_factorization_kernel
direct_input = name_coefficientcontainer(restriction) direct_input = name_coefficientcontainer(restriction)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment