Skip to content

[SYCL] Avoid copying of NormalizedKernelFunc temporary #11368

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

Conversation

oleksandr-pavlyk
Copy link
Contributor

Coverity analysis of IntelPython/dpctl.git SYCL-based projects shows 6721 hits of COPY_INSTEAD_OF_MOVE type issues in ResetHostKernelHelper with the suggestion to use std::move(NormalizedKernelFunc) instead.

image

This PR applies that suggestion.

@oleksandr-pavlyk oleksandr-pavlyk requested a review from a team as a code owner September 29, 2023 20:41
@oleksandr-pavlyk oleksandr-pavlyk changed the title Avoid copying of NormalizedKernelFunc temporary instance Avoid copying of NormalizedKernelFunc temporary Sep 29, 2023
Coverity analysis of IntelPython/dpctl.git SYCL-based projects shows
6721 hits of COPY_INSTEAD_OF_MOVE type issues in ResetHostKernelHelper
with the suggestion to use std::move(NormalizedKernelFunc) instead.

This PR applies that suggestion.
@oleksandr-pavlyk oleksandr-pavlyk force-pushed the resolve-6721-copy-instead-of-move-in-handler-hpp branch from 0168e00 to 1b5361b Compare October 2, 2023 17:02
@oleksandr-pavlyk oleksandr-pavlyk temporarily deployed to WindowsCILock October 2, 2023 19:16 — with GitHub Actions Inactive
@oleksandr-pavlyk oleksandr-pavlyk temporarily deployed to WindowsCILock October 2, 2023 19:41 — with GitHub Actions Inactive
@oleksandr-pavlyk
Copy link
Contributor Author

@cperkinsintel Ping

@againull againull closed this Oct 26, 2023
@againull againull reopened this Oct 26, 2023
@againull againull temporarily deployed to WindowsCILock October 26, 2023 19:38 — with GitHub Actions Inactive
@againull againull temporarily deployed to WindowsCILock October 26, 2023 20:06 — with GitHub Actions Inactive
@againull againull temporarily deployed to WindowsCILock October 26, 2023 22:09 — with GitHub Actions Inactive
@againull againull temporarily deployed to WindowsCILock October 26, 2023 23:05 — with GitHub Actions Inactive
@againull againull changed the title Avoid copying of NormalizedKernelFunc temporary [SYCL] Avoid copying of NormalizedKernelFunc temporary Oct 26, 2023
@againull againull merged commit c15763f into intel:sycl Oct 27, 2023
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