imx6 opencl zero copy

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6 opencl zero copy

ソリューションへジャンプ
2,777件の閲覧回数
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

ラベル(5)
タグ(3)
1 解決策
1,531件の閲覧回数
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,532件の閲覧回数
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,266件の閲覧回数
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,531件の閲覧回数
arthassin
Contributor II

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

0 件の賞賛
1,531件の閲覧回数
andre_silva
NXP Employee
NXP Employee

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

0 件の賞賛
1,531件の閲覧回数
liujkian
Contributor I

anyone can help me?thanks

0 件の賞賛