mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-09 20:21:08 +00:00
whisper.android : try to fix build
This commit is contained in:
parent
2770d46ef5
commit
4845b9ed09
@ -8,6 +8,7 @@ set(WHISPER_LIB_DIR ${CMAKE_SOURCE_DIR}/../../../../../../../)
|
|||||||
set(
|
set(
|
||||||
SOURCE_FILES
|
SOURCE_FILES
|
||||||
${WHISPER_LIB_DIR}/ggml.c
|
${WHISPER_LIB_DIR}/ggml.c
|
||||||
|
${WHISPER_LIB_DIR}/ggml-alloc.c
|
||||||
${WHISPER_LIB_DIR}/whisper.cpp
|
${WHISPER_LIB_DIR}/whisper.cpp
|
||||||
${CMAKE_SOURCE_DIR}/jni.c
|
${CMAKE_SOURCE_DIR}/jni.c
|
||||||
)
|
)
|
||||||
|
@ -2843,6 +2843,7 @@ struct whisper_state * whisper_init_state(whisper_context * ctx) {
|
|||||||
ggml_cgraph * gf = whisper_build_graph_decoder(*ctx, *state, state->decoders[0], NULL, n_tokens, n_past);
|
ggml_cgraph * gf = whisper_build_graph_decoder(*ctx, *state, state->decoders[0], NULL, n_tokens, n_past);
|
||||||
|
|
||||||
const size_t alloc_size = ggml_allocr_alloc_graph(alloc, gf) + tensor_alignment;
|
const size_t alloc_size = ggml_allocr_alloc_graph(alloc, gf) + tensor_alignment;
|
||||||
|
|
||||||
ggml_allocr_free(alloc);
|
ggml_allocr_free(alloc);
|
||||||
|
|
||||||
log("%s: compute buffer (decode) = %7.2f MB\n", __func__, (meta.size() + alloc_size) / 1024.0 / 1024.0);
|
log("%s: compute buffer (decode) = %7.2f MB\n", __func__, (meta.size() + alloc_size) / 1024.0 / 1024.0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user