Skip to content

[SYCL] Add prototype of sycl_khr_group_interface#15617

Closed
Pennycook wants to merge 4 commits intointel:syclfrom
Pennycook:sycl_khr_group_interface
Closed

[SYCL] Add prototype of sycl_khr_group_interface#15617
Pennycook wants to merge 4 commits intointel:syclfrom
Pennycook:sycl_khr_group_interface

Conversation

@Pennycook
Copy link
Copy Markdown
Contributor

Adds khr::work_group, khr::sub_group and khr::work_item classes, khr::get_item() and khr::leader_of() free-functions, and basic tests.


This is being developed in conjunction with the extension specification (KhronosGroup/SYCL-Docs#638).

Adds khr::work_group, khr::sub_group and khr::work_item classes,
khr::get_item() and khr::leader_of() free-functions, and basic tests.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
@Pennycook Pennycook added the spec extension All issues/PRs related to extensions specifications label Oct 7, 2024
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Functionality guarded by __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS,
following the process introduced by intel#16883.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
sub_group g = item.get_sub_group();

khr::sub_group sg = g;
assert(sg.id() == g.get_group_id());
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.

I'm not very confident in using device asserts for our tests... Does anybody know for sure it's stable enough?

@Pennycook
Copy link
Copy Markdown
Contributor Author

This was re-implemented in #17595, so this can be closed.

@Pennycook Pennycook closed this Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

spec extension All issues/PRs related to extensions specifications

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants