cl_mem_flags | Description |
---|---|
|
This flag specifies that the memory object will be read and written by a kernel. This is the default. |
|
This flag specifies that the memory object will be written but not read by a kernel. Reading from a buffer or image object created with
|
|
This flag specifies that the memory object is a read-only memory object when used inside a kernel. Writing to a buffer or image object created with
|
|
This flag is valid only if OpenCL implementations are allowed to cache the buffer contents pointed to by The result of OpenCL commands that operate on multiple buffer objects created with the same |
|
This flag specifies that the application wants the OpenCL implementation to allocate memory from host accessible memory.
|
|
This flag is valid only if
|
|
This flag specifies that the host will only write to the memory object (using OpenCL APIs that enqueue a write or a map for write). This can be used to optimize write access from the host (e.g. enable write-combined allocations for memory objects for devices that communicate with the host over a system bus such as PCIe). |
|
This flag specifies that the host will only read the memory object (using OpenCL APIs that enqueue a read or a map for read).
|
|
This flag specifies that the host will not read or write the memory object.
|