-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spec source for cl_khr_kernel_clock (#1103)
* 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
- Loading branch information
Showing
10 changed files
with
255 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Copyright 2024 The Khronos Group Inc. | ||
// SPDX-License-Identifier: CC-BY-4.0 | ||
|
||
include::{generated}/meta/{refprefix}cl_khr_kernel_clock.txt[] | ||
|
||
=== Other Extension Metadata | ||
|
||
*Last Modified Date*:: | ||
2024-03-25 | ||
*IP Status*:: | ||
No known IP claims. | ||
*Contributors*:: | ||
- Kevin Petit, Arm Ltd. + | ||
- Paul Fradgley, Imagination Technologies + | ||
- Jeremy Kemp, Imagination Technologies + | ||
- Ben Ashbaugh, Intel + | ||
- Balaji Calidas, Qualcomm Technologies, Inc. + | ||
- Ruihao Zhang, Qualcomm Technologies, Inc. | ||
|
||
=== Description | ||
|
||
`cl_khr_kernel_clock` adds the ability for a kernel to sample the value from one | ||
of three clocks provided by compute units. | ||
|
||
OpenCL C compilers supporting this extension will define the extension macro | ||
`cl_khr_kernel_clock`, and may define corresponding feature macros | ||
{opencl_c_kernel_clock_scope_device}, | ||
{opencl_c_kernel_clock_scope_work_group}, and | ||
{opencl_c_kernel_clock_scope_sub_group} depending on the reported | ||
capabilities. | ||
|
||
See the link:{OpenCLCSpecURL}#cl_khr_kernel_clock[Kernel Clock] section of the | ||
OpenCL C specification for more information. | ||
|
||
=== Interactions With Other Extensions | ||
|
||
On devices that implement the `EMBEDDED` profile, the `cles_khr_int64` extension | ||
is required for the `clock_read_device`, `clock_read_work_group` and | ||
`clock_read_sub_group` functions to be present. | ||
|
||
Support for sub-groups is required for the `clock_read_sub_group` and | ||
`clock_read_hilo_sub_group` functions to be present. | ||
|
||
// The 'New ...' section can be auto-generated | ||
|
||
=== New Types | ||
|
||
* {cl_device_kernel_clock_capabilities_khr_TYPE} | ||
|
||
=== New Enums | ||
|
||
* {cl_device_info_TYPE} | ||
** {CL_DEVICE_KERNEL_CLOCK_CAPABILITIES_KHR} | ||
* {cl_device_kernel_clock_capabilities_khr_TYPE} | ||
** {CL_DEVICE_KERNEL_CLOCK_SCOPE_DEVICE_KHR} | ||
** {CL_DEVICE_KERNEL_CLOCK_SCOPE_WORK_GROUP_KHR} | ||
** {CL_DEVICE_KERNEL_CLOCK_SCOPE_SUB_GROUP_KHR} | ||
|
||
=== Version History | ||
|
||
* Revision 0.9.0, 2024-03-25 | ||
** First assigned version (provisional). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters