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

[NFCI][SYCL] Simplify property_key creation #12831

Merged
merged 5 commits into from
Feb 28, 2024

Conversation

aelovikov-intel
Copy link
Contributor

No description provided.

@aelovikov-intel

This comment was marked as resolved.

Comment on lines +50 to +52
struct buffer_location_key
: oneapi::experimental::detail::compile_time_property_key<
oneapi::experimental::detail::PropKind::BufferLocation> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would that be always ABI compatible taking into account that some properties are used in sycl/source? E.g.: https://github.com/intel/llvm/blob/sycl/sycl/source/detail/usm/usm_impl.cpp#L98-L99

Copy link
Contributor

Choose a reason for hiding this comment

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

The ones in that example are from SYCL 2020 properties, while these properties are all from the sycl_ext_oneapi_properties extension. Since that property-list is templated I don't believe it crosses the library boundaries, so it would only be if we pass the properties around by themselves.

Copy link
Contributor

@v-klochkov v-klochkov left a comment

Choose a reason for hiding this comment

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

ESIMD part is good.

Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Generally I think this is a reasonable, but worry about exposing non-standard implementation details publicly.

Comment on lines +50 to +52
struct buffer_location_key
: oneapi::experimental::detail::compile_time_property_key<
oneapi::experimental::detail::PropKind::BufferLocation> {
Copy link
Contributor

Choose a reason for hiding this comment

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

The ones in that example are from SYCL 2020 properties, while these properties are all from the sycl_ext_oneapi_properties extension. Since that property-list is templated I don't believe it crosses the library boundaries, so it would only be if we pass the properties around by themselves.

Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Neat! 👍

@steffenlarsen steffenlarsen merged commit c0f9f23 into intel:sycl Feb 28, 2024
12 checks passed
@aelovikov-intel aelovikov-intel deleted the simplify-prop-key branch February 28, 2024 16:12
steffenlarsen added a commit to steffenlarsen/llvm that referenced this pull request Mar 5, 2024
intel#12831 inadverdently removed the
detail namespace opening from the GRF size property header. This commit
returns this namespace.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
steffenlarsen added a commit that referenced this pull request Mar 5, 2024
#12831 inadverdently removed the
detail namespace opening from the GRF size property header. This commit
returns this namespace.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
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