I need the smallest/largest floating point number in an OpenCL kernel program which involves computing log probability. I had a look on OpenCL reference manual but I cannot locate such constants.
In Java it is equivalent to something like Double.MAX_VALUE;
In C it is in float.h
They are called FLT_MAX / FLT_MIN, and DBL_MAX / DBL_MIN.
See Macros and Limits in the OpenCL 1.2 spec.