You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* spec source for cl_khr_kernel_clock
* updated after March 26th teleconference
Clarified that this is a provisional extension
Removed ext from feature names and feature test macros
Added undefined behavior description to the SPIR-V environment spec
* fix a few more places where the extension should be marked provisional
* clarify in a few more places that this extension is provisional
* remove provisional_notice.asciidoc, since it should not be used anymore
Copy file name to clipboardExpand all lines: env/extensions.asciidoc
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -379,6 +379,22 @@ Otherwise, for the *GroupUniformArithmeticKHR* scan and reduction instructions,
379
379
** *OpTypeInt* with _Width_ equal to `32` or `64` (equivalent to `int`, `uint`, `long`, and `ulong`)
380
380
** *OpTypeFloat* (equivalent to `half`, `float`, and `double`)
381
381
382
+
==== `cl_khr_kernel_clock`
383
+
384
+
If the OpenCL environment supports the extension `cl_khr_kernel_clock`, then the environment must accept modules that declare use of the extension `SPV_KHR_shader_clock` via *OpExtension*.
385
+
386
+
If the OpenCL environment supports the extension `cl_khr_kernel_clock` and use of the SPIR-V extension `SPV_KHR_shader_clock` is declared in the module via *OpExtension*, then the environment must accept modules that declare the following SPIR-V capability:
387
+
388
+
* *ShaderClockKHR*
389
+
390
+
For the *OpReadClockKHR* instruction requiring this capability, supported values for _Scope_ are:
391
+
392
+
* *Device*, if `CL_DEVICE_KERNEL_CLOCK_SCOPE_DEVICE_KHR` is supported
393
+
* *Workgroup*, if `CL_DEVICE_KERNEL_CLOCK_SCOPE_WORK_GROUP_KHR` is supported
394
+
* *Subgroup*, if `CL_DEVICE_KERNEL_CLOCK_SCOPE_SUB_GROUP_KHR` is supported
395
+
396
+
For unsupported _Scope_ values, the behavior of *OpReadClockKHR* is undefined.
0 commit comments