From 31d67f3be5d6bd1625e289fee8048ecb06b05f62 Mon Sep 17 00:00:00 2001 From: Greg Lueck Date: Fri, 5 Sep 2025 15:00:09 -0400 Subject: [PATCH] [SYCL][Doc] Remove incorrect "KernelName" in spec The overloads of `parallel_for` and `nd_launch` that take a `sycl::kernel` object should not allow the application to specify a name for the kernel. The kernel which is invoked by these overloads is determined at runtime (by the value of the `sycl::kernel` object), so it's not possible to assign a static name. The implementation was already correct, so this is just fixing a documentation bug. --- ...sycl_ext_oneapi_enqueue_functions.asciidoc | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/sycl/doc/extensions/experimental/sycl_ext_oneapi_enqueue_functions.asciidoc b/sycl/doc/extensions/experimental/sycl_ext_oneapi_enqueue_functions.asciidoc index 933a6aabd2bd4..b5ffbb1a63472 100644 --- a/sycl/doc/extensions/experimental/sycl_ext_oneapi_enqueue_functions.asciidoc +++ b/sycl/doc/extensions/experimental/sycl_ext_oneapi_enqueue_functions.asciidoc @@ -386,11 +386,11 @@ a! ---- namespace sycl::ext::oneapi::experimental { -template +template void parallel_for(sycl::queue q, sycl::range r, const sycl::kernel& k, Args&&... args); -template +template void parallel_for(sycl::handler &h, sycl::range r, const sycl::kernel& k, Args&&... args); @@ -409,14 +409,12 @@ a! ---- namespace sycl::ext::oneapi::experimental { -template +template void parallel_for(sycl::queue q, launch_config, Properties> c, const sycl::kernel& k, Args&& args...); -template +template void parallel_for(sycl::handler &h, launch_config, Properties> c, const sycl::kernel& k, Args&& args...); @@ -503,11 +501,11 @@ a! ---- namespace sycl::ext::oneapi::experimental { -template +template void nd_launch(sycl::queue q, sycl::nd_range r, const sycl::kernel& k, Args&&... args); -template +template void nd_launch(sycl::handler &h, sycl::nd_range r, const sycl::kernel& k, Args&&... args); @@ -527,14 +525,12 @@ a! ---- namespace sycl::ext::oneapi::experimental { -template +template void nd_launch(sycl::queue q, launch_config, Properties> c, const sycl::kernel& k, Args&& args...); -template +template void nd_launch(sycl::handler &h, launch_config, Properties> c, const sycl::kernel& k, Args&& args...);