Skip to content

Commit 391e208

Browse files
authored
remove a redundant cl_khr_external_memory error code (#904)
1 parent def9281 commit 391e208

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

ext/cl_khr_external_memory.asciidoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,12 @@ If _num_mem_objects_ is 0 and _mem_objects_ is `NULL`, the command will triviall
281281
{clEnqueueAcquireExternalMemObjectsKHR} returns {CL_SUCCESS} if the function is executed successfully.
282282
Otherwise, it returns one of the following errors:
283283

284-
* {CL_INVALID_VALUE} if _num_mem_objects_ is zero and _mem_objects_ is not a `NULL` value or if _num_mem_objects_ is not 0 and _mem_objects_ is `NULL`.
284+
* {CL_INVALID_VALUE} if _num_mem_objects_ is zero and _mem_objects_ is not a `NULL` value or if _num_mem_objects_ is greater than 0 and _mem_objects_ is `NULL`.
285285
* {CL_INVALID_MEM_OBJECT} if any of the memory objects in _mem_objects_ is not a valid OpenCL memory object created using an external memory handle.
286286
* {CL_INVALID_COMMAND_QUEUE}
287287
** if _command_queue_ is not a valid command-queue, or
288288
** if device associated with _command_queue_ is not one of the devices specified by {CL_DEVICE_HANDLE_LIST_KHR} at the time of creating one or more of _mem_objects_, or
289-
** if one or more of _mem_objects_ belong to a context that does not contain a device associated _command_queue_, or
290-
** if one or more of _mem_objects_ can not be shared with device associated with _command_queue_.
289+
** if one or more of _mem_objects_ belong to a context that does not contain a device associated with _command_queue_.
291290
* {CL_INVALID_EVENT_WAIT_LIST}
292291
** if _event_wait_list_ is `NULL` and _num_events_in_wait_list_ is not 0, or
293292
** if _event_wait_list_ is not `NULL` and _num_events_in_wait_list_ is 0, or
@@ -332,8 +331,7 @@ Otherwise, it returns one of the following errors:
332331
* {CL_INVALID_COMMAND_QUEUE}
333332
** if _command_queue_ is not a valid command-queue, or
334333
** if device associated with _command_queue_ is not one of the devices specified by {CL_DEVICE_HANDLE_LIST_KHR} at the time of creating one or more of _mem_objects_, or
335-
** if one or more of _mem_objects_ belong to a cl_context that does not contain device associated _command_queue_, or
336-
** if one or more of _mem_objects_ can not be shared with device associated with _command_queue_.
334+
** if one or more of _mem_objects_ belong to a context that does not contain a device associated with _command_queue_.
337335
* {CL_INVALID_EVENT_WAIT_LIST}
338336
** if _event_wait_list_ is `NULL` and _num_events_in_wait_list_ is not 0, or
339337
** if _event_wait_list_ is not `NULL` and _num_events_in_wait_list_ is 0, or

ext/cl_khr_semaphore.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Otherwise, it returns one of the following errors:
316316
* {CL_INVALID_COMMAND_QUEUE}
317317
** if _command_queue_ is not a valid command-queue, or
318318
** if the device associated with _command_queue_ is not same as one of the devices specified by {CL_DEVICE_HANDLE_LIST_KHR} at the time of creating one or more of _sema_objects_, or
319-
** if one or more of _sema_objects_ belong to a context that does not contain a device associated with_command_queue_.
319+
** if one or more of _sema_objects_ belong to a context that does not contain a device associated with _command_queue_.
320320
* {CL_INVALID_VALUE} if _num_sema_objects_ is 0.
321321
* {CL_INVALID_SEMAPHORE_KHR} if any of the semaphore objects specified by _sema_objects_ is not valid.
322322
* {CL_INVALID_CONTEXT} if the context associated with _command_queue_ and any of the semaphore objects in _sema_objects_ are not the same or if the context associated with _command_queue_ and that associated with events in _event_wait_list_ are not the same.
@@ -366,8 +366,8 @@ Otherwise, it returns one of the following errors:
366366

367367
* {CL_INVALID_COMMAND_QUEUE}
368368
** if _command_queue_ is not a valid command-queue, or
369-
** if device associated with _command_queue_ is not same as one of devices specified by {CL_DEVICE_HANDLE_LIST_KHR} at the time of creating one or more of _sema_objects_, or
370-
** if one or more of _sema_objects_ belong to a context that does not contain a device associated _command_queue_.
369+
** if the device associated with _command_queue_ is not same as one of the devices specified by {CL_DEVICE_HANDLE_LIST_KHR} at the time of creating one or more of _sema_objects_, or
370+
** if one or more of _sema_objects_ belong to a context that does not contain a device associated with _command_queue_.
371371
* {CL_INVALID_VALUE} if _num_sema_objects_ is 0
372372
* {CL_INVALID_SEMAPHORE_KHR} if any of the semaphore objects specified by _sema_objects_ is not valid.
373373
* {CL_INVALID_CONTEXT} if the context associated with _command_queue_ and any of the semaphore objects in _sema_objects_ are not the same or if the context associated with _command_queue_ and that associated with events in _event_wait_list_ are not the same.

0 commit comments

Comments
 (0)