CL_DEVICE_HALF_FP_CONFIG returns CL_INVALID_VALUE.
CL_DEVICE_HALF_FP_CONFIG returns CL_INVALID_VALUE.

16fp and 64fp are optional extensions to OpenCL.  The CONFIG's only exists when the extension is available.  It is therefore better to check the availability of the extension, so that no errors are thrown (and have to treated).

+ Cleanup of compiler warnings.

arrayfire/arrayfire,umar456/arrayfire,umar456/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,9prady9/arrayfire,umar456/arrayfire,umar456/arrayfire,9prady9/arrayfire