Giter Site home page Giter Site logo

Comments (9)

sh1r0 avatar sh1r0 commented on July 18, 2024

For OpenBLAS with libs on armeabi-v7a, I had tested that the number of threads do effect the performance.

from caffe-android-demo.

zazd avatar zazd commented on July 18, 2024

I try it again just a moment ago. But it still seems nothing changed.

what I do:
export USE_OPENBLAS=1
export ANDROID_ABI="armeabi-v7a-hard-softfp with NEON"
./build.sh <path/to/ndk>

from caffe-android-demo.

sh1r0 avatar sh1r0 commented on July 18, 2024

Did you try the prebuilt libs in this repo before? I'm pretty sure that it works with openmp support.

from caffe-android-demo.

zazd avatar zazd commented on July 18, 2024

what is "the prebuilt libs "? and where can I find it?

from caffe-android-demo.

sh1r0 avatar sh1r0 commented on July 18, 2024

https://github.com/sh1r0/caffe-android-demo/tree/master/app/src/main/jniLibs

from caffe-android-demo.

zazd avatar zazd commented on July 18, 2024

Yes, I always do it, but find ineffective.
I run this demo in TK1, but find that it always run the program in one cpu core(and in other devices like rk3288 or xiaomi box3, it is ineffective when changed the number of openblas threads, too). I make a test in TK1 of Matrix multiplication. I find that even I make sure that I have 4 threads, the time it cost is the same as 1 thread. It seems that TK1 has only a core to calculate the floating point(I guess).

So, would you tell me, what device you use when it do effect the performance ?

from caffe-android-demo.

sh1r0 avatar sh1r0 commented on July 18, 2024

Sorry, I found that I made a mistake and thus caffe libs would be built with eigen by build.sh even USE_OPENBLAS=1 is set. Therefore, the prebuilt libs were all built with eigen instead of openblas. I fixed the bug in the dev branch of caffe-android-lib. As it is time-consuming to rebuild the libs for all abi, please build caffe-android-lib on your own. Sorry again for the inconvenience.

from caffe-android-demo.

zazd avatar zazd commented on July 18, 2024

Could tell me the mistake so I can build the lib by myself? I am not familiar with shell so I cannot find it.
Thank you!

from caffe-android-demo.

zazd avatar zazd commented on July 18, 2024

I find it. I delete build_eigen.sh in build.sh. And just use build_Openblas.sh. It works.
Thank you!

from caffe-android-demo.

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.