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

Persistent fusion view fix #1552

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Persistent fusion view fix #1552

wants to merge 4 commits into from

Conversation

tbennun
Copy link
Collaborator

@tbennun tbennun commented Mar 20, 2024

Fixes Issue #1549

Copy link
Contributor

@kylosus kylosus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix for nsdfg parents

# Replace nested SDFG parents with new SDFG
for nstate in kernel_sdfg.states():
    for node in nstate.nodes():
        if isinstance(node, nodes.NestedSDFG):
            node.sdfg.parent = nstate
            node.sdfg.parent_sdfg = kernel_sdfg
            node.sdfg.parent_nsdfg_node = node

@kylosus
Copy link
Contributor

kylosus commented Mar 29, 2024

Thanks a lot for the PR! I added a small fix to correctly set parents of nested sdfgs.

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.

None yet

2 participants