From: Georgi Gerganov Date: Mon, 19 Feb 2024 12:44:46 +0000 (+0200) Subject: build : update CBLAS flags + fix unused var warning (whisper/0) X-Git-Tag: upstream/0.0.1642~934 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=80a6a836d06ce6cbff35c4e5ab4c2d53c45d9e37;p=pkg%2Fggml%2Fsources%2Fggml build : update CBLAS flags + fix unused var warning (whisper/0) --- diff --git a/examples/whisper/whisper.cpp b/examples/whisper/whisper.cpp index 536adc33..38c827d2 100644 --- a/examples/whisper/whisper.cpp +++ b/examples/whisper/whisper.cpp @@ -1616,8 +1616,7 @@ static bool whisper_encode_external(const whisper_state & wstate) { static struct ggml_cgraph * whisper_build_graph_conv( whisper_context & wctx, - whisper_state & wstate, - const int mel_offset) { + whisper_state & wstate) { const auto & model = wctx.model; const auto & hparams = model.hparams; @@ -2001,7 +2000,7 @@ static bool whisper_encode_internal( { auto & alloc = wstate.alloc_conv.alloc; - ggml_cgraph * gf = whisper_build_graph_conv(wctx, wstate, mel_offset); + ggml_cgraph * gf = whisper_build_graph_conv(wctx, wstate); if (!ggml_gallocr_alloc_graph(alloc, gf)) { // should never happen as we pre-allocate the memory @@ -3024,7 +3023,7 @@ struct whisper_state * whisper_init_state(whisper_context * ctx) { { bool ok = whisper_allocr_graph_init(state->alloc_conv, ctx->backend, [&]() { - return whisper_build_graph_conv(*ctx, *state, 0); + return whisper_build_graph_conv(*ctx, *state); }); if (!ok) {