forked from extern/whisper.cpp
bench.wasm : print system info
This commit is contained in:
parent
8de452c18b
commit
fafd78945d
File diff suppressed because one or more lines are too long
@ -28,6 +28,11 @@ void bench_main(size_t index) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
fprintf(stderr, "system_info: n_threads = %d / %d | %s\n", n_threads, std::thread::hardware_concurrency(), whisper_print_system_info());
|
||||||
|
}
|
||||||
|
|
||||||
if (int ret = whisper_encode(ctx, 0, n_threads) != 0) {
|
if (int ret = whisper_encode(ctx, 0, n_threads) != 0) {
|
||||||
fprintf(stderr, "error: failed to encode model: %d\n", ret);
|
fprintf(stderr, "error: failed to encode model: %d\n", ret);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user