In the OpenCl book By Action, I read the following:
CL_MEM_USE_HOST_PTR: A memory object will access the memory area indicated by the host pointer.
CL_MEM_COPY_HOST_PTR: A memory object will set the memory area indicated by the node pointer.
CL_MEM_ALLOC_HOST_PTR: The area in the memory available for the host will be allocated for use in data transfer.
I am completely confused by these three flags.
I would like to know at least how the first two are different.
1-In CL_MEM_USE_HOST_PTR The memory object will access the memory area, while in CL_MEM_COPY_HOST_PTR the memory object will set the memory area (specified by the host in both cases). How is this setting and access to others? Then the third again confuses me a lot.
2- Are they all associated with dedicated memory?
source share