Skip to content

Commit 82de663

Browse files
committed
Fix a few references to old behavior
While working on the kernel_function definition, I noticed that some text referred to "previous sections" that no longer exist. I tweaked the wording here to reflect that properties must always be attached to the kernel type. Signed-off-by: John Pennycook <[email protected]>
1 parent f6581d6 commit 82de663

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_properties.asciidoc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,15 @@ by the property, the implementation must throw a synchronous exception with the
289289

290290
=== Embedding Properties into a Kernel
291291

292-
In other situations it may be useful to embed a kernel's properties directly
293-
into its type, to ensure that a kernel cannot be launched without a property
294-
that it depends upon for correctness.
292+
A kernel's properties are embedded directly into its type, to ensure that a
293+
kernel cannot be launched without a property that it depends upon for
294+
correctness.
295295

296-
To enable this use-case, this extension adds a mechanism for implementations to
297-
extract a property list from a kernel functor, if a kernel functor declares
298-
a member function named `get` accepting a `sycl::ext::oneapi::experimental::properties_tag`
299-
tag type and returning an instance of `sycl::ext::oneapi::experimental::properties`.
296+
To enable this, this extension adds a mechanism for implementations to extract
297+
a property list from a kernel functor, if a kernel functor declares a member
298+
function named `get` accepting a
299+
`sycl::ext::oneapi::experimental::properties_tag` tag type and returning an
300+
instance of `sycl::ext::oneapi::experimental::properties`.
300301

301302
```c++
302303
namespace sycl {
@@ -323,8 +324,8 @@ attributes to be applied to different call operators within the same
323324
functor. An embedded property list applies to all call operators in
324325
the functor.
325326

326-
The example below shows how the kernel from the previous section could be
327-
rewritten to leverage an embedded property list:
327+
The example below shows how a simple vector addition kernel could be
328+
written to leverage an embedded property list:
328329

329330
```c++
330331
struct KernelFunctor {

0 commit comments

Comments
 (0)