|Home > Optimizing OpenCL for Mali GPUs > Optimizing memory allocation > Sharing memory in an I/O coherent system|
With I/O coherent allocation, the driver is not required to perform cache clean or invalidate operations on memory objects, before or after they are used on the Mali™ GPU. If you are using a memory object on both the application processor and the Mali GPU, this can improve performance.
If your platform is I/O coherent, you can enable I/O coherent memory allocation
by passing the
CL_MEM_ALLOC_HOST_PTR flag to
If you are using OpenCL 2.0 or later and your platform is I/O coherent, use shared virtual memory. See F.8 Shared virtual memory.