Skip to content

[SYCL] Implement latest version of sycl_ext_oneapi_free_function_queries #13257

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

Merged
merged 5 commits into from
Apr 4, 2024

Conversation

aelovikov-intel
Copy link
Contributor

  • Implement latest revision of the proposed extension
  • Deprecate sycl::ext::oneapi::experimental:: interfaces
  • Remove old deprecated interfaces from sycl:: namespace

- Implement latest revision of the proposed extension
- Deprecate `sycl::ext::oneapi::experimental::` interfaces
- Remove old deprecated interfaces from `sycl::` namespace
Comment on lines 93 to 98
namespace this_kernel {
template <int Dimensions> root_group<Dimensions> get_root_group() {
return this_nd_item<Dimensions>().ext_oneapi_get_root_group();
return sycl::ext::oneapi::this_work_item::this_nd_item<Dimensions>()
.ext_oneapi_get_root_group();
}
} // namespace this_kernel
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a note: We should update the root_group extension, too. This function should be defined as this_work_item::get_root_group() to match the others.

@aelovikov-intel aelovikov-intel added the abi-break change that's breaking abi and waiting for the next window to be able to merge label Apr 3, 2024
@aelovikov-intel
Copy link
Contributor Author

ping @KseniyaTikhomirova , @intel/llvm-reviewers-runtime

Copy link
Contributor

@KseniyaTikhomirova KseniyaTikhomirova left a comment

Choose a reason for hiding this comment

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

LGTM

results_acc[0] = that_nd_item == nd_i;
auto nd_item_group = that_nd_item.get_group();
results_acc[1] =
nd_item_group == sycl::ext::oneapi::experimental::this_group<1>();
nd_item_group ==
sycl::ext::oneapi::this_work_item::get_work_group<1>();
auto nd_item_id = that_nd_item.get_global_id();
results_acc[2] =
nd_item_id == sycl::ext::oneapi::experimental::this_id<1>();
Copy link
Contributor

@KseniyaTikhomirova KseniyaTikhomirova Apr 4, 2024

Choose a reason for hiding this comment

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

"this_id" usage - should it be updated too?

Copy link
Contributor Author

@aelovikov-intel aelovikov-intel Apr 4, 2024

Choose a reason for hiding this comment

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

No, these are deprecated interfaces and don't have corresponding overloads in the new spec.

Copy link
Contributor

Choose a reason for hiding this comment

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

should it be removed then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The extension specification marks them as deprecated without providing an alternative. That is part of the change in this PR. We will only be able to remove 2025.1 or later.

@aelovikov-intel aelovikov-intel merged commit c5b174d into intel:sycl Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abi-break change that's breaking abi and waiting for the next window to be able to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants