KhronosGroup / KhronosGroup/OpenCL-Docs

Clarify clGetDeviceIDs(CL_DEVICE_TYPE_DEFAULT) behavior when there is more than one custom device

Open
#1,476 2 comments 0 reactions 1 assignee Claimed by @bashbaug View on GitHub
Dominant language
Python
Stars
420
Forks
131
Avg merge
5d 13h
Merged PRs (30d)
11

Description

Hi,

The spec seems to be contradictory when there are several devices in the platform and all of them are custom:

> One device in the platform must be returned as the `CL_DEVICE_TYPE_DEFAULT` device when passed as the *device_type* to **clGetDeviceIDs**.

> The default OpenCL device must not be a `CL_DEVICE_TYPE_CUSTOM` device unless it is the only device in the platform.

If I read it correctly, an implementation is required to return both one and no devices.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.