You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#if !defined(CL_VERSION_2_1)
/* For OpenCL 2.1 and newer, cl_kernel_sub_group_info is declared in CL.h. In hindsight, there should have been a khr suffix on this type for the extension, but keeping it un-suffixed to maintain backwards compatibility. */typedefcl_uintcl_kernel_sub_group_info;
#endif
What is the best way to represent these conditions in the XML file?
Tagging @oddhack since perhaps there is already a convention we can borrow from other XML files.
The text was updated successfully, but these errors were encountered:
There isn't any existing schema for this. If I were doing this I'd approach it through the <require> tag. While that normally requires an API extension to support the features inside the tag, you could add an attribute for something like <require condition="CL_TARGET_OPENCL_VERSION <= 110"> and use that literal string in a generated preprocessor wrapper - or, if you needed the semantics of the condition to be comprehensible to an output generator, some more complex attribute grammar.
There are a couple of places in the OpenCL extension headers where enums or types are conditionally defined. A few examples:
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/CL/cl_ext.h#L32
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/CL/cl_ext.h#L508
What is the best way to represent these conditions in the XML file?
Tagging @oddhack since perhaps there is already a convention we can borrow from other XML files.
The text was updated successfully, but these errors were encountered: