Skip to content

Commit bb1e69f

Browse files
committed
Add precondition to registered_kernel_names
1 parent 002d47b commit bb1e69f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler.asciidoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,12 @@ See the section below "Obtaining a kernel when the language is ``sycl``" for a
504504
description of how this property is used with the `source_language::sycl`
505505
language.
506506

507+
_Preconditions:_ Each source language defines its own requirements for the
508+
strings in the `name` and `names` parameters.
509+
For the language `source_language::sycl`, each string must be a {cpp}
510+
expression for a pointer to a kernel function as defined below under "Obtaining
511+
a kernel when the language is ``sycl``".
512+
507513
_Effects (1):_ Constructs a `registered_kernel_names` property with a single
508514
kernel name.
509515

0 commit comments

Comments
 (0)