Skip to content

[SYCL] Join thread pool threads on Scheduler destruction (#3090) #3423

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 1 commit into from
Mar 26, 2021

Conversation

vladimirlaz
Copy link
Contributor

@vladimirlaz vladimirlaz commented Mar 26, 2021

Threads from default queue thread pool can access scheduler after its destruction has begun.
To avoid such illegal access, wait for all threads to join in scheduler destructor.

The c9c1de9 commit was reapplied after it was accidentally removed from SYCL branch.

Threads from default queue thread pool can access scheduler after its destruction has begun.
To avoid such illegal access, wait for all threads to join in scheduler destructor.
@vladimirlaz vladimirlaz requested a review from a team as a code owner March 26, 2021 10:11
@vladimirlaz vladimirlaz merged commit 552a521 into intel:sycl Mar 26, 2021
@vladimirlaz vladimirlaz deleted the reapply branch April 23, 2021 06:26
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