Skip to content

Commit

Permalink
Link cl_khronos_vendor_id enums to OpenCL 3.0 in cl.xml (#737)
Browse files Browse the repository at this point in the history
* Link `cl_khronos_vendor_id` to OpenCL 3.0 in cl.xml

See script to check for orphans in #730

* Attach assigned vendor IDs to OpenCL 1.0

This is so that they can clearly be used for any OpenCL version.

* Move the cl_khronos_vendor_id type back to OpenCL 3.0

This was the version that introduced the type.
  • Loading branch information
alycm authored Apr 29, 2022
1 parent eeae87e commit 018cb7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xml/cl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4466,6 +4466,14 @@ server's OpenCL/api-docs repository.
<enum name="CL_SUBMITTED"/>
<enum name="CL_QUEUED"/>
</require>
<require comment="cl_khronos_vendor_id">
<!-- The cl_khronos_vendor_id type was added in OpenCL 3.0, but the
concept of assigned vendor IDs has existed since OpenCL 1.0.
These enums can be used in any OpenCL version because the type
used in the API is cl_uint. -->
<enum name="CL_KHRONOS_VENDOR_ID_CODEPLAY"/>
<enum name="CL_KHRONOS_VENDOR_ID_POCL"/>
</require>
<require comment="Platform APIs">
<command name="clGetPlatformIDs"/>
<command name="clGetPlatformInfo"/>
Expand Down

0 comments on commit 018cb7b

Please sign in to comment.