Hi,
this patch guards all missed half float functions based on the availabiltiy of the OpenCL extension cl_khr_fp16.
Best regards,
Jerry
Differential D46501
[OpenCL] Guard all half float usage based on cl_khr_fp16 extension jerryct on May 6 2018, 3:42 AM. Authored by
Details
Diff Detail
Event TimelineComment Actions Only halfn type requires cl_khr_fp16. These functions do not use halfn type, therefore cl_khr_fp16 is not required. Comment Actions I think the extension is for all half https://www.khronos.org/registry/OpenCL/sdk/1.2/docs/man/xhtml/cl_khr_fp16.html This extension adds support for half scalar and vector types as built-in types that can be used for arithmetic operations, conversions, etc. An application that wants to use half and halfn types will need to include the directive shown above. Comment Actions Could you upload the full diff please, otherwise it's not easy to see all the functions guarded by the macro.
|