Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android使用Vulkan推理模型,好像依然是跑在CPU上 #2846

Open
Jverson opened this issue Apr 25, 2024 · 1 comment
Open

Android使用Vulkan推理模型,好像依然是跑在CPU上 #2846

Jverson opened this issue Apr 25, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Jverson
Copy link

Jverson commented Apr 25, 2024

在Android上面用Vulkan推理模型,
ndk版本是android-ndk-r18b,
实际跑起来,用Kite工具查看,发现GPU的Usage一直是0。

看日志应该是获取到GPU信息了:
MNNJNI : VulkanBackend::device -- Mali-G57

像这种问题要如何分析原因?

@jxt1234
Copy link
Collaborator

jxt1234 commented Apr 29, 2024

  1. 有可能是有 Vulkan 不支持的算子,可以加 -DMNN_VULKAN_IMAGE=false ,换成 buffer 模式试试。
  2. 建议用 MNN-OpenCL 进行加速
  3. 有可能是工具的问题。

@jxt1234 jxt1234 added the question Further information is requested label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants