Skip to content

Conversation

@vdualb
Copy link
Contributor

@vdualb vdualb commented Aug 16, 2025

Selection of non contentious changes from #960. Also see #1426

  • OpenCL 1.0 requires
    • cl_char, cl_int, ... data types
    • CL_M_* constants
  • cl_loader_layers extension requires cl_icd_dispatch

Unlike #960, it doesn't include cl_half type and CL_HALF_* constants. I also moved cl_icd_dispatch into the group with other types.

Selection of non contentious changes from KhronosGroup#960. Also see KhronosGroup#1426
<type name="CL/cl_icd.h"/>
</require>
<require>
<type name="cl_icd_dispatch"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was initially surprised to see this, but since cl_icd_dispatch is used by the clInitLayer function I think it makes sense to add it.

FWIW, the cl_layer.h includes cl_icd.h, which contains the definition of the cl_icd_dispatch structure, but listing cl_icd_dispatch here won't hurt anything. The header generation scripts will generate a forward declaration of the structure, but this is still valid after the structure definition.

CC @Kerilk for awareness.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this one, sorry about that. Would require removing the typedef from icd.h.

Copy link
Contributor

@kpet kpet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to get forward progress on this.

@bashbaug
Copy link
Contributor

Merging as discussed in the August 19th teleconference.

@bashbaug bashbaug merged commit 474eb55 into KhronosGroup:main Aug 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants