Skip to content

[SYCL] Prepare some deprecated aliases for removal#22371

Draft
KornevNikita wants to merge 3 commits into
intel:syclfrom
KornevNikita:prepare-old-aliases
Draft

[SYCL] Prepare some deprecated aliases for removal#22371
KornevNikita wants to merge 3 commits into
intel:syclfrom
KornevNikita:prepare-old-aliases

Conversation

@KornevNikita

@KornevNikita KornevNikita commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

This patch prepares deprecated aliases to be removed in the next ABI-breaking window (they're not a part of SYCL 2020):

  • cl_bool, cl_char etc. (replaced by sycl::opencl::cl_bool, sycl::opencl::cl_char etc.)
  • schar, uchar etc (no new alternative)
  • schar2, schar3 ... schar16, longlong2, longlong3 ... longlong16 etc. (no new alternative)
  • cl_char2, cl_char3 ... cl_char16, cl_int2, cl_int3 ... cl_int16 etc. (no new alternative)

These aliases have been removed in SYCL 2020. Prepare them to be removed
in the next ABI-breaking window.
#define __SYCL_MAKE_VECTOR_ALIAS(ALIAS, TYPE, N) \
using ALIAS##N = sycl::vec<TYPE, N>;

#ifndef __INTEL_PREVIEW_BREAKING_CHANGES

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@gmlueck hi, could you please review the changes in this file?

I'd like to remove deprecated aliases that are not part of SYCL 2020:
I have no doubts regarding sycl::cl_* as these aliases have been replaced by sycl::opencl::cl_*.
But the rest (see PR desc) has been removed without any replacement. Although this change aligns our implementation with the spec, I'm not sure if it's desired.

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.

1 participant