KhronosGroup / OpenCL-Docs

OpenCL API, OpenCL C, Extensions, SPIR-V Environment Specs, Ref page, and C++ for OpenCL doc sources.
Other
356 stars 113 forks source link

Should explicit conversion with half exist? #1190

Open rjodinchr opened 2 months ago

rjodinchr commented 2 months ago

Documentation says that no explicit conversion is provided for half:

But the header in clang is defining it in both direction (input and output) for every type:

I see half conversion being used in tensorflow lite:

bashbaug commented 2 months ago

Recording discussion from working group teleconference: this is an issue merging with the cl_khr_fp16 spec. Need to document that this functionality is required, but only when the extension is supported.