Skip to content

[NFC][SYCL] More cleanup after enable_shared_from_this for kernel_bundle_impl #19185

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

Open
wants to merge 2 commits into
base: sycl
Choose a base branch
from

Conversation

aelovikov-intel
Copy link
Contributor

Follow-up for #18899.

Also adds proper private_tag argument for the ctor added in #18949 that missed that. Also pass span by value while on it.

…bundle_impl`

Follow-up for intel#18899.

Also adds proper `private_tag` argument for the ctor added in
intel#18949 that missed that. Also pass
`span` by value while on it.
Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

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

LGTM, just one nit.

@@ -323,7 +323,7 @@ kernel make_kernel(const context &TargetContext,
backend Backend) {
const auto &Adapter = getAdapter(Backend);
const auto &ContextImpl = getSyclObjImpl(TargetContext);
const auto &KernelBundleImpl = getSyclObjImpl(KernelBundle);
kernel_bundle_impl &KernelBundleImpl = *getSyclObjImpl(KernelBundle);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to keep the const?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a different const. Before this, it was const std::shared_ptr<T>, not std::shared_ptr<const T>.

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.

2 participants