pixel transfer and reading back using opencl on IMX 6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

pixel transfer and reading back using opencl on IMX 6

1,030 Views
anusreesarkar
Contributor I

hi,

I was trying out a simple program in OpenCL which involved assigning the values of one memory object to another using a kernel code. However this only is taking around 10 to 12 ms. Also reading back the data using zero copy mechanism is taking at least 15 ms. Is there a way to reduce these timings?

P.S. The size of the image buffer is 1024x1024

0 Kudos
Reply
1 Reply

933 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Anusree,

Are you using GPU vectors for initialize the CPU memory or GPU memory?, also you can copy the output in GPU memory to CPU memory with command clEnqueueReadBuffer, this should improve the performance.

In any case you are using atomic functions, these are currently are disable from OpenCL compiler, . If the kernel use it, the compiler will prompt error.

Examples can be found on the Graphics reference manual on the BSP documentation.

Hope this helps

0 Kudos
Reply