These various deltas made it extremely difficult to work with non-Apple
implementations of OpenCL on macOS. Apple always shipped their own
versions of the headers anyway, and now that Apple have officially
deprecated OpenCL on their platforms there is no reason to keep these
deltas.
Fixes https://github.com/KhronosGroup/OpenCL-Headers/issues/31 as well
as a few other unreported issues.
...to the final CL_IMPORT_TYPE_PROTECTED_ARM name.
The extension spec hasn't been released publicly yet.
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
Note that "cl.h" defines the macro only for OpenCL 1.2 or greater since
"cl_khr_fp64" was made a core-optional feature from OpenCL 1.2 onwards.
This creates an issue when users targeting OpenCL 1.1 or lower try to query
the device for double precision support using the macro.
This change fixes this issue by adding the macro in "cl_ext.h" for OpenCL 1.1 or lower.
"cl_khr_fp16" is still included as an extension in higher OpenCL versions unlike "cl_khr_fp64"
which is an optional-core feature from OpenCL 1.2. Hence remove the above defined macro
as it is already defined in "cl_ext.h"