KhronosGroup / KhronosGroup/OpenCL-Docs
Clarify support for the half type
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 421
- Forks
- 132
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 11
Description
My reading of the CL C 2.0 spec is that there is mandatory core support for half as a storage format and pointers to half (including for kernel arguments) are always supported but scalar and vector types as well as arithmetic operations and built-in functions are only supported when cl_khr_fp16 is present. If accurate, this is probably worth stating clearly in the Built-in Scalar Data Types section.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the CL C 2.0 specification's rules for half storage, pointers, scalar and vector types, arithmetic, and built-in functions with the Built-in Scalar Data Types section. Confirm the role of cl_khr_fp16, then update that section so the mandatory and optional support is stated accurately and clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100