All the constants defined in "/usr/lib64/OpenCL/global/include/CL/cl_platform.h" matching CL_M_* are wrong. The original file is downloaded from https://dev.gentoo.org/~xarthisius/distfiles/cl_platform.h.1.1.xz
Is it easy to verify this by running $ wget https://dev.gentoo.org/~xarthisius/distfiles/cl_platform.h.1.1.xz -q -O - |xzdec -d|grep CL_M_|sort and comparing the results with the correct values
(In reply to comment #0) > All the constants defined in > "/usr/lib64/OpenCL/global/include/CL/cl_platform.h" > matching CL_M_* are wrong. Could you be more specific, i.e. what's wrong with them? #define CL_M_PI 3.141592653589793115998 looks like a pi to me... > The original file is downloaded from > https://dev.gentoo.org/~xarthisius/distfiles/cl_platform.h.1.1.xz
The correct value of PI approximated to the 21st decimal digit would be 3.141592653589793238463 and not 3.141592653589793115998 Of course the difference is small, but I think that would be better if you correct this error (and the others, because there are small approximation errors in all CL_M_* constats after the 15th decimal digit).
I've not made up that file, just mirrored it from khronos[1]. You should complain to them, there's nothing I can do about it on Gentoo level. [1] http://www.khronos.org/