Skip to content

Commit ceed9d2

Browse files
authored
Couple device enqueue and program scope global variables features. (#738)
1 parent ecf6ddd commit ceed9d2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

OpenCL_C.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ share SVM memory with each other and the host process.
161161
| The OpenCL C compiler supports built-in functions to enqueue additional work
162162
from the device.
163163

164-
OpenCL C compilers that define the feature macro {opencl_c_device_enqueue}
165-
must also define the feature macro {opencl_c_generic_address_space}.
164+
OpenCL C compilers that define the feature macro {opencl_c_device_enqueue} must also
165+
define {opencl_c_generic_address_space} and {opencl_c_program_scope_global_variables}
166+
feature macros.
166167

167168
| {opencl_c_generic_address_space}
168169
| The OpenCL C compiler supports the unnamed generic address space.

api/appendix_h.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ When device-side enqueue is supported but a replaceable default on-device queue
188188

189189
OpenCL C compilers supporting device-side enqueue and on-device queues will define the feature macro `+__opencl_c_device_enqueue+`.
190190
OpenCL C compilers that define the feature macro `+__opencl_c_device_enqueue+` must also define the feature macro `+__opencl_c_generic_address_space+` because some OpenCL C functions for device-side Enqueue accept pointers to the generic address space.
191+
OpenCL C compilers that define the feature macro `+__opencl_c_device_enqueue+` must also define the feature macro `+__opencl_c_program_scope_global_variables+` because an implementation of blocks may interact with program scope variables in global address space as part of ABI.
191192

192193
== Pipes
193194

0 commit comments

Comments
 (0)