Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions api/opencl_runtime_layer.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15122,20 +15122,15 @@ include::{generated}/api/version-notes/clEnqueueCommandBufferKHR.asciidoc[]
application to wait on this command or query it for profiling
information.

[NOTE]
====
To enqueue a command-buffer it must be in a <<executable, Executable>> state,
see {clFinalizeCommandBufferKHR}.
====

// refError

{clEnqueueCommandBufferKHR} returns {CL_SUCCESS} if the command-buffer
execution was successfully queued, or one of the errors below:

* {CL_INVALID_COMMAND_BUFFER_KHR} if _command_buffer_ is not a valid
command-buffer.
* {CL_INVALID_OPERATION} if _command_buffer_ has not been finalized.
* {CL_INVALID_OPERATION} if _command_buffer_ is not in the
<<executable, Executable>> state.
* {CL_INVALID_VALUE} if _queues_ is `NULL` and _num_queues_ is > 0, or
_queues_ is not `NULL` and _num_queues_ is 0.
* {CL_INVALID_VALUE} if _num_queues_ is > 0 and not the same value as
Expand Down