Skip to content

Commit af5e8c0

Browse files
committed
Tweak the table describing kernel arguments
Be a little less proscriptive when describing how to pass kernel arguments.
1 parent 68041ba commit af5e8c0

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

sycl/doc/extensions/proposed/sycl_ext_oneapi_kernel_compiler_spirv.asciidoc

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,21 @@ backend's SPIR-V client API specification.
177177
|Corresponding SYCL type
178178

179179
|*OpTypeInt*
180-
|A C++ integral type with the same width.
180+
|A C++ type that is device copyable, which has same width and data
181+
representation.
181182

182-
|*OpTypeFloat* of width 32
183-
|`float`
183+
[_Note:_ Applications typically use a fixed-width integer type where the width
184+
matches the width of the *OpTypeInt*.
185+
_{endnote}_]
186+
187+
|*OpTypeFloat*
188+
|A C++ type that is device copyable, which has same width and data
189+
representation.
184190

185-
|*OpTypeFloat* of width 64
186-
|`double`
191+
[_Note:_ Applications typically use `float` when the *OpTypeFloat* has a width
192+
of 4, `double` when the *OpTypeFloat* has a width of 8, and `sycl::half` when
193+
the *OpTypeFloat* has a width of 2.
194+
_{endnote}_]
187195

188196
|*OpTypePointer* with storage class *CrossWorkgroup*
189197
|Either a pointer to USM memory or an `accessor` whose target is
@@ -192,9 +200,8 @@ backend's SPIR-V client API specification.
192200
|*OpTypePointer* with storage class *Workgroup*
193201
|A `local_accessor`.
194202

195-
|*OpTypeStruct* whose member types are limited to *OpTypeInt*, *OpTypeFloat*
196-
(of width 32 or 64), and *OpTypePointer* (with storage class
197-
*CrossWorkgroup*).
203+
|*OpTypeStruct* whose member types are limited to *OpTypeInt*, *OpTypeFloat*,
204+
and *OpTypePointer* (with storage class *CrossWorkgroup*).
198205
The *OpTypeStruct* may contain members which are also *OpTypeStruct* so long
199206
as its members are limited to the same types.
200207
|A C++ struct or class that is device copyable.

0 commit comments

Comments
 (0)