Skip to content

Commit

Permalink
clarify CL_DEVICE_TYPE_DEFAULT and CL_DEVICE_TYPE_ALL for custom devi…
Browse files Browse the repository at this point in the history
…ces (#1117)
  • Loading branch information
bashbaug authored Jul 9, 2024
1 parent 40fbb79 commit 92c3de3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/opencl_platform_layer.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,13 @@ include::{generated}/api/version-notes/CL_DEVICE_TYPE_DEFAULT.asciidoc[]
{clGetDeviceIDs} or to create OpenCL contexts using
{clCreateContextFromType}, and will never be returned in {CL_DEVICE_TYPE}
for any OpenCL device.
The default OpenCL device must not be a {CL_DEVICE_TYPE_CUSTOM} device.
The default OpenCL device must not be a {CL_DEVICE_TYPE_CUSTOM} device
unless it is the only device in the platform.

| {CL_DEVICE_TYPE_ALL_anchor}

include::{generated}/api/version-notes/CL_DEVICE_TYPE_ALL.asciidoc[]
| All OpenCL devices available in the platform, except for
{CL_DEVICE_TYPE_CUSTOM} devices.
| All OpenCL devices in the platform.
{CL_DEVICE_TYPE_ALL} is only used to query OpenCL devices using
{clGetDeviceIDs} or to create OpenCL contexts using
{clCreateContextFromType}, and will never be returned in {CL_DEVICE_TYPE}
Expand Down

0 comments on commit 92c3de3

Please sign in to comment.