Skip to content

Commit 9391e7c

Browse files
authored
clarify clEnqueueReleaseExternalMemObjectsKHR (KhronosGroup#1332)
* clarify clEnqueueReleaseExternalMemObjectsKHR * additional clarifications
1 parent 2d5761f commit 9391e7c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

api/opencl_runtime_layer.asciidoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6038,11 +6038,13 @@ include::{generated}/api/protos/clEnqueueReleaseExternalMemObjectsKHR.txt[]
60386038
application to query the status of this command or queue a wait for this
60396039
command to complete.
60406040

6041-
Applications must release the memory objects that are acquired using
6042-
{clEnqueueReleaseExternalMemObjectsKHR} before using them through any
6043-
commands in the other API.
6044-
This is to guarantee that the state of memory objects is up-to-date and they
6045-
are accessible to the other API.
6041+
Applications must release memory objects that were acquired using
6042+
{clEnqueueReleaseExternalMemObjectsKHR} before using any external memory
6043+
handles that were specified when the memory objects were created or accessing
6044+
the external memory that these handles represent outside of OpenCL, otherwise
6045+
behavior is undefined.
6046+
This is to guarantee that the state of memory objects is up-to-date and that
6047+
they are accessible outside of OpenCL.
60466048

60476049
The following restrictions shall apply:
60486050

@@ -7783,7 +7785,7 @@ in _mem_objects_ have completed prior to executing subsequent commands in the
77837785
other API which reference these objects.
77847786

77857787
This may be accomplished portably by calling {clWaitForEvents} with the
7786-
event object returned by *clEnqueueReleaseGLObjects,* or by calling
7788+
event object returned by {clEnqueueReleaseGLObjects}, or by calling
77877789
{clFinish}.
77887790
As above, some implementations may offer more efficient methods.
77897791

0 commit comments

Comments
 (0)