Skip to content

Added launch_config objects to pass kernel properties #2885

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

Open
wants to merge 1 commit into
base: SYCLomatic
Choose a base branch
from

Conversation

TejaX-Alaghari
Copy link
Contributor

This PR uses launch_config objects to pass compile-time kernel properties during kernel launch (sycl_ext_oneapi_enqueue_functions).

This behavior replaces the existing deprecated behavior of passing the properties as an argument directly during kernel submission (queue.hpp).

@TejaX-Alaghari TejaX-Alaghari requested a review from a team as a code owner June 10, 2025 13:47
@TejaX-Alaghari TejaX-Alaghari force-pushed the kernel_props branch 2 times, most recently from e651be2 to 51b410c Compare June 11, 2025 07:54
// CHECK-NEXT: dpct::get_out_of_order_queue().parallel_for(
// CHECK-NEXT: sycl::nd_range<3>(sycl::range<3>(1, 1, 2) * sycl::range<3>(1, 1, 2), sycl::range<3>(1, 1, 2)),
// CHECK-NEXT: exp_props, [=](sycl::nd_item<3> item_ct1) {
// CHECK-NEXT: sycl::ext::oneapi::experimental::nd_launch(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why use nd_launch here instead of parallel_for(launch_config...)?
By the way, if we use nd_launch, we should not use KernelPrinter; use CallExprPrinter instead.

Copy link
Contributor Author

@TejaX-Alaghari TejaX-Alaghari Jul 8, 2025

Choose a reason for hiding this comment

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

parallel_for(launch_config...) is used when the work-item range is specified using sycl::range object

When sycl::nd_range object is used nd_range(launch_config...) to be used (ref)

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.

2 participants