Skip to content

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 kseniya.tikhomirova@intel.com

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 <kseniya.tikhomirova@intel.com>
Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
@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