[Beignet] CL_MEM_USE_HOST_PTR involve extra copy?
spring_wind
spring_wind at yeah.net
Tue Dec 2 04:37:37 PST 2014
Hi:
Intel opencl optimization guide said using CL_MEM_USE_HOST_PTR can avoid extra copy between CPU and GPU, but I noticed that in beignet's implementation source it was not like that:
/* Copy the data if required */
if (flags & CL_MEM_COPY_HOST_PTR || flags & CL_MEM_USE_HOST_PTR)
cl_buffer_subdata(mem->bo, 0, sz, data);
Could someone give me an answer?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20141202/0162189e/attachment.html>
More information about the Beignet
mailing list