I have a Mac Pro (Late 2013) and I want to do some math in double using OpenCL. When I was using Mavericks the CL_DEVICE_EXTENSIONS
for my FirePro GPU only listed cl_APPLE_fp64_basic_ops
so I couldn't use double math functions like exp()
. I recently upgraded to Yosemite and now the proper cl_khr_fp64
is in the list of extensions but I still can't use exp for double. The error log shows that it's looking for an overloaded function and exp is available for float, float4, float8,... but not 64 bit. I have included the command to turn on fp64:
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
Does anyone know what's going on? Why does the GPU say that cl_khr_fp64
is available but then I can't use all of it. I can +-*/
in double, but I could also do that before with just basic_ops
. Is Apple lying to me that they upgraded support of fp64
?
Strangely, on my CPU OpenCL also says that cl_khr_fp64
is also available but I can't use exp on the CPU either.