Skip to content

Commit 83632e3

Browse files
committed
Proposal: Limited to device globals to global scope
Signed-off-by: Julian Oppermann <[email protected]>
1 parent 6d00902 commit 83632e3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler.asciidoc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,15 @@ the host application interact with device globals defined in runtime-compiled
811811
code. Device globals are only supported for the `source_language::sycl`
812812
language.
813813

814-
Device globals declared with the `device_image_scope` property can be used in
815-
the runtime-compiled device code, but cannot be accessed from the host. We plan
816-
to lift this limitation in a future version of the extension.
814+
This extension currently supports only a subset of the
815+
link:../experimental/sycl_ext_oneapi_device_global.asciidoc[
816+
sycl_ext_oneapi_device_global] extension:
817+
818+
* Device globals must be declared at global scope.
819+
* Device globals declared with the `device_image_scope` property can be used in
820+
the runtime-compiled device code, but cannot be accessed from the host.
821+
822+
We plan to lift both limitations in a future version of this extension.
817823

818824
[source,c++]
819825
----
@@ -853,9 +859,6 @@ _Returns:_ The value `true` only if
853859
* it defines a device global whose name is `name` and which was declared without
854860
the `device_image_scope` property.
855861

856-
`name` must be a {cpp} identifier that is valid for referencing the device
857-
global at the bottom of the source code.
858-
859862
a|
860863
[frame=all,grid=none]
861864
!====

0 commit comments

Comments
 (0)