Skip to content

[SYCL][L0] Fix use of deleted scoped_lock copy constructor #6304

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
Jun 14, 2022

Conversation

steffenlarsen
Copy link
Contributor

#6244 changed the L0 backend to use std::scoped_lock for various occasions. However, when building with MSVC some of the uses are done through copying. Since std::scoped_lock has its copy-constructor deleted this causes the build to fail. This commit changes this pattern to avoid the copy.

intel#6244 changed the L0 backend to use
std::scoped_lock for various occasions. However, when building with MSVC
some of the uses are done through copying. Since std::scoped_lock has
its copy-constructor deleted this causes the build to fail. This commit
changes this pattern to avoid the copy.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from againull June 14, 2022 15:51
@steffenlarsen steffenlarsen requested a review from a team as a code owner June 14, 2022 15:51
@pvchupin pvchupin merged commit 6b55f58 into intel:sycl Jun 14, 2022
@steffenlarsen steffenlarsen deleted the steffen/fix_scoped_lock_copy branch December 6, 2023 11:38
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