@@ -13285,7 +13285,9 @@ Otherwise, it returns one of the following errors:
1328513285 ** if _command_queue_ is not a valid command-queue, or
1328613286 ** if the device associated with _command_queue_ is not same as one of the
1328713287 devices specified by {CL_SEMAPHORE_DEVICE_HANDLE_LIST_KHR} at the time
13288- of creating one or more of _sema_objects_.
13288+ of creating one or more of _sema_objects_, or
13289+ ** if one or more of _sema_objects_ belong to a context that does not
13290+ contain a device associated with _command_queue_.
1328913291 * {CL_INVALID_VALUE} if _num_sema_objects_ is 0.
1329013292 * {CL_INVALID_SEMAPHORE_KHR} if any of the semaphore objects specified by
1329113293 _sema_objects_ is not valid.
@@ -13398,11 +13400,11 @@ Otherwise, it returns one of the following errors:
1339813400 _sema_objects_ requires a semaphore payload and _sema_payload_list_ is
1339913401 `NULL`.
1340013402 * {CL_INVALID_EVENT_WAIT_LIST}
13401- ** if _event_wait_list_ is `NULL` and _num_events_in_wait_list_ is not
13402- 0, or
13403- ** if _event_wait_list_ is not `NULL` and _num_events_in_wait_list_ is
13404- 0, or
13405- ** if event objects in _event_wait_list_ are not valid events.
13403+ ** if _event_wait_list_ is `NULL` and _num_events_in_wait_list_ is not 0,
13404+ or
13405+ ** if _event_wait_list_ is not `NULL` and _num_events_in_wait_list_ is 0,
13406+ or
13407+ ** if event objects in _event_wait_list_ are not valid events.
1340613408 * {CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST} if the execution status
1340713409 of any of the events in _event_wait_list_ is a negative integer value.
1340813410 * {CL_OUT_OF_RESOURCES} if there is a failure to allocate resources
@@ -13411,7 +13413,6 @@ Otherwise, it returns one of the following errors:
1341113413 required by the OpenCL implementation on the host.
1341213414--
1341313415
13414-
1341513416=== Retaining and Releasing Semaphores
1341613417
1341713418[open,refpage='clReleaseSemaphoreKHR',desc='Release a semaphore object',type='protos']
0 commit comments