-
Notifications
You must be signed in to change notification settings - Fork 126
Link cl_khronos_vendor_id enums to OpenCL 3.0 in cl.xml
#737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link cl_khronos_vendor_id enums to OpenCL 3.0 in cl.xml
#737
Conversation
See script to check for orphans in KhronosGroup#730
cl_khronos_vendor_id to OpenCL 3.0 in cl.xmlcl_khronos_vendor_id enums to OpenCL 3.0 in cl.xml
bashbaug
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with this as-is, and we are not currently generating the core API headers, but because the vendor ID defines are not currently protected by any OpenCL version checks it may be most consistent to assign these enums to OpenCL 1.0.
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/CL/cl.h#L914
I see also that we have not included the POCL vendor ID in the upstream headers - I'll file an issue to fix this.
This is so that they can clearly be used for any OpenCL version.
|
That makes sense, I've made that change. I also moved the |
|
I'm OK moving https://github.com/KhronosGroup/OpenCL-Headers/blob/master/CL/cl.h#L114 Is that right? FWIW |
kpet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with this change. I was thinking we'd introduce a dedicated subtree with special tags (I think we'll also need this for some of the reserved enums BTW) for the vendor IDs to decouple them from all versions but this works.
Yes, it is correct because the type didn't exist before OpenCL 3.0.
I tried to dig up something, there is internal issue 216, which references GitHub PR #203, but there is no clear rationale. I suspect that the term The specification does say for CL_DEVICE_VENDOR_ID
But it doesn't mean much as it's a So, to merge this I think:
|
Works for me. I'll wait for an update to move |
This was the version that introduced the type.
|
Done as described in previous message. |
See script to check for orphans in #730
The type was adding in OpenCL 3.0, the actual enums are independent of a specific OpenCL version, but they're also not part of extensions. The 3.0 section seems the most natural.