[Libclc-dev] [PATCH 3/3] Add half limits
Jeroen Ketema
j.ketema at imperial.ac.uk
Mon Jun 23 09:44:55 PDT 2014
Hi Tom,
>> 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).
Jeroen
More information about the Libclc-dev
mailing list