[cfe-dev] [OpenCL] atomic_double requires cl_khr_fp64 enabled

Liu, Yaxun (Sam) via cfe-dev cfe-dev at lists.llvm.org
Wed Apr 20 07:45:09 PDT 2016


Currently Clang requires cl_khr_fp64 enabled to use atomic_double. This seems to be a bug.

In OpenCL 2.0 fp64 is an optional feature. If platform supports it, there is no need to enable cl_khr_fp64 to use it. Actually in OpenCL 2.0 spec cl_khr_fp64 is not defined.

I plan to fix that if all agree it is a bug.

What's your opinion? Thanks.

Sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 10708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160420/3fc7b209/attachment-0001.bin>


More information about the cfe-dev mailing list