Skip to content

Commit

Permalink
Add a few missing uses of types and enums to XML
Browse files Browse the repository at this point in the history
- OpenCL 1.0 requires cl_char, etc types
- OpenCL 1.2 and cl_khr+_fp64 require cl_double
- cl_khr_fp16 requires CL_HALF_* constants
- cl_khr_icd requires cl_icd_dispatch
- OpenCL 1.0 requires all the CL_M_* constants. The specification does
  not state which version defines which constant (see KhronosGroup#731)

Signed-off-by: Kevin Petit <[email protected]>
Change-Id: I8eb34ab1eccf727700662ff5f61823d0e8c48ea1
  • Loading branch information
kpet committed Jul 11, 2024
1 parent bed6c84 commit 63371d5
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions xml/cl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4383,6 +4383,19 @@ server's OpenCL/api-docs repository.
<type name="cl_image_format"/>
<type name="cl_buffer_region"/>
</require>
<require comment="API data types">
<type name="cl_char"/>
<type name="cl_uchar"/>
<type name="cl_short"/>
<type name="cl_ushort"/>
<type name="cl_int"/>
<type name="cl_uint"/>
<type name="cl_long"/>
<type name="cl_ulong"/>
<type name="cl_float"/>
<type name="cl_half"/>
<type name="cl_double"/>
</require>
<require comment="Constants">
<enum name="CL_CHAR_BIT"/>
<enum name="CL_CHAR_MAX"/>
Expand Down Expand Up @@ -4424,6 +4437,32 @@ server's OpenCL/api-docs repository.
<enum name="CL_HUGE_VAL"/>
<enum name="CL_MAXFLOAT"/>
<enum name="CL_INFINITY"/>
<enum name="CL_M_E"/>
<enum name="CL_M_LOG2E"/>
<enum name="CL_M_LOG10E"/>
<enum name="CL_M_LN2"/>
<enum name="CL_M_LN10"/>
<enum name="CL_M_PI"/>
<enum name="CL_M_PI_2"/>
<enum name="CL_M_PI_4"/>
<enum name="CL_M_1_PI"/>
<enum name="CL_M_2_PI"/>
<enum name="CL_M_2_SQRTPI"/>
<enum name="CL_M_SQRT2"/>
<enum name="CL_M_SQRT1_2"/>
<enum name="CL_M_E_F"/>
<enum name="CL_M_LOG2E_F"/>
<enum name="CL_M_LOG10E_F"/>
<enum name="CL_M_LN2_F"/>
<enum name="CL_M_LN10_F"/>
<enum name="CL_M_PI_F"/>
<enum name="CL_M_PI_2_F"/>
<enum name="CL_M_PI_4_F"/>
<enum name="CL_M_1_PI_F"/>
<enum name="CL_M_2_PI_F"/>
<enum name="CL_M_2_SQRTPI_F"/>
<enum name="CL_M_SQRT2_F"/>
<enum name="CL_M_SQRT1_2_F"/>
</require>
<require comment="Error codes">
<enum name="CL_SUCCESS"/>
Expand Down Expand Up @@ -5123,6 +5162,7 @@ server's OpenCL/api-docs repository.
<require>
<type name="cl_device_svm_capabilities"/>
<type name="cl_queue_properties"/>
<type name="cl_properties"/>
<type name="cl_svm_mem_flags"/>
<type name="cl_pipe_properties"/>
<type name="cl_pipe_info"/>
Expand Down Expand Up @@ -5589,6 +5629,18 @@ server's OpenCL/api-docs repository.
<require comment="cl_device_info">
<enum name="CL_DEVICE_HALF_FP_CONFIG"/>
</require>
<require comment="Constants">
<enum name="CL_HALF_DIG"/>
<enum name="CL_HALF_MANT_DIG"/>
<enum name="CL_HALF_MAX_10_EXP"/>
<enum name="CL_HALF_MAX_EXP"/>
<enum name="CL_HALF_MIN_10_EXP"/>
<enum name="CL_HALF_MIN_EXP"/>
<enum name="CL_HALF_RADIX"/>
<enum name="CL_HALF_MAX"/>
<enum name="CL_HALF_MIN"/>
<enum name="CL_HALF_EPSILON"/>
</require>
</extension>
<extension name="cl_APPLE_SetMemObjectDestructor" revision="0.0.0" comment="not registered" supported="opencl">
<require>
Expand Down Expand Up @@ -5625,6 +5677,7 @@ server's OpenCL/api-docs repository.
<extension name="cl_loader_layers" revision="1.0.0" supported="opencl">
<require>
<type name="CL/cl_icd.h"/>
<type name="cl_icd_dispatch"/>
</require>
<require>
<type name="cl_layer_info"/>
Expand Down

0 comments on commit 63371d5

Please sign in to comment.