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

LoopToMap detects shared transients #1200

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

alexnick83
Copy link
Contributor

When applying LoopToMap to a for-loop whose body is nested to complete the transformation, any transient data used exclusively inside the body become transient data of the nested SDFG, i.e., thread-local variables. Although this is technically always correct, it could be more efficient in the case of Arrays that can be partitioned to disjoint subsets per loop iteration. This PR adds to LoopToMap functionality to detect and keep such data shared among all Map iterations.

@alexnick83 alexnick83 requested a review from tbennun February 26, 2023 16:17
Copy link
Collaborator

@tbennun tbennun left a comment

Choose a reason for hiding this comment

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

One tiny change

@tbennun tbennun merged commit 4204785 into master Feb 27, 2023
@tbennun tbennun deleted the loop-to-map-detect-shared-transients branch February 27, 2023 23:00
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