mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-12 05:18:54 +02:00
whisper.android : add GGML_USE_CPU compile definition (#2945)
This commit add GGML_USE_CPU to built target library to enable CPU backend. The motivation for this that without the compile definition the CPU backend is not enabled and the app will crash when trying to use it.
This commit is contained in:
parent
226d344f56
commit
996581c5e2
@ -44,6 +44,8 @@ function(build_library target_name)
|
||||
${SOURCE_FILES}
|
||||
)
|
||||
|
||||
target_compile_definitions(${target_name} PUBLIC GGML_USE_CPU)
|
||||
|
||||
if (${target_name} STREQUAL "whisper_v8fp16_va")
|
||||
target_compile_options(${target_name} PRIVATE -march=armv8.2-a+fp16)
|
||||
set(GGML_COMPILE_OPTIONS -march=armv8.2-a+fp16)
|
||||
|
Loading…
Reference in New Issue
Block a user