-
Notifications
You must be signed in to change notification settings - Fork 29
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
移动端OPENCL后端模型业务支持 #52
Comments
业务侧常见问题支持opencl后端的手机众多,从gpu厂商到型号都有较大差异,在对接过程中也遇到极大的困难和挑战,可以将问题归类如下: OpenCL后端初始化:手机GPU特殊机型case
驱动
Kernel计算异常
用户使用
性能不符合预期前文提到:
|
业务侧问题解决和思路根据上面遇到的问题,除部分提到的解决思路外,大体解决方法有如下几类:
|
OpenCL Bug案例:解决和排查思路分析案例1:不解决:driver内存泄露
案例2:解决:特殊机型OpenCL兼容性case-by-case
案例3:解决:Conv随机中间结果
案例4:规避:gpu模型cpu yolo_box计算结果不对
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OpenCL后端背景
不少业务用OpenCL后端,是因为对其抱有一定的期望,包含不限于:
这也是很多业务考虑使用GPU的原因。
后端业务支持流程
OpenCL后端支持模型的一大考量就是性能,一般来说,在ADB shell环境获取到的性能会比Android APP环境的性能要好,而且所有APP的使用条件是不绑定大核的,因此性能自然会弱一些<10%。所以,算法同学在训练模型时,首先的考虑便是结构的确定,见下面流程:
The text was updated successfully, but these errors were encountered: