Skip to content

[SYCL] Fix cleanup of deferred commands #6605

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 2 commits into from
Aug 24, 2022

Conversation

KseniyaTikhomirova
Copy link
Contributor

When we work in multiple threads and lock on graph failed because of its ownership by another thread - we add command to cleanup to the pool with deferred commands. Sometimes it happens that this pool is never cleaned and even in scheduler destructor it is ignored because of not fully correct check.
Current solution let scheduler to cleanup deferred commands in its destructor. Although in most cases it will be cleaned up much earlier because in any place where vector ToCleanup was empty - we will check if there is deferred commands awaiting for destruction.

Signed-off-by: Tikhomirova, Kseniya [email protected]

When we work in multiple threads and lock on graph failed because of its ownership by another thread - we add command to cleanup to the pool with deferred commands. Sometimes it happens that this pool is never cleaned and even in scheduler destructor it is ignored because of not fully correct check.
Current solution let scheduler to cleanup deferred commands in its destructor. Although in most cases it will be cleaned up much earlier because in any place where vector ToCleanup was empty - we will check if there is deferred commands awaiting for destruction.

Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
@KseniyaTikhomirova KseniyaTikhomirova marked this pull request as ready for review August 22, 2022 16:15
@KseniyaTikhomirova KseniyaTikhomirova requested a review from a team as a code owner August 22, 2022 16:15
@KseniyaTikhomirova KseniyaTikhomirova changed the title [SYCL] Fix cleanup of deferred commands [DO NOT MERGE][SYCL] Fix cleanup of deferred commands Aug 23, 2022
@KseniyaTikhomirova KseniyaTikhomirova changed the title [DO NOT MERGE][SYCL] Fix cleanup of deferred commands [SYCL] Fix cleanup of deferred commands Aug 23, 2022
@KseniyaTikhomirova
Copy link
Contributor Author

intel/llvm-test-suite#1173 - disabling of flaky failing tests on HIP

@KseniyaTikhomirova
Copy link
Contributor Author

@intel/llvm-gatekeepers, hello, could you please merge it?

@steffenlarsen steffenlarsen merged commit 52feab3 into intel:sycl Aug 24, 2022
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