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.
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:
It does not explicitly mention that command_queue must be created with the
CL_QUEUE_ON_DEVICEproperty.Moreover, for the error enums:
The specification does not clearly indicate that these errors can occur when
command_queueis not a device queue (i.e., it is not created withCL_QUEUE_ON_DEVICE), even if it is otherwise a valid host queue.