How to force a render script kernel to run on only GPU on Nexus5 device, android-4.4.4_r1

时光毁灭记忆、已成空白 提交于 2019-12-11 09:28:44

问题


I am working on Nexus 5 device running android-4.4.4_r1. I am using a simple gray scale image application which converts a color image to gray scale using render script kernel.

But I want to run the kernel only on the GPU. How can I make sure the kernel runs only on the GPU at run time from render script level of android frame work level. Please give me some pointers.

I need this to compare performance between CPU GPU processing of the kernel.

Regards Skuanr


回答1:


You can't force RS to run on any particular processor of the device. That is one of the design goals/decisions.



来源:https://stackoverflow.com/questions/25252898/how-to-force-a-render-script-kernel-to-run-on-only-gpu-on-nexus5-device-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!