Open canluhuang opened 3 months ago
I found the crash occur on some low level API(<= 29) Android devices, this is the crash stack: The stack after mapping:
xxx/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.8/include/bits/stdatomic.h:273 xxx/Android/maid/packages/maid_llm/src/llama_cpp/src/llama.cpp:18617 xxx/Android/maid/packages/maid_llm/src/maid_llm.cpp:33
And I found that this was caused by turning on an arm64-v8a compilation optimization flag in "maid_llm/android/CMakeLists.txt".
What will happen if this flag is not enabled?
From memory it will work without that enabled but it makes it VERY slow.
I found the crash occur on some low level API(<= 29) Android devices, this is the crash stack: The stack after mapping:
xxx/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.8/include/bits/stdatomic.h:273 xxx/Android/maid/packages/maid_llm/src/llama_cpp/src/llama.cpp:18617 xxx/Android/maid/packages/maid_llm/src/maid_llm.cpp:33
And I found that this was caused by turning on an arm64-v8a compilation optimization flag in "maid_llm/android/CMakeLists.txt".
What will happen if this flag is not enabled?