ComputeLibrary icon indicating copy to clipboard operation
ComputeLibrary copied to clipboard

Question about Shared Virtual Memory of ARM Mali GPU with opencl

Open vibecodingengine opened this issue 7 years ago • 1 comments

Hi, I saw the shared virtual memory feature on the arm mali opencl development guide and this blog and this slides So shared virtual memory is supported in several Mali GPUs like Mali G71. But It seems like it's not used in the ComputeLibrary.

So just curious about how it's gonna affect the performance.
Cos it seems like most applications like image processing etc, is computation heavy, and the overhead of memory map/unmap won't be too much?

Thank you in advance.

vibecodingengine avatar Dec 13 '18 22:12 vibecodingengine

Hi, SVM is used if available, as you can see here the CLTensorAllocator will try to allocate some SVM fine grain, if it fails it will try SVM coarse grain, if it fails again it will fallback to a regular CL buffer. However benefits of SVM are very much platform dependent, it's not always that full coherency brings performance improvement.

AnthonyBarbier avatar Dec 14 '18 09:12 AnthonyBarbier