cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

evk8888
Journeyman III

clcreatebuffer!

using CL_MEM_COPY_HOST_PTR

Hi, this way of creating a buffer for the kernel also loads the data from the host to the buffer and we dont have to enqueue the data using the command queue. 

cl_mem input1 = clCreateBuffer(context,CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR ,sizeof(float)*count ,data ,NULL);

is there a similar way where we can read/copy the data from the (buffer)accelerator to the host without using command queues (clEnqueueReadBuffer)?
thanks guys..


0 Likes
2 Replies
nou
Exemplar

no

0 Likes

thanks...

0 Likes