]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Print system info in main
authorGeorgi Gerganov <redacted>
Wed, 26 Oct 2022 19:54:09 +0000 (22:54 +0300)
committerGeorgi Gerganov <redacted>
Wed, 26 Oct 2022 19:54:09 +0000 (22:54 +0300)
examples/bench/bench.cpp
examples/main/main.cpp

index a9fdc819148af96ba24ce442703a5dd304b128eb..d87bf37a547663e317ea6934248a52be59c5eb39 100644 (file)
@@ -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");
index abbdee4b3d19fa82236827a7133853edd4e4c042..0fe8efcfc82a10292f70e78104e6d1babaaf09a8 100644 (file)
@@ -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;
 }