Skip to content

[SYCL] Fix execution graph cleanup on memory object destruction #1065

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 5 commits into from
Feb 7, 2020

Conversation

sergey-semenov
Copy link
Contributor

The previous algorithm deleted a visited node if it had no dependencies
left, but it only visited the immediate users of deleted nodes while
leaving all potential indirect users unchanged. This resulted in
leftover dependencies on dead memory objects.

The new algorithm addresses this problem by traversing the entire graph
component of the memory object being deleted instead.

Signed-off-by: Sergey Semenov [email protected]

@sergey-semenov sergey-semenov force-pushed the cleanupfix branch 2 times, most recently from ed7cc59 to b9236af Compare February 5, 2020 13:23
@sergey-semenov sergey-semenov force-pushed the cleanupfix branch 2 times, most recently from 5016154 to 8acbd77 Compare February 6, 2020 15:40
The previous algorithm deleted a visited node if it had no dependencies
left, but it only visited the immediate users of deleted nodes while
leaving all potential indirect users unchanged. This resulted in
leftover dependencies on dead memory objects.

The new algorithm addresses this problem by traversing the entire graph
component of the memory object being deleted instead.

Signed-off-by: Sergey Semenov <[email protected]>
Signed-off-by: Sergey Semenov <[email protected]>
Signed-off-by: Sergey Semenov <[email protected]>
Signed-off-by: Sergey Semenov <[email protected]>
@sergey-semenov sergey-semenov force-pushed the cleanupfix branch 2 times, most recently from 5830bfa to 932a8c9 Compare February 7, 2020 14:31
@bader bader merged commit 7a75b54 into intel:sycl Feb 7, 2020
@sergey-semenov sergey-semenov deleted the cleanupfix branch February 14, 2020 09:52
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.

5 participants