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

state.read_and_write_sets() ignore reads directly after writes #1325

Merged
merged 6 commits into from
Jul 21, 2023

Conversation

Sajohn-CH
Copy link
Contributor

read_and_write_sets() filters out reads which are written directly before to the same AccessNode. Will only work if the read and write memlet go to the same AccessNode

@Sajohn-CH
Copy link
Contributor Author

I also had to change RefineNestedAccess to check if a memlet is in the read and write set before refining it, as it expects a connector which is only there it it is in the read_and_write_sets

Copy link
Contributor

@alexnick83 alexnick83 left a comment

Choose a reason for hiding this comment

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

It looks pretty good; only minor comments. Also, add your name in the AUTHORS file

dace/sdfg/state.py Outdated Show resolved Hide resolved
dace/sdfg/state.py Outdated Show resolved Hide resolved
dace/sdfg/state.py Show resolved Hide resolved
tests/sdfg/state_test.py Show resolved Hide resolved
Samuel Martin and others added 3 commits July 21, 2023 08:47
Co-authored-by: alexnick83 <31545860+alexnick83@users.noreply.github.com>
@Sajohn-CH Sajohn-CH marked this pull request as ready for review July 21, 2023 06:50
@alexnick83 alexnick83 merged commit 182ef86 into spcl:master Jul 21, 2023
9 checks passed
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