Skip to content

Commit 96442e7

Browse files
joshqtibashbaug
andauthored
cl_khr_external_memory_dma_buf: Clarify usage (KhronosGroup#1335)
* cl_khr_external_memory_dma_buf: Clarify usage * add asciidoctor attribute formatting. --------- Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
1 parent 9391e7c commit 96442e7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

api/opencl_runtime_layer.asciidoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6142,7 +6142,12 @@ handles, and adds as a property that may be specified when creating a buffer
61426142
or an image memory object from an external handle:
61436143

61446144
* {CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR_anchor} is a file descriptor for a Linux
6145-
dma_buf.
6145+
dma_buf. Once a memory object created from a dma_buf has been acquired with
6146+
{clEnqueueAcquireExternalMemObjectsKHR}, all access, including host access should
6147+
be done through OpenCL, until a call to {clEnqueueReleaseExternalMemObjectsKHR} has completed.
6148+
Any operations external to OpenCL on the dma_buf while it is acquired
6149+
may result in undefined behavior.
6150+
61466151
It owns a reference to the underlying memory resource represented by its
61476152
memory object.
61486153
endif::cl_khr_external_memory_dma_buf[]

0 commit comments

Comments
 (0)