Skip to content

clEnqueueCommandBufferKHR ambigous error on context of queue and command-buffer mismatch #1150

@EwanC

Description

@EwanC

As discovered in KhronosGroup/OpenCL-CTS#1931 (comment) clEnqueueCommandBuffer currently defines these two error cases:

CL_INCOMPATIBLE_COMMAND_QUEUE_KHR if any element of queues is not compatible with the command-queue set on command_buffer creation at the same list index.

CL_INVALID_CONTEXT if any element of queues does not have the same context as the command-queue set on command_buffer creation at the same list index.

However the definition of "compatible" is the following, which includes mismatch queue context.

A compatible command-queue is defined as a command-queue with identical properties targeting the same device and in the same OpenCL context.

Therefore it is ambiguous if CL_INVALID_CONTEXT or CL_INCOMPATIBLE_COMMAND_QUEUE_KHR should be returned by an implementation if the context of the queue used on command-buffer creation and enqueue don't match.

Metadata

Metadata

Assignees

Labels

cl_khr_command_bufferRelating to the command-buffer family of extension

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions