We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
We have two Malis on our board Odroid XU4 . We wish to create a large image, with one Mali creating half the image and the other Mali creating the other half. We also want the image to be memory mapped, as it is quite large. Can we map the image in such a way so that both Malis see at least the part they are working on, and, of course, the memory for the whole image is contiguous for the Cpu?
A rephrasing of the question might be: May different devices see the same shared memory with the host?
One possible way (but would like to confirm before moving forward), involves using buffers instead of images:
1. Create entire buffer in the context with CL_MEM_ALLOC_HOST_PTR
2. Create two disjoint sub-buffers. (did not see a way to create sub-images)
3. Map each sub-buffer on its own command queue.
However, this depends on when the memory gets allocated on the host:
Is memory allocated in step 1. or in step 3.? If in step 1, the memory will be contiguous on the host. If in step 3, ... ? I suspect in step 3, since that is when the host ptr becomes available.
Message was edited by: Norman Goldstein