From: Georgi Gerganov Date: Wed, 26 Oct 2022 19:54:09 +0000 (+0300) Subject: Print system info in main X-Git-Tag: upstream/1.7.4~1895 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=2400660f3fc3c22966f0ffcc9cfaceba0302a2ef;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp Print system info in main --- diff --git a/examples/bench/bench.cpp b/examples/bench/bench.cpp index a9fdc819..d87bf37a 100644 --- a/examples/bench/bench.cpp +++ b/examples/bench/bench.cpp @@ -75,7 +75,7 @@ int main(int argc, char ** argv) { whisper_free(ctx); fprintf(stderr, "\n"); - fprintf(stderr, "system_info: n_threads = %d | %s\n", params.n_threads, whisper_print_system_info()); + fprintf(stderr, "system_info: n_threads = %d / %d | %s\n", params.n_threads, std::thread::hardware_concurrency(), whisper_print_system_info()); fprintf(stderr, "\n"); fprintf(stderr, "If you wish, you can submit these results here:\n"); diff --git a/examples/main/main.cpp b/examples/main/main.cpp index abbdee4b..0fe8efcf 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -412,5 +412,8 @@ int main(int argc, char ** argv) { whisper_print_timings(ctx); whisper_free(ctx); + fprintf(stderr, "\n"); + fprintf(stderr, "system_info: n_threads = %d / %d | %s\n", params.n_threads, std::thread::hardware_concurrency(), whisper_print_system_info()); + return 0; }