-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Illegal Instruction on Android 13 via Termux #967
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
Comments
Having the same issue, it seems to fail at calling
lscpu
Any compile flags i could try? |
Related ggml-org/llama.cpp#402 Disabling sve solved it for me.
|
Thanks so much for finding that. For anyone else, the steps to resolve this issue are as follows...
On my S23 Ultra (12 GB) running the JFK sample with the base.en model and 8 threads finishes in 3.2-3.5 seconds. |
Facing error Trying to build with clblast && openblas: cmake .. -DWHISPER_CLBLAST=ON -DWHISPER_OPENBLAS=ON error: relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used against symbol 'vtable for std::__ndk1::__shared_ptr_pointer<_cl_command_queue**, std::__ndk1::default_delete<_cl_command_queue*>, std::__ndk1::allocator<_cl_command_queue*>>'; recompile with -fPIC
|
Of note, the stream example generates an error when attempting to build like this.
|
I built whisper.cpp from source on a Galaxy S23 ultra (Android 13) in Termux, and when I run the following command...
whisper.cpp/main -f whisper.cpp/samples/jfk.wav -m whisper.cpp/models/ggml-base.en.bin -t 4
... it fails with the output below...
I also get illegal instruction when attempting to generate quantized models.
The exact same process worked as expected on my old Galaxy S8 (Android 9.0). Any idea what might cause the difference?
The commands that I used to build were...
The text was updated successfully, but these errors were encountered: