Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Oct 8, 2024
1 parent 46f2ea1 commit 785b22c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions firedrake/slate/slac/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@
cell_to_facets_dtype = np.dtype(np.int8)


def _cache_key(expr, compiler_parameters):
return expr.ufl_domains()[0].comm, md5(
(expr.expression_hash + str(sorted(compiler_parameters.items()))).encode()
).hexdigest()


class SlateKernel(TSFCKernel):
def __init__(self, expr, compiler_parameters):
self.split_kernel = generate_loopy_kernel(expr, compiler_parameters)
Expand Down
2 changes: 0 additions & 2 deletions firedrake/tsfc_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@

def tsfc_compile_form_hashkey(form, prefix, parameters, interface, diagonal, log):
# Drop prefix as it's only used for naming and log
# JBTODO: Can't drop prefix as tests/slate/test_optimise.py::test_partially_optimised fails, investigate
# it looks like the prefix is being used to create different subkernels, which conflicts with the docstring below
return default_parallel_hashkey(form.signature(), prefix, parameters, interface, diagonal)


Expand Down

0 comments on commit 785b22c

Please sign in to comment.