Skip to content

Fixed Multiple Return Values and Refined Validations - #2430

Open
philip-paul-mueller wants to merge 10 commits into
spcl:mainfrom
philip-paul-mueller:fixed_multi_return_values
Open

Fixed Multiple Return Values and Refined Validations#2430
philip-paul-mueller wants to merge 10 commits into
spcl:mainfrom
philip-paul-mueller:fixed_multi_return_values

Conversation

@philip-paul-mueller

Copy link
Copy Markdown
Collaborator

Before the return values were processed by using sorted(), which sorted the tuple return values, i.e. __return_{id}, alphabetically. This has the effect that __return_11 is ordered before __return_2. This PR changes this and ensures that they are in the correct order. Furthermore it speeds up CompiledSDFG._initialize_return_values() by not iterating over all arrays in teh SDFG but only through the actual return values.

Furthermore, this PR refines the type rules in sdfg.validation. Essentially it restricts return values to Arrrays. This is done because their allocations is done NumPy it is limited by what NumPy can allocate.

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