Skip to content

Commit 4c9c455

Browse files
authored
[SYCL][Doc]Remove APIs to get kernel by type-name (#11983)
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.
1 parent ecb6f15 commit 4c9c455

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler.asciidoc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -391,24 +391,6 @@ Therefore, the function `kernel_bundle::get_kernel_ids` returns an empty vector
391391
of `kernel_id` objects if the kernel bundle was created from a bundle of state
392392
`bundle_state::ext_oneapi_source`.
393393

394-
Depending on the source language, the following kernel bundle functions may be
395-
used to query for a kernel when the kernel bundle was created from a bundle of
396-
state `bundle_state::ext_oneapi_source`.
397-
398-
```
399-
template <typename KernelName>
400-
bool has_kernel() const noexcept;
401-
402-
template <typename KernelName>
403-
bool has_kernel(const device& dev) const noexcept;
404-
405-
template <typename KernelName>
406-
kernel get_kernel() const;
407-
```
408-
409-
The specification for each source language tells how these functions behave and
410-
how the `KernelName` is interpreted.
411-
412394
=== New kernel bundle member functions
413395

414396
This extensions adds the following new `kernel_bundle` member functions:

sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler_opencl.asciidoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ sycl::kernel_bundle<sycl::bundle_state::executable> kb = /*...*/;
137137
sycl::kernel k = kb.ext_oneapi_get_kernel("foo");
138138
```
139139

140-
There is no mechanism to decorate an OpenCL C kernel with a type-name, so the
141-
forms of `kernel_bundle::has_kernel` or `kernel_bundle::get_kernel` that take a
142-
type-name are not useful for kernels defined in OpenCL C.
143-
144140
=== Kernel argument restrictions
145141

146142
When a kernel is defined in OpenCL C and invoked from SYCL via a `kernel`

0 commit comments

Comments
 (0)