KhronosGroup / KhronosGroup/OpenCL-Docs
clGetContextInfo's last parameter is "size_t" when it should be "size_t*"
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 421
- Forks
- 132
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 11
Description
The function prototype/signature is wrong. Found while writing bindings and comparing
documentation against khronos' cl.h.
The last parameter listed in clGetContextInfo should be a pointer.
https://www.khronos.org/registry/OpenCL/sdk/1.0/docs/man/xhtml/clGetContextInfo.html
cl_int clGetContextInfo ( cl_context context,
cl_context_info param_name,
size_t param_value_size,
void *param_value,
size_t param_value_size_ret)
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
Compare the clGetContextInfo prototype in the OpenCL-Docs sources with the Khronos cl.h documentation linked in the issue. Confirm the final parameter is represented as a pointer, then update the API reference and verify that the published signature matches the documented declaration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100