Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated id -> range conversion #886

Merged

Conversation

KornevNikita
Copy link
Contributor

As I understand - this API was never part of the specification.
Found out this test fails to compile after intel/llvm@f98e99c.

@KornevNikita KornevNikita requested a review from a team as a code owner April 9, 2024 11:29
@keryell keryell added the Agenda To be discussed during a SYCL committee meeting label Apr 19, 2024
@@ -92,9 +92,12 @@ template <int dim> void check_dim(util::logger &log) {
local_range_total>(local_range, local_range);
cgh.parallel_for_work_group<kernel<dim>>(
groupRange, localRange, [=](sycl::group<dim> group_pid) {
sycl::range<dim> r;
auto group_id = group_pid.get_group_id();
for (int i = 0; i < dim; ++i) r[i] = group_id[i];
Copy link
Member

Choose a reason for hiding this comment

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

On the other hand having to write this ugly code means we missed our goals somewhere.
Perhaps for SYCL Next exposing a range interface for id and an explicit constructor from a range to a range would make it better?

@KornevNikita
Copy link
Contributor Author

@bader can we merge this one?

@steffenlarsen
Copy link
Contributor

@keryell - Does the Agenda label mean you would like to wait for this to get merged?

@keryell
Copy link
Member

keryell commented Apr 23, 2024

Does the Agenda label mean you would like to wait for this to get merged?

Ah no, sorry for being unclear. This is something useful to add and we should discuss in a meeting soon.

@KornevNikita
Copy link
Contributor Author

Does the Agenda label mean you would like to wait for this to get merged?

Ah no, sorry for being unclear. This is something useful to add and we should discuss in a meeting soon.

We're still a little confused. We may merge this PR right now, right?

@keryell
Copy link
Member

keryell commented Apr 23, 2024

Yes you can merge this.

@steffenlarsen steffenlarsen merged commit 15bae18 into KhronosGroup:SYCL-2020 Apr 24, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agenda To be discussed during a SYCL committee meeting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants