Hi, i have a question about the opencl map(clEnqueueMapBuffer ) mechanism. if a opencl host program allocs a block of memory by itself (such as malloc) not clCreateBuffer,then it calls clEnqueueMapBuffer to map the memory to gpu.can gpu use the mapped memory directly (or DMA )without any data copy (or DMA transfer )to vivante opencl runtime lib or to gpu global memory. Any Tips?thanks
已解决! 转到解答。
I just checked and cl_mem must be used to allocate memory clEnqueueMapBuffer, there isn´t another way to do fill cpu buffers to be used in gpu, so, zero copies in this case is not possible.
regards,
Andre
I just checked and cl_mem must be used to allocate memory clEnqueueMapBuffer, there isn´t another way to do fill cpu buffers to be used in gpu, so, zero copies in this case is not possible.
regards,
Andre