如何在Snapdragon芯片组上在Android中使用DMA-BUF?
我有一个库,使用NDK开发它。我的一部分计算是在CPU和GPU和DSP之间共享的,因此我需要进行共享内存以减少设备之间的复制。我意识到有DMA-BUF堆是为了同一工作,但我无法将标题文件添加到我的项目中并将其链接到它。我下载了AOSP,但不确定下一步该怎么办。
I have a library, developing it using NDK. Part of my computation is shared between CPU and GPU and DSP, so I need to make shared memory to reduce the copying between devices. I realized that there is DMA-Buf heap which is for the same job but I cannot add the header files to my project and link it against it. I downloaded the AOSP but not sure what I should do next.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要的标题是
dma-heap.h
和可能也dma-buf.h
,取决于您要做的事情。它们在Android NDK中可用:The headers you need are
dma-heap.h
and possibly alsodma-buf.h
depending on what else you want to do. They are available in the Android NDK at: