Skip to content

[SYCL] Fix bug in enqueue free functions implementation#21461

Merged
sarnex merged 31 commits intointel:syclfrom
lbushi25:enqueue_free_functions
Mar 9, 2026
Merged

[SYCL] Fix bug in enqueue free functions implementation#21461
sarnex merged 31 commits intointel:syclfrom
lbushi25:enqueue_free_functions

Conversation

@lbushi25
Copy link
Copy Markdown
Contributor

@lbushi25 lbushi25 commented Mar 6, 2026

There is a bug in some of the enqueue free functions that causes them to work only with 1-dimensional kernels. This PR fixes this bug and adds a couple of test cases to test it.

@lbushi25 lbushi25 changed the title [SYCL] Enqueue free functions [SYCL] Fix bug in enqueue free functions implementation Mar 6, 2026
@lbushi25 lbushi25 marked this pull request as ready for review March 6, 2026 20:17
@lbushi25 lbushi25 requested a review from a team as a code owner March 6, 2026 20:17
@lbushi25 lbushi25 requested a review from slawekptak March 6, 2026 20:17
[[maybe_unused]] kernel_function_s<Func> KernelFunc,
ArgsT &&...Args) {
detail::submit_kernel_direct_parallel_for(
std::move(Q), Range, [Args...](sycl::nd_item<>) { Func(Args...); });
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The bug is in this line. I had forgotten to pass the Dimensions template parameter to sycl::nd_item<> and so it always defaults to sycl::nd_item<1> which makes it impossible to work with 2 or 3 dimensional kernels.

@lbushi25
Copy link
Copy Markdown
Contributor Author

lbushi25 commented Mar 9, 2026

@intel/llvm-gatekeepers Can we get this merged please?

The failures are

Graph/RecordReplay/host_task_in_order_dependency.cpp 
Adapters/level_zero/interop-thread.cpp

both of which are unrelated to the changes of this PR which only touches a single E2E test in a completely separate directory.

@sarnex sarnex merged commit 476014f into intel:sycl Mar 9, 2026
27 of 30 checks passed
KornevNikita pushed a commit that referenced this pull request Mar 25, 2026
There is a bug in some of the enqueue free functions that causes them to
work only with 1-dimensional kernels. This PR fixes this bug and adds a
couple of test cases to test it.
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.

3 participants