Skip to content

[NFC][SYCL] std::shared_ptr<device_image_impl> cleanups #19506

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

Draft
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

aelovikov-intel
Copy link
Contributor

  • Avoid unnecessary copies
  • Use rvalue-reference if param is getting moved from
  • Remove DeviceImageImplPtr type alias (not too many uses remaining, doesn't bring much value anymore)
  • Inline some temporaries so that explicit std::move wouldn't be needed
  • Switch some sets to use raw device_image_impl * ptr
  • kernel_impl::getDeviceImage to return raw reference

* Avoid unnecessary copies
* Use rvalue-reference if param is getting moved from
* Remove `DeviceImageImplPtr` type alias (not too many uses remaining,
  doesn't bring much value anymore)
* Inline some temporaries so that explicit `std::move` wouldn't be
  needed
* Switch some sets to use raw `device_image_impl *` ptr
* `kernel_impl::getDeviceImage` to return raw reference
@aelovikov-intel aelovikov-intel requested a review from a team as a code owner July 17, 2025 18:36
@aelovikov-intel aelovikov-intel changed the title [NFC][SYCL] std::shared_ptr<device_image_impl>` cleanups [NFC][SYCL] std::shared_ptr<device_image_impl> cleanups Jul 17, 2025
@aelovikov-intel aelovikov-intel marked this pull request as draft July 17, 2025 19:25
@maarquitos14
Copy link
Contributor

@aelovikov-intel I see this is marked as draft, so I understand it is not ready for review. Please, ping when it is :)

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