KhronosGroup / KhronosGroup/OpenCL-Docs

clGetContextInfo's last parameter is "size_t" when it should be "size_t*"

Open
#64 2 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.