Currently Clang does not allow half type as kernel argument type even when cl_khr_fp16 is enabled, which does not make sense since when cl_khr_fp16 is enabled, half type is a valid type for function argument and it has platform independent size.
We have a patch to allow half type as kernel argument when cl_khr_fp16 is enabled. I am wondering if I can upstream it.
Thanks.
Sam