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

bug[next]: Fix ITIR nested tuple return tracing #1317

Merged
merged 2 commits into from
Aug 14, 2023

Conversation

tehrengruber
Copy link
Contributor

@tehrengruber tehrengruber commented Aug 11, 2023

While returning a tuple from an ITIR stencil could be successfully traced

@fundef
def tuple_output1(inp1, inp2):
    return (deref(inp1), deref(inp2))

nested tuples were broken, which is fixed by this PR.

@fundef
def tuple_of_tuple_output1(inp1, inp2, inp3, inp4):
    return (deref(inp1), deref(inp2)), (deref(inp3), deref(inp4))

@tehrengruber tehrengruber requested a review from havogt August 11, 2023 12:55
@tehrengruber tehrengruber changed the title bug[next]: Fix ITIR tuple tracing bug[next]: Fix ITIR nested tuple return tracing Aug 11, 2023
@tehrengruber tehrengruber merged commit 544660a into GridTools:main Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants