Skip to content

[SYCL] Fix segmentation fault in program manager #2057

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
Jul 10, 2020
Merged

[SYCL] Fix segmentation fault in program manager #2057

merged 2 commits into from
Jul 10, 2020

Conversation

dm-vodopyanov
Copy link
Contributor

@dm-vodopyanov dm-vodopyanov commented Jul 7, 2020

This patch fixes sporadic segmentation fault caused by data race in NativePrograms variable of ProgramManager class.
According to documentation, an access to this variable should be synchronized via the same lock as program cache but there was a lack of lock guard for NativePrograms[Res] = &Img; in sycl/source/detail/program_manager/program_manager.cpp. Added missing lock guard.

@dm-vodopyanov dm-vodopyanov requested a review from kbobrovs as a code owner July 7, 2020 11:44
@kbobrovs kbobrovs requested a review from romanovvlad July 8, 2020 17:36
@kbobrovs
Copy link
Contributor

kbobrovs commented Jul 8, 2020

@dm-vodopyanov , please provide some details of the problem and the fix in the PR description and commit message.

@dm-vodopyanov
Copy link
Contributor Author

@kbobrovs, added description, please review.

@dm-vodopyanov dm-vodopyanov requested a review from kbobrovs July 9, 2020 06:41
Copy link
Contributor

@romanovvlad romanovvlad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I would like @kbobrovs to approve as well.

Copy link
Contributor

@kbobrovs kbobrovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bader bader merged commit 363ad5f into intel:sycl Jul 10, 2020
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.

4 participants