Print system info in main

This commit is contained in:
Georgi Gerganov 2022-10-26 22:54:09 +03:00
parent 058a27b2e5
commit 2400660f3f
2 changed files with 4 additions and 1 deletions

View 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");

View 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;
}