KhronosGroup / KhronosGroup/OpenCL-Docs

Confusing description of CL_DEVICE_PARTITION_PROPERTIES

Open
#1,475 4 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 return type of CL_DEVICE_PARTITION_PROPERTIES query is cl_device_partition_property[] (an array), but the description says:

If the device cannot be partitioned (i.e. there is no
partitioning scheme supported by the device that will
return at least two sub-devices), a value of 0 will be
returned.

Should it instead say "an empty array will be returned"? Or does it mean the returned array should contain one element (0)?

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 locating the documentation entry for CL_DEVICE_PARTITION_PROPERTIES and review the definition of its cl_device_partition_property[] return value. Confirm the intended no-partitioning result with the surrounding specification text, then clarify the wording so the returned value is unambiguous.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.