GithubHelp home page GithubHelp logo

Comments (6)

CNugteren avatar CNugteren commented on June 27, 2024

I am not too familiar with Android either, but perhaps you can run your build-system in a verbose manner? So after running CMake, you'll probably run something like make or nmake, right? In that case, can you for example run make VERBOSE=1? It will then print out the commands which are actually used, so the first thing to check is whether the -std=c++11 flag is actually missing: perhaps it is some other problem.

from clblast.

zazd avatar zazd commented on June 27, 2024

I try it. But everything seems ok, and I can not find what wrong with it. However I override "std::to_string" and the same functions such as "stoi", and it works. Thank you for your help.

from clblast.

CNugteren avatar CNugteren commented on June 27, 2024

What do you mean, you 'override' them? Did you define and implement those functions yourself? Can you post the complete solution in case other people also encounter this problem? Thanks!

from clblast.

zazd avatar zazd commented on June 27, 2024

Yes,In cross compile a lot of people encounter the error that 'to_string' is not a member of 'std', the same as "stoi","stof","stod" and so on. Even if they use -std=c++11 to compile these functions, they can not solve it and find nothing about the reason. So I fulfill these functions instead of using them. Because they are too simple. Such as
namespace clblast {
string to_string(int value) {
stringstream stm;
stm << value;
return stm.str();
}
}
to instead of std::to_string(value).

However, I cross-compile CLBlast successfully, but in arm, when running the function, likes CLBlast::Gemm, it failed. I am now looking for the reason. But can CLBlast run in the arm?

from clblast.

CNugteren avatar CNugteren commented on June 27, 2024

OK, thanks for the details, hopefully that helps others trying to cross-compile for Android.

The library has been tested on ARM before with success, but I never tried Android. Note that if the used device (Mali, Adreno, ...) is not tuned for, performance might be sub-optimal. But let's first try to get it to work. First step would be to compile the tests (cmake -DTESTS=ON ..) and run them (e.g. ./clblast_test_xaxpy). Can you perhaps open a separate issue and post the results of one or more of the failing tests, along with the device you are targeting?

from clblast.

CNugteren avatar CNugteren commented on June 27, 2024

I know it's been a while, but I've now implemented the missing functions (when using GCC's gnustl_static instead of LLVM's c++_static) in the repository. They are in a header which is not included by default: 00b5771.

from clblast.

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.