Skip to content

Conversation

@againull
Copy link
Contributor

@againull againull commented Nov 18, 2025

This was implemented in #12906 and deprecated in #16700. See the latter for reasoning.

@againull againull marked this pull request as ready for review November 19, 2025 22:34
@againull againull requested a review from a team as a code owner November 19, 2025 22:34
@againull againull changed the title [SYCL] Remove deprecated get_backend_info ABI entry points [SYCL] Remove deprecated get_backend_info entry points Nov 19, 2025
@againull
Copy link
Contributor Author

@KseniyaTikhomirova Could you please take a look.

template <typename Param>
typename detail::is_backend_info_desc<Param>::return_type
get_backend_info() const;
get_backend_info() const;
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a bit surprising that this remains. Maybe link original PR in the description to explain what is happening.

Copy link
Contributor Author

@againull againull Nov 21, 2025

Choose a reason for hiding this comment

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

This was implemented in #12906 and deprecated in #16700.
As far as I understand get_backend_info is documented in the spec: https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_information_query_interface but corresponding descriptors are supposed to be specified in backend-specific extensions. At the same time we don't have any such backend-specific descriptor right now and sycl-cts doesn't seem to test this. So I am not sure if we should leave these methods in place or remove them.
@HPS-1 @AlexeySachkov can you provide your input please?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's a bit surprising that this remains. Maybe link original PR in the description to explain what is happening.

there is no harm to have this entry point while
template <typename T> struct is_backend_info_desc : std::false_type {};
is still present.

https://github.com/intel/llvm/pull/20676/files#diff-fc49f47ad53d5714302312c21e513c99f8ea464799f05837779fdae9bc3534a1R42

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM but I will leave approval to Andrey to ensure that his concerns are resolved.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that our plan was to just leave them in place as a foundation for when we actually get those extensions.

Having them would also result in a better error message for user, i.e. "something is not a valid info that can be queried through get_backend_info vs this method does not exist" - the latter may be perceived as a bug by an end user

@againull
Copy link
Contributor Author

windows timeout issue is unrelated as it was visible in pre-commit testing for other merged prs.

@againull againull merged commit 81c5f4c into intel:sycl Nov 21, 2025
32 of 34 checks passed
luszczewskakasia1 pushed a commit to luszczewskakasia1/llvm that referenced this pull request Nov 28, 2025
This was implemented in intel#12906 and
deprecated in intel#16700. See the latter
for reasoning.
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.

4 participants