[Libclc-dev] [PATCH 3/3] Add half limits
j.ketema at imperial.ac.uk
Mon Jun 23 09:44:55 PDT 2014
>> I also tried adding HALF_MAX, HALF_MIN, and HALF_EPSILON. However, clang does
>> not seem to support the ‘h’ suffix even with the cl_khr_fp16 extension enabled.
> Is the `h' suffix something that is required to be supported by the OpenCL 2.0 spec?
I haven’t checked the OpenCL 2.0 spec, but OpenCL 1.2 uses the ‘h’ prefix when definition
the aforementioned macros. Strangely enough I couldn’t find any definition of the prefix (but
maybe I haven’t looked closely enough).
More information about the Libclc-dev