Skip to content

[SYCL] Fix undefined behaviour during graph cleanup #2157

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

Merged
merged 4 commits into from
Jul 24, 2020

Conversation

sergey-semenov
Copy link
Contributor

With the switch to using the command member field to mark nodes as
visited during graph traversal, deleting nodes during the traversal
leads to invalid memory access whenever there's a node with multiple
indirect dependencies on another node. This patch fixes the issue by
moving the deletion of the nodes to take place post-traversal.

With the switch to using the command member field to mark nodes as
visited during graph traversal, deleting nodes during the traversal
leads to invalid memory access whenever there's a node with multiple
indirect dependencies on another node. This patch fixes the issue by
moving the deletion of the nodes to take place post-traversal.
This approach shows better performance with floating point reduction
which is cleanup-intensive.

Signed-off-by: Sergey Semenov <[email protected]>
@sergey-semenov
Copy link
Contributor Author

Sorry for the force push, ended up accidentally pushing the wrong patch the first time

Signed-off-by: Sergey Semenov <[email protected]>
Signed-off-by: Sergey Semenov <[email protected]>
@sergey-semenov
Copy link
Contributor Author

Unrelated test failure, to be temporarily disabled in #2173

@bader bader merged commit 498bea0 into intel:sycl Jul 24, 2020
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.

3 participants