Giter VIP home page Giter VIP logo

Comments (8)

xinyu391 avatar xinyu391 commented on May 12, 2024 2

@llj098
不支持native中调用RS,我们项目算法库都是C/C++的。如果native中调用Java的RS代码,性能就没优势了,尤其是数据量比较大时,还受Android应用内存大小的限制。
Android早期一个版本ndk中还有RS接口代码,后来又没了。

from paddle-lite.

cocodark avatar cocodark commented on May 12, 2024

我们计划使用openCL,如果你有这方面经验,欢迎加入我们

from paddle-lite.

llj098 avatar llj098 commented on May 12, 2024

@cocodark renderscript 应该比 opencl 好一些吧?有些测试看,opencl 表现不稳定,不少机器要比 CPU 还差

from paddle-lite.

allonli avatar allonli commented on May 12, 2024

rs我们尝试过了,问题比opencl还多。opencl我们是和arm同步信息后决定的。arm的acl框架使用的cl为gpu运算。

from paddle-lite.

allonli avatar allonli commented on May 12, 2024

另外gpu比cpu差是大部分android机型的实际表现,其实只有少数机型gpu可以跑赢cpu

from paddle-lite.

daquexian avatar daquexian commented on May 12, 2024

Pixel 表示不支持 OpenCL。。这个 rs 的库 自称有最高 60 倍加速,虽然这个数据肯定不能信,但 renderscript 真的会比纯 cpu 慢吗,在网上搜了一下也没有人报告用这个库比其他的 CPU 库慢🙈🙈

from paddle-lite.

xinyu391 avatar xinyu391 commented on May 12, 2024

OpenCL 确实要比CPU差点,部分亲儿子手机,还不带OCL库。其他的OCL库又不一致。
手机目前最高支持OCL1.2,仍有部分手机还是1.1
Arm的ACL里面ocl计算矩阵代码没有太多优化。三大手机GPU硬件特性不一样,要性能,就得分别优化。
RS也确实比较蛋疼。

from paddle-lite.

llj098 avatar llj098 commented on May 12, 2024

@xinyu391 RS 蛋疼的地方有哪些?

from paddle-lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.