Skip to content

stree -> sdfg: add missing nested SDFG connectors - #2548

Open
romanc wants to merge 2 commits into
spcl:mainfrom
romanc:romanc/stree-sdfg-nested-sdfg-connectors
Open

stree -> sdfg: add missing nested SDFG connectors#2548
romanc wants to merge 2 commits into
spcl:mainfrom
romanc:romanc/stree-sdfg-nested-sdfg-connectors

Conversation

@romanc

@romanc romanc commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Description

Follow-up from PR #2541: there's one more case of "read after write" where we need to add a connector to the nested SDFG to retain the connection to "outside" memory and not confuse simplify.

Founds as part of our work to port the FV3 dynamical core.

image

This is DelnFlux_2, last state. Look at __g_self__fy2: it's read after written and thus no input connector for __g_self__fy2 is added. That's not good because __g_self__fy2 is only partially written here. Also, since there's no input connector and since the output connector will be (rightfully) pruned, __g_self__fy2 will be "inlined" by DeadDataflowElimination, which then breaks stuff down the line (e.g. latest in D_SW).

The PR adds a simpler reproducer (in tests) and ensures as part of the unit tests that this won't regress.

@romanc

This comment was marked as outdated.

@romanc
romanc force-pushed the romanc/stree-sdfg-nested-sdfg-connectors branch 2 times, most recently from 774fa14 to 72d64b2 Compare September 3, 2026 12:37
@romanc
romanc marked this pull request as ready for review September 3, 2026 12:43
@romanc

romanc commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

/cc @FlorianDeconinck this is ready for review (as discussed). Can't ping you as reviewer because I don't have rights to do so ...

@romanc

This comment was marked as outdated.

@romanc
romanc force-pushed the romanc/stree-sdfg-nested-sdfg-connectors branch from 72d64b2 to 1e32fb3 Compare September 3, 2026 14:43
@romanc

romanc commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

I don't understand how this can/should break ML tests. I'm hitting a 404 again. Seems like something isn't online (anymore)?!

@ThrudPrimrose

Copy link
Copy Markdown
Collaborator

I don't understand how this can/should break ML tests. I'm hitting a 404 again. Seems like something isn't online (anymore)?!

Downloading models is failing, cloudflare must be down or something
Let's try again to merge tomorrow.

@ThrudPrimrose ThrudPrimrose left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Core fix looks good. Semantically, might be better to split the bugfix and syntactic-cleaning, regardless all good.

@ThrudPrimrose

Copy link
Copy Markdown
Collaborator

Need to wait until cloudflare or whatever webservice that is down is back

@romanc

romanc commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Core fix looks good. Semantically, might be better to split the bugfix and syntactic-cleaning, regardless all good.

I can split stuff if you want me to. Since we anyway have to wait and everything is neatly in commits it's gonna be very easy and we won't loose time.

@romanc

romanc commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

I don't understand how this can/should break ML tests. I'm hitting a 404 again. Seems like something isn't online (anymore)?!

Downloading models is failing, cloudflare must be down or something Let's try again to merge tomorrow.

Do these models change often? If not, could we cache them or are they way too big for GHA caches?

@romanc

romanc commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Core fix looks good. Semantically, might be better to split the bugfix and syntactic-cleaning, regardless all good.

#2554

@romanc
romanc force-pushed the romanc/stree-sdfg-nested-sdfg-connectors branch from 1e32fb3 to 00c6121 Compare September 4, 2026 06:15
@romanc

romanc commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

I've split out the unrelated changes. Someone with access rights will need to kick off the GPU tests ...

@edopao

edopao commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

cscs-ci run GPU

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.

3 participants