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


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?

More questions in this forum
There are no posts to show. This could be because there are no posts in this forum or due to a filter.