Skip to content

Commit

Permalink
cl_loader_layers update (#851)
Browse files Browse the repository at this point in the history
* Added Contributors.

* Added `CL_LAYER_NAME` info query for layers.

* Added `CL_LAYER_OPTIONS` info query for layers.

* Update ext/cl_loader_layers.asciidoc

Co-authored-by: Sun Serega <[email protected]>

* Update ext/cl_loader_layers.asciidoc

* Remove options for now as suggested by the working group.

---------

Co-authored-by: Sun Serega <[email protected]>
  • Loading branch information
Kerilk and SunSerega authored Feb 1, 2023
1 parent d116f12 commit 8489478
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ext/cl_loader_layers.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ interception layers (Layer ICDs) for OpenCL.
| 2020-11-04 | 1.0.0 | First assigned version.
|====

==== Contributors

Brice Videau, Argonne National Laboratory

[[cl_loader_layers-new-procedures-and-functions]]
=== New Procedures and Functions

Expand Down Expand Up @@ -60,6 +64,7 @@ Accepted as _param_name_ to the function *clGetLayerInfo*:
[source,opencl]
----
#define CL_LAYER_API_VERSION 0x4240
#define CL_LAYER_NAME 0x4241
----


Expand Down Expand Up @@ -125,6 +130,7 @@ in the <<layer-queries-table, Layer Queries>> table.
|====
| Layer Info | Return Type | Description
| *CL_LAYER_API_VERSION* | cl_layer_api_version | OpenCL Layer API version
| *CL_LAYER_NAME* | char[] | OpenCL Layer Name
|====

*clGetLayerInfo* returns *CL_SUCCESS* if the function is executed
Expand Down
4 changes: 3 additions & 1 deletion xml/cl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2208,7 +2208,8 @@ server's OpenCL/api-docs repository.

<enums start="0x4240" end="0x424F" name="enums.4240" comment="Reserved for ICD Loader Layers">
<enum value="0x4240" name="CL_LAYER_API_VERSION"/>
<unused start="0x4241" end="0x424F"/>
<enum value="0x4241" name="CL_LAYER_NAME"/>
<unused start="0x4242" end="0x424F"/>
</enums>

<enums start="0x4250" end="0x425F" name="enums.4250" vendor="Intel">
Expand Down Expand Up @@ -5490,6 +5491,7 @@ server's OpenCL/api-docs repository.
</require>
<require comment="cl_layer_info">
<enum name="CL_LAYER_API_VERSION"/>
<enum name="CL_LAYER_NAME"/>
</require>
<require comment="Misc API enums">
<enum name="CL_LAYER_API_VERSION_100"/>
Expand Down

0 comments on commit 8489478

Please sign in to comment.