Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unify the CL_INVALID_COMMAND_QUEUE behavior for semaphore signals and waits #1256

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions api/cl_khr_semaphore.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,6 @@ while (true) {
{CL_SEMAPHORE_DEVICE_HANDLE_LIST_KHR} (provisional).
* Revision 1.0.0, 2024-03-15
** First non-provisional version.
* Revision 1.0.1, 2024-09-08
** Unified {CL_INVALID_COMMAND_QUEUE} error behavior for
{clEnqueueSignalSemaphoresKHR} and {clEnqueueWaitSemaphoresKHR}.
15 changes: 8 additions & 7 deletions api/opencl_runtime_layer.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13284,7 +13284,9 @@ Otherwise, it returns one of the following errors:
** if _command_queue_ is not a valid command-queue, or
** if the device associated with _command_queue_ is not same as one of the
devices specified by {CL_SEMAPHORE_DEVICE_HANDLE_LIST_KHR} at the time
of creating one or more of _sema_objects_.
of creating one or more of _sema_objects_, or
** if one or more of _sema_objects_ belong to a context that does not
contain a device associated with _command_queue_.
* {CL_INVALID_VALUE} if _num_sema_objects_ is 0.
* {CL_INVALID_SEMAPHORE_KHR} if any of the semaphore objects specified by
_sema_objects_ is not valid.
Expand Down Expand Up @@ -13397,11 +13399,11 @@ Otherwise, it returns one of the following errors:
_sema_objects_ requires a semaphore payload and _sema_payload_list_ is
`NULL`.
* {CL_INVALID_EVENT_WAIT_LIST}
** if _event_wait_list_ is `NULL` and _num_events_in_wait_list_ is not
0, or
** if _event_wait_list_ is not `NULL` and _num_events_in_wait_list_ is
0, or
** if event objects in _event_wait_list_ are not valid events.
** if _event_wait_list_ is `NULL` and _num_events_in_wait_list_ is not 0,
or
** if _event_wait_list_ is not `NULL` and _num_events_in_wait_list_ is 0,
or
** if event objects in _event_wait_list_ are not valid events.
* {CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST} if the execution status
of any of the events in _event_wait_list_ is a negative integer value.
* {CL_OUT_OF_RESOURCES} if there is a failure to allocate resources
Expand All @@ -13410,7 +13412,6 @@ Otherwise, it returns one of the following errors:
required by the OpenCL implementation on the host.
--


=== Retaining and Releasing Semaphores

[open,refpage='clReleaseSemaphoreKHR',desc='Release a semaphore object',type='protos']
Expand Down