imx6 opencl zero copy

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx6 opencl zero copy

跳至解决方案
2,758 次查看
liujkian
Contributor I

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

标记 (3)
1 解答
1,512 次查看
andre_silva
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
5 回复数
1,513 次查看
andre_silva
NXP Employee
NXP Employee

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

0 项奖励
1,247 次查看
korabelnikov
Contributor III

Hi,

Is any updates or tips on it? How to make host<->opencl memory access faster?

 

 

data transfers take a half of computation time on imx6qp

0 项奖励
1,512 次查看
arthassin
Contributor II

I've tried this on imx6. Seems like the buffer is still copied. No any performance improvement was achieved.

0 项奖励
1,512 次查看
andre_silva
NXP Employee
NXP Employee

I´m checking this information and will be back soon with the answer.

0 项奖励
1,512 次查看
liujkian
Contributor I

anyone can help me?thanks

0 项奖励