You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* use common wording for enqueue commands
fix a few missing asciidoctor attributes
* add a footnote clarifying usage of the semaphore reference count
* add the semaphore and external sharing extensions to the quick reference table
* fix italics in the error conditions for clGetSemaphoreInfoKHR
* fix the API suffix macros for all semaphore APIs
* re-alphabetize footnotes
* try to clarify when semaphore waits and signals are complete
* remove duplicated word
Copy file name to clipboardExpand all lines: api/footnotes.asciidoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,10 @@ It is unsuitable for general use in applications. \
138
138
This feature is provided for identifying memory leaks. \
139
139
]
140
140
141
+
:fn-setkernelarg-prefer-unset-on-error: pass:n[ \
142
+
Implementations are encouraged to favor this option as it makes it more likely that errors will be managed by applications. \
143
+
]
144
+
141
145
:fn-srgb-image-requirements: pass:n[ \
142
146
Support for reading from the {CL_sRGBA} image channel order is optional for 1D image buffers. \
143
147
Support for writing to the {CL_sRGBA} image channel order is optional for all image types. \
@@ -162,7 +166,3 @@ Only once the ID has been allotted may it be exposed to OpenCL by proposing a me
162
166
The merge must define a new enumerant by adding an `<enum>` tag to the {cl_khronos_vendor_id_TYPE}`<enums>` tag, with the `<value>` attribute set as the acquired Khronos vendor ID. \
163
167
The `<name>` attribute must identify the vendor/adopter, and be of the form `CL_KHRONOS_VENDOR_ID_<vendor>`. \
164
168
]
165
-
166
-
:fn-setkernelarg-prefer-unset-on-error: pass:n[ \
167
-
Implementations are encouraged to favor this option as it makes it more likely that errors will be managed by applications. \
Copy file name to clipboardExpand all lines: ext/cl_khr_external_semaphore.asciidoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -420,11 +420,11 @@ The `cl_khr_external_semaphore_dx_fence` extension extends {cl_external_semaphor
420
420
When waiting on semaphores using {clEnqueueWaitSemaphoresKHR} or signaling semaphores using {clEnqueueSignalSemaphoresKHR}, the semaphore payload must be provided for semaphores created from {CL_SEMAPHORE_HANDLE_D3D12_FENCE_KHR}.
421
421
422
422
423
-
* If _sema_objects_ list has a mix of cl_semaphore obtained from *CL_SEMAPHORE_HANDLE_D3D12_FENCE_KHR* and other handle types,
423
+
* If _sema_objects_ list has a mix of cl_semaphore obtained from {CL_SEMAPHORE_HANDLE_D3D12_FENCE_KHR} and other handle types,
424
424
then the _sema_payload_list_ should point to a list of _num_sema_objects_ payload values for each cl_semaphore in _sema_objects_.
425
-
However, the payload values corresponding to semaphores with type CL_SEMAPHORE_TYPE_BINARY_KHR can be set to 0 or will be ignored.
425
+
However, the payload values corresponding to semaphores with type {CL_SEMAPHORE_TYPE_BINARY_KHR} can be set to 0 or will be ignored.
426
426
427
-
*clEnqueueWaitSemaphoresKHR* and *clEnqueueSignalSemaphoresKHR* may return *CL_INVALID_VALUE* if _sema_objects_ list has one or more cl_semaphore obtained from *CL_SEMAPHORE_HANDLE_D3D12_FENCE_KHR* and _sema_payload_list_ is NULL.
427
+
{clEnqueueWaitSemaphoresKHR} and {clEnqueueSignalSemaphoresKHR} may return {CL_INVALID_VALUE} if _sema_objects_ list has one or more cl_semaphore obtained from {CL_SEMAPHORE_HANDLE_D3D12_FENCE_KHR} and _sema_payload_list_ is NULL.
@@ -307,6 +307,8 @@ The context associated with events in _event_wait_list_ and that associated with
307
307
_event_ returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete.
308
308
_event_ can be `NULL` in which case it will not be possible for the application to query the status of this command or queue a wait for this command to complete.
309
309
310
+
The semaphore wait command waits for a list of events to complete and a list of semaphore objects to become signaled.
311
+
The semaphore wait command returns an _event_ which can be waited on to ensure that all events in the _event_wait_list_ have completed and all semaphores in _sema_objects_ have been signaled.
310
312
The successful completion of the event generated by {clEnqueueWaitSemaphoresKHR} called on one or more semaphore objects of type {CL_SEMAPHORE_TYPE_BINARY_KHR} leads to un-signaling the corresponding semaphore objects and the state of these semaphore objects will be reset. Any subsequent {clEnqueueWaitSemaphoresKHR} operation on these semaphores without a pending {clEnqueueSignalSemaphoresKHR} may lead to implementation-defined behavior.
311
313
312
314
{clEnqueueWaitSemaphoresKHR} returns {CL_SUCCESS} if the function is executed successfully.
@@ -329,7 +331,7 @@ Otherwise, it returns one of the following errors:
329
331
* {CL_OUT_OF_RESOURCES} if there is a failure to allocate resources required by the OpenCL implementation on the device.
330
332
* {CL_OUT_OF_HOST_MEMORY} if there is a failure to allocate resources required by the OpenCL implementation on the host.
331
333
332
-
To signal a set of semaphores, call the function
334
+
To enqueue a command to signal a set of semaphores, call the function
@@ -357,7 +359,9 @@ _event_ returns an event object that identifies this particular command and can
357
359
_event_ can be `NULL` in which case it will not be possible for the application to query the status of this command
358
360
or queue a wait for this command to complete.
359
361
360
-
The successful completion of event generated by {clEnqueueSignalSemaphoresKHR} called on one or more semaphore objects of type {CL_SEMAPHORE_TYPE_BINARY_KHR} changes the state of the corresponding semaphore objects to signaled. Any subsequent {clEnqueueSignalSemaphoresKHR} operation on these semaphores without a pending {clEnqueueWaitSemaphoresKHR} may lead to implementation-defined behavior.
362
+
The semaphore signal command waits for a list of events to complete and then signals a list of semaphore objects.
363
+
The semaphore signal command returns an _event_ which can be waited on to ensure that all events in the _event_wait_list_ have completed and all semaphores in _sema_objects_ have been signaled.
364
+
The successful completion of the event generated by {clEnqueueSignalSemaphoresKHR} called on one or more semaphore objects of type {CL_SEMAPHORE_TYPE_BINARY_KHR} changes the state of the corresponding semaphore objects to signaled. Any subsequent {clEnqueueSignalSemaphoresKHR} operation on these semaphores without a pending {clEnqueueWaitSemaphoresKHR} may lead to implementation-defined behavior.
361
365
362
366
{clEnqueueSignalSemaphoresKHR} returns {CL_SUCCESS} if the function is executed successfully.
363
367
Otherwise, it returns one of the following errors:
@@ -405,7 +409,7 @@ being queried by _param_value_. If _param_value_size_ret_ is `NULL`, it is ignor
405
409
| {cl_context_TYPE}
406
410
| Returns the context specified when the semaphore is created.
@@ -440,7 +444,7 @@ Otherwise, it returns one of the following errors:
440
444
** if _sema_object_ is not a valid semaphore
441
445
* {CL_INVALID_VALUE}
442
446
** if _param_name_ is not one of the attribute defined in table <<cl_khr_semaphore_info-table>> or
443
-
** if _param_value_size is less than the size of Return Type of the corresponding _param_name_ attribute as defined in table <<cl_khr_semaphore_info-table>>.
447
+
** if _param_value_size_ is less than the size of Return Type of the corresponding _param_name_ attribute as defined in table <<cl_khr_semaphore_info-table>>.
444
448
* {CL_OUT_OF_RESOURCES} if there is a failure to allocate resources required by the OpenCL implementation on the device.
445
449
* {CL_OUT_OF_HOST_MEMORY} if there is a failure to allocate resources required by the OpenCL implementation on the host.
0 commit comments