Skip to content

Commit 92c3de3

Browse files
authored
clarify CL_DEVICE_TYPE_DEFAULT and CL_DEVICE_TYPE_ALL for custom devices (KhronosGroup#1117)
1 parent 40fbb79 commit 92c3de3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/opencl_platform_layer.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,13 @@ include::{generated}/api/version-notes/CL_DEVICE_TYPE_DEFAULT.asciidoc[]
395395
{clGetDeviceIDs} or to create OpenCL contexts using
396396
{clCreateContextFromType}, and will never be returned in {CL_DEVICE_TYPE}
397397
for any OpenCL device.
398-
The default OpenCL device must not be a {CL_DEVICE_TYPE_CUSTOM} device.
398+
The default OpenCL device must not be a {CL_DEVICE_TYPE_CUSTOM} device
399+
unless it is the only device in the platform.
399400

400401
| {CL_DEVICE_TYPE_ALL_anchor}
401402

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

0 commit comments

Comments
 (0)