This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Zero Copy Buffer Allocation on Arm Mali MidGard GPUs Opencl1.2

I am trying to allocate a zero copy buffer on  Mali Midgard GPUs . The OpenCL 1.2 guide mentions that the only sure shot way to do this is to use the flag

CL_MEM_ALLOC_HOST_PTR

SO, First we need to allocate the Gpu memory using the flag and then perform map and unmap operations. The issue is I wish to do it the other way around i.e. first allocate CPU memory ( c arrays etc.) and then just point its pointer to the clBuffer flag.  In Intel Integrated Graphics, the way I do this is by first allocating a memory in proper aligned form - alignment = 4096 and size = multiple of 64 bytes. Then, I use the flag USE_MEM_HOST_PTR and map unmap operations to do zero copy operations. How to do the same for arm mali gpus and cpus for hybrid operations. Kindly help. And What's the alignment requirement for Arm GPUs?