Skip to content

Clarify requirements and error conditions for clSetDefaultDeviceCommandQueue regarding device queues #1512

@shajder

Description

@shajder

The current specification of clSetDefaultDeviceCommandQueue lacks clarity regarding the required type of the command queue and the reason for error codes in certain cases. Related CTS issue.

The spec currently states:

command_queue specifies a command-queue object which replaces the default device command-queue

It does not explicitly mention that command_queue must be created with the CL_QUEUE_ON_DEVICE property.

Moreover, for the error enums:

CL_INVALID_OPERATION if device does not support a replaceable default on-device queue.
CL_INVALID_COMMAND_QUEUE if command_queue is not a valid command-queue for device.

The specification does not clearly indicate that these errors can occur when command_queue is not a device queue (i.e., it is not created with CL_QUEUE_ON_DEVICE), even if it is otherwise a valid host queue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions