Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small slate fix #3811

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions firedrake/slate/slac/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,17 @@ def merge_loopy(slate_loopy, output_arg, builder, var2terminal, name):

for tsfc_loopy in tsfc_kernels:
slate_wrapper = merge([slate_wrapper, tsfc_loopy])
names = tsfc_loopy.callables_table
for name in names:
slate_wrapper = merge([slate_wrapper, slate_loopy])

# At this point the individual subkernels are no longer callable, we
# only want to access the generated code via the wrapper.
slate_wrapper = slate_wrapper.with_entrypoints({name})

for tsfc_loopy in tsfc_kernels:
for name in tsfc_loopy.callables_table:
if isinstance(slate_wrapper.callables_table[name], CallableKernel):
slate_wrapper = _match_caller_callee_argument_dimension_(slate_wrapper, name)
slate_wrapper = merge([slate_wrapper, slate_loopy])
names = slate_loopy.callables_table
for name in names:
for name in slate_loopy.callables_table:
if isinstance(slate_wrapper.callables_table[name], CallableKernel):
slate_wrapper = _match_caller_callee_argument_dimension_(slate_wrapper, name)

Expand Down
Loading