From: Georgi Gerganov Date: Wed, 26 Jun 2024 17:11:38 +0000 (+0300) Subject: whisper : disable CUDA mel + fix FFMPEG X-Git-Tag: upstream/0.0.1642~564 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=fb19b676ccf53ac9f48a4ac8aeecd2b3921e55ad;p=pkg%2Fggml%2Fsources%2Fggml whisper : disable CUDA mel + fix FFMPEG --- diff --git a/examples/common.cpp b/examples/common.cpp index 25a0272c..2e3a4549 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -30,7 +30,7 @@ extern bool ffmpeg_decode_audio(const std::string & ifname, std::vector #endif // Function to check if the next argument exists -std::string get_next_arg(int& i, int argc, char** argv, const std::string& flag, gpt_params& params) { +static std::string get_next_arg(int& i, int argc, char** argv, const std::string& flag, gpt_params& params) { if (i + 1 < argc && argv[i + 1][0] != '-') { return argv[++i]; } else { @@ -346,7 +346,7 @@ std::vector gpt_tokenize(const gpt_vocab & vocab, const std::stri return tokens; } -std::vector parse_tokens_from_string(const std::string& input, char delimiter) { +static std::vector parse_tokens_from_string(const std::string& input, char delimiter) { std::vector output; std::stringstream ss(input); std::string token; @@ -358,7 +358,7 @@ std::vector parse_tokens_from_string(const std::string& input, ch return output; } -std::map> extract_tests_from_file(const std::string & fpath_test){ +static std::map> extract_tests_from_file(const std::string & fpath_test){ if (fpath_test.empty()){ fprintf(stderr, "%s : No test file found.\n", __func__); return std::map>();