Skip to content

Conversation

@Pennycook
Copy link
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 <[email protected]>
@Pennycook Pennycook added the spec extension All issues/PRs related to extensions specifications label Oct 7, 2024
Signed-off-by: John Pennycook <[email protected]>
Functionality guarded by __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS,
following the process introduced by intel#16883.

Signed-off-by: John Pennycook <[email protected]>
sub_group g = item.get_sub_group();

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