Skip to content
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

[SYCL] Implement device arch comparison according to sycl_ext_oneapi_device_architecture spec update #12752

Merged
merged 11 commits into from
Mar 6, 2024
11 changes: 11 additions & 0 deletions sycl/include/sycl/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,17 @@ class __SYCL_EXPORT device : public detail::OwnerLessBase<device> {
/// the function.
bool ext_oneapi_architecture_is(ext::oneapi::experimental::architecture arch);

/// Indicates if the SYCL device architecture equals is in the category passed
dm-vodopyanov marked this conversation as resolved.
Show resolved Hide resolved
/// to the function.
///
/// \param category is one of the architecture categories from arch_category
/// enum described in sycl_ext_oneapi_device_architecture specification.
///
/// \return true if the SYCL device architecture is in the category passed to
/// the function.
bool
ext_oneapi_architecture_is(ext::oneapi::experimental::arch_category category);

// TODO: Remove this diagnostics when __SYCL_WARN_IMAGE_ASPECT is removed.
#if defined(__clang__)
#pragma clang diagnostic pop
Expand Down
Loading
Loading