KhronosGroup / KhronosGroup/OpenCL-Docs

Clarify support for the half type

Open
#21 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OpenCL C Spec themed-agenda
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.