-
Notifications
You must be signed in to change notification settings - Fork 130
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
Scalar to symbol promotion fails if scalar is read in another state #1727
Comments
Scratch that, the quickfix does not get close to passing the tests. We need to investigate this further. |
Thanks for looking into this issue.
…On Thu, Nov 14, 2024, 08:36 Philipp Schaad ***@***.***> wrote:
Scratch that, the quickfix does not get close to passing the tests. We
need to investigate this further.
—
Reply to this email directly, view it on GitHub
<#1727 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIQUSWFCOMNWZ5DGXSJGE32ARHJRAVCNFSM6AAAAABREAXLBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGYZDCMBZGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
As mentioned to @tbennun through other channels, I wasn't able to reproduce this issue with the plain SDFG API. I can confirm the issue still persists with the latest (commit c83f601) version of the 1.0 branch though. I did some digging and when I am looking at the scalars that are to be promoted, I see the following in the debugger Is it expected that |
What is a SymbolRef? I don't think that's a supported object, as the function expects a set of strings. Who is creating that? |
Just for (later) reference:
|
Describe the bug
In the attached (see below) generated SDFG, I have the following pattern (see screenshot below)
if
/else
branching.This triggers scalar to symbol promotion on the evaluation scalar
maks_*
as well as on the intermediate booleanif_expression_*
. It looks likemask_*
is processed twice (once per state) and scalar to symbol promotion then fails whenmask_*
is processed in the second state (again).To Reproduce
Steps to reproduce the behavior:
original-generated.sdfg
)simplify()
on that SDFGnetworkx.exception.NetworkXError: nbunch is not a node or a sequence of nodes
Expected behavior
I expect scalar to symbol pass to fail gracefully in case it can't promote a scalar.
Screenshots
Desktop (please complete the following information):
Additional context
Zip file with SDFGs scalar-to-symbol.zip contains:
Quickfix in main...romanc:romanc/scalar-to-symbol seems to work in my simple test case. However, not sure about this approach. I might just be treating symptoms without understanding the problem.
Last part of the stack trace, tracing the problem back to
I search the open issues and found #1129 and #1665 which might be related.
The text was updated successfully, but these errors were encountered: