KhronosGroup / OpenCL-Docs

OpenCL API, OpenCL C, Extensions, SPIR-V Environment Specs, Ref page, and C++ for OpenCL doc sources.
Other
359 stars 113 forks source link

Should feature macro be added in kernel language extensions #755

Open AnastasiaStulova opened 2 years ago

AnastasiaStulova commented 2 years ago

In OpenCL 3.0 feature macros were added but however, the extension spec has remained with the following statement:

A unique name string of the form "clkhr" is associated with each extension. If the extension is supported by an implementation, this string will be present in the implementation’s CL_PLATFORM_EXTENSIONS string or CL_DEVICE_EXTENSIONS string.

As a matter of fact, that doesn't regulate EXT and vendor extensions...

Some extensions start to appear with feature macros such as cl_ext_float_atomics while others stay with cl_ext_<name>.

Could we avoid different schemes for macros and just use one of the schemes?

AnastasiaStulova commented 2 years ago

Discussed in OpenCL Tooling call 21 Apr 2022: