Skip to content

[NFC][SYCL] Introduce get_ur_handles helper #18168

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
Apr 24, 2025

Conversation

aelovikov-intel
Copy link
Contributor

To reduce the amount of boilerplate code necessary without it. As a nice side effect avoids creation of temporary std::shared_ptr where using references would have been enough.

To reduce the amount of boilerplate code necessary without it. As a nice
side effect avoids creation of temporary `std::shared_ptr` where using
references would have been enough.
@aelovikov-intel
Copy link
Contributor Author

@intel/bindless-images-reviewers can I get a review on this before the end of workday in your time zone? It should be relatively trivial.

@@ -341,5 +341,21 @@ void GetCapabilitiesIntersectionSet(const std::vector<sycl::device> &Devices,
}

} // namespace detail

// We're under sycl/source and these won't be exported but it's way more
Copy link
Contributor

Choose a reason for hiding this comment

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

these are awesome. I find myself reaching for getSyclObjImp, getAdapter and getHandlerRef on a nearly daily basis.

But how will other team members know to use them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated all the places I found that can benefit from them. Hopefully copy-paste will spread the usage from here.

@aelovikov-intel aelovikov-intel merged commit 385d6ca into intel:sycl Apr 24, 2025
25 checks passed
@aelovikov-intel aelovikov-intel deleted the get-ur-handles branch April 24, 2025 16:52
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