PDA

View Full Version : missing Double and Half FP_CONFIG



AlessandroBorges
12-09-2009, 07:13 AM
Hi

At http://www.khronos.org/registry/cl/api/1.0/cl.h
the cl_device_info enumeration miss both CL_DEVICE_DOUBLE_FP_CONFIG and CL_DEVICE_HALF_FP_CONFIG.
Only CL_DEVICE_SINGLE_FP_CONFIG is there.

The man page for clGetDeviceInfo mentions all afore mentioned enumerations as valid parameters.

Thanks

A.

AlessandroBorges
12-11-2009, 06:31 AM
Did I miss something ?

danbartlett
12-11-2009, 11:06 AM
CL_DEVICE_DOUBLE_FP_CONFIG + CL_DEVICE_HALF_FP_CONFIG are both part of extensions (cl_khr_fp64 + cl_khr_fp16), so they will only appear in cl_ext.h (which isn't available atm from Khronos, but you can find probably find a copy of it in SDK from NVidia/AMD/Apple/etc)

AlessandroBorges
12-14-2009, 06:01 AM
Thanks for reply.

If CL_DEVICE_DOUBLE_FP_CONFIG and CL_DEVICE_HALF_FP_CONFIG are defined by vendors in cl_ext.h, it may broken if run in another hardware, as each vendor may set it's own constant value.
In other words, it may be a not portable feature.

Am I wrong ?