AnsweredAssumed Answered

enqueueFillBuffer with CL_MEM_HOST_READ_ONLY or CL_MEM_HOST_NO_ACCESS

Question asked by settle on Aug 9, 2012
Latest reply on Aug 10, 2012 by nou

I found in that if a memory object has CL_MEM_HOST_READ_ONLY or CL_MEM_HOST_NO_ACCESS set, then it cannot be written to via enqueueWrite* or enqueueMap*.  Does that also mean that such a memory object cannot be written to via enqueueFillBuffer?

 

Also just to clarify things for me, can a cpu device (which is the host) and corresponding command queue enqueue a kernel that writes to those kinds of memory objects?

 

Sorry if I confused the properties of the above host access types, and I'd greatly appreciate any help.

Outcomes