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

Using clEnqueueMapBuffer Mali-T880

Hi everyone,

I'd like to know what happens when I use the command clEnqueueMapBuffer to the hardware level.

All the buffer at CPU-side cache is invalidated?

And when I use the command clEnqueueUnmapMemObject,

All the buffer at GPU-side cache is invalidated?

Thanks!

Parents
  • Anthony Barbier,

    When to use the buffer shared between CPU and GPU (CL_MEM_ALLOC_HOST_PTR)?

    And when do not use?

    I did some tests and I found that worth to use in most cases I tested.

    Is there any material that describes with more detail how it works at architecture level (clEnqueueMapBuffer() and clEnqueueUnmapMemObject())?

    I'm planning to automatically mark the code with these functions (clEnqueueMapBuffer() and clEnqueueUnmapMemObject()) during compile time - optimization.

    But before I'm analysing if it worth.

    Thanks for helping me!!!

Reply
  • Anthony Barbier,

    When to use the buffer shared between CPU and GPU (CL_MEM_ALLOC_HOST_PTR)?

    And when do not use?

    I did some tests and I found that worth to use in most cases I tested.

    Is there any material that describes with more detail how it works at architecture level (clEnqueueMapBuffer() and clEnqueueUnmapMemObject())?

    I'm planning to automatically mark the code with these functions (clEnqueueMapBuffer() and clEnqueueUnmapMemObject()) during compile time - optimization.

    But before I'm analysing if it worth.

    Thanks for helping me!!!

Children