Skip to content

[SYCL] Add noexcept and hidden friends to nd_item - #22902

Open
crystarm wants to merge 2 commits into
intel:syclfrom
crystarm:fix/nd-item-interface
Open

[SYCL] Add noexcept and hidden friends to nd_item#22902
crystarm wants to merge 2 commits into
intel:syclfrom
crystarm:fix/nd-item-interface

Conversation

@crystarm

@crystarm crystarm commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Fixes #22879.

This PR aligns sycl::nd_item with the SYCL 2020 specification:

  • Adds noexcept to the standard member functions.
  • Implements operator== and operator!= as hidden friends.
  • Adds compile-time interface tests covering exception specifications and comparison operators.

@crystarm
crystarm requested a review from a team as a code owner August 8, 2026 10:32
@crystarm
crystarm requested a review from dm-vodopyanov August 8, 2026 10:32
Comment thread sycl/include/sycl/nd_item.hpp Outdated
Comment thread sycl/include/sycl/nd_item.hpp
@crystarm
crystarm force-pushed the fix/nd-item-interface branch from 3105802 to 03c10c4 Compare August 10, 2026 13:41

@KornevNikita KornevNikita left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@KornevNikita

Copy link
Copy Markdown
Contributor

@dm-vodopyanov could you take a look please

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.

Align nd_item with SYCL 2020

2 participants