bader added inline comments.
Comment at: lib/Headers/opencl-c.h:12097
+#ifdef cl_khr_fp16
float __ovld vload_half(size_t offset, const __constant half *p);
#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
These built-ins are part of the core specification, which does
Anastasia added a comment.
Could you upload the full diff please, otherwise it's not easy to see all the
functions guarded by the macro.
Repository:
rC Clang
https://reviews.llvm.org/D46501
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Anastasia added a comment.
In https://reviews.llvm.org/D46501#1089777, @yaxunl wrote:
> Only halfn type requires cl_khr_fp16. These functions do not use halfn type,
> therefore cl_khr_fp16 is not required.
I think the extension is for all half
https://www.khronos.org/registry/OpenCL/sdk/1.2/d
yaxunl added a comment.
Only halfn type requires cl_khr_fp16. These functions do not use halfn type,
therefore cl_khr_fp16 is not required.
Repository:
rC Clang
https://reviews.llvm.org/D46501
___
cfe-commits mailing list
cfe-commits@lists.llvm.