Comments (6)
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.
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.
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.
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.
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.
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)
- ArrayFire test builds are failing HOT 6
- Python Memory Management HOT 1
- Undefined reference to `clblast::StatusCode clblast::Gemm` on Windows with GCC with the C++ API HOT 4
- Segmentation fault with Octave-ocl HOT 5
- New CLBlast 1.6.0 Release is 3x previous library size HOT 4
- GEMM Batched Question HOT 2
- compiling CLBlast with my OpenCL drivers on Android HOT 3
- Multi-GPU, multi-threaded invocation of CLBlastSgemm seems to be unreliable. HOT 16
- GemmStridedBatched results question HOT 5
- make alltuner error HOT 7
- CL kernel preprocess cause compilation error HOT 2
- [Question] How to Install on Windows? HOT 2
- Cuda execution failed,when running clblast_sample_sgemm_cuda, "CUDA NVRTC error: nvrtcCompileProgram: NVRTC_ERROR_INVALID_OPTION" HOT 2
- [implement details] usm beheavior HOT 2
- CMake find package paths broken in MSYS2 HOT 3
- Binary releases on github are not valid tar.gz files
- Pyclblast float16 scalar conversion HOT 4
- Is it a good idea to use GCN cross lane instruction for optimization? HOT 15
- Do I have to cross-compile both opencl and clblast for android? HOT 2
- HGEMM performance in Adreno(tm) 740 is not faster than SGEMM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clblast.