From 15d6a7e7a6cd13fcd73534d90f13d20157d822bb Mon Sep 17 00:00:00 2001 From: Greg Lueck Date: Wed, 22 Nov 2023 11:55:33 -0500 Subject: [PATCH] [SYCL][Doc]Remove APIs to get kernel by type-name In #11861 we decided to remove the ability to get the `kernel` object for a free-function kernel using a type-name. Therefore, we don't need this ability in online-compiled kernels either. Remove the associated wording from the kernel compiler specs. --- .../sycl_ext_oneapi_kernel_compiler.asciidoc | 18 ------------------ ..._ext_oneapi_kernel_compiler_opencl.asciidoc | 4 ---- 2 files changed, 22 deletions(-) diff --git a/sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler.asciidoc b/sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler.asciidoc index 09a6fe5645fcc..255549b1dc469 100644 --- a/sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler.asciidoc +++ b/sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler.asciidoc @@ -397,24 +397,6 @@ Therefore, the function `kernel_bundle::get_kernel_ids` returns an empty vector of `kernel_id` objects if the kernel bundle was created from a bundle of state `bundle_state::ext_oneapi_source`. -Depending on the source language, the following kernel bundle functions may be -used to query for a kernel when the kernel bundle was created from a bundle of -state `bundle_state::ext_oneapi_source`. - -``` -template -bool has_kernel() const noexcept; - -template -bool has_kernel(const device& dev) const noexcept; - -template -kernel get_kernel() const; -``` - -The specification for each source language tells how these functions behave and -how the `KernelName` is interpreted. - === New kernel bundle member functions This extensions adds the following new `kernel_bundle` member functions: diff --git a/sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler_opencl.asciidoc b/sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler_opencl.asciidoc index 5322338e3aac1..7237b9a7ad517 100644 --- a/sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler_opencl.asciidoc +++ b/sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler_opencl.asciidoc @@ -137,10 +137,6 @@ sycl::kernel_bundle kb = /*...*/; sycl::kernel k = kb.ext_oneapi_get_kernel("foo"); ``` -There is no mechanism to decorate an OpenCL C kernel with a type-name, so the -forms of `kernel_bundle::has_kernel` or `kernel_bundle::get_kernel` that take a -type-name are not useful for kernels defined in OpenCL C. - === Kernel argument restrictions When a kernel is defined in OpenCL C and invoked from SYCL via a `kernel`