Skip to content

Fix calculated compute properties for callables invoked from parallel exprs - #3592

Open
Stefan J. Wernli (swernli) wants to merge 2 commits into
mainfrom
swernli/parallel-rca-capabilities
Open

Fix calculated compute properties for callables invoked from parallel exprs#3592
Stefan J. Wernli (swernli) wants to merge 2 commits into
mainfrom
swernli/parallel-rca-capabilities

Conversation

@swernli

Copy link
Copy Markdown
Contributor

This fixes a bug in how compute proerties were calculated by RCA and queried during Partial Eval when the callable being invoked is inside of a parallel expression. Since parallel expressions force inlining and unrolling, the invoked callable uses different capabilities than what would be computed by default. This avoids computing every callable twice by only inserting into a parallel data structure those specializations that are invoked from within a parallel expr. As a result, code that doesn't use parallel keeps the same behavior, but code that does parallel will compute extra, parallel-specific properties for those callables used within.

…l` exprs

This fixes a bug in how compute proerties were calculated by RCA and queried during Partial Eval when the callable being invoked is inside of a parallel expression. Since parallel expressions force inlining and unrolling, the invoked callable uses different capabilities than what would be computed by default. This avoids computing every callable twice by only inserting into a parallel data structure those specializations that are invoked from within a parallel expr. As a result, code that doesn't use parallel keeps the same behavior, but code that does parallel will compute extra, parallel-specific properties for those callables used within.
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.

1 participant