Skip to content

Draft: [SYCL] Fixes memory dependency leaks caused by failed kernel enqueue #5788

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

Closed

Conversation

steffenlarsen
Copy link
Contributor

If a kernel enqueue fails the runtime will immediately try and clean it up. However, if it has any dependencies or users the cleanup will be skipped. This can cause the dependencies to stay alive and leak. These changes forces a full sub-graph cleanup of the command if enqueuing failed. Additionally, sub-graph cleanup is changed to account for failed kernel enqueues and will remove the failed command from its leaves.

If a kernel enqueue fails the runtime will immediately try and clean it
up. However, if it has any dependencies or users the cleanup will be
skipped. This can cause the dependencies to stay alive and leak.
These changes forces a full sub-graph cleanup of the command if
enqueuing failed. Additionally, sub-graph cleanup is changed to account
for failed kernel enqueues and will remove the failed command from its
leaves.

Signed-off-by: Steffen Larsen <[email protected]>
Signed-off-by: Steffen Larsen <[email protected]>
Signed-off-by: Steffen Larsen <[email protected]>
This commit adds a new strategy for cleaning up failed commands, namely
to walk up the failed commands and its users and replace them by empty
commands. This preserves the structure of the graph while replacing
failed state.

Signed-off-by: Steffen Larsen <[email protected]>
Signed-off-by: Steffen Larsen <[email protected]>
Signed-off-by: Steffen Larsen <[email protected]>
Signed-off-by: Steffen Larsen <[email protected]>
Signed-off-by: Steffen Larsen <[email protected]>
@steffenlarsen
Copy link
Contributor Author

This is a reopening of #5120 intended to isolate the failures caused by it.

@steffenlarsen
Copy link
Contributor Author

/summary:run

1 similar comment
@bso-intel
Copy link
Contributor

/summary:run

@steffenlarsen
Copy link
Contributor Author

Closing this in favor of #7594.

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