ggerganov commited on
Commit
65621fb
·
unverified ·
1 Parent(s): c46c0dc

bench.wasm : print system info

Browse files
bindings/javascript/whisper.js CHANGED
The diff for this file is too large to render. See raw diff
 
examples/bench.wasm/emscripten.cpp CHANGED
@@ -28,6 +28,11 @@ void bench_main(size_t index) {
28
  return;
29
  }
30
 
 
 
 
 
 
31
  if (int ret = whisper_encode(ctx, 0, n_threads) != 0) {
32
  fprintf(stderr, "error: failed to encode model: %d\n", ret);
33
  return;
 
28
  return;
29
  }
30
 
31
+ {
32
+ fprintf(stderr, "\n");
33
+ fprintf(stderr, "system_info: n_threads = %d / %d | %s\n", n_threads, std::thread::hardware_concurrency(), whisper_print_system_info());
34
+ }
35
+
36
  if (int ret = whisper_encode(ctx, 0, n_threads) != 0) {
37
  fprintf(stderr, "error: failed to encode model: %d\n", ret);
38
  return;