Skip to content

Commit f65e8b1

Browse files
committed
Fix library load - update readme
1 parent 5a3b467 commit f65e8b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/bench/bench.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "whisper.h"
22
#ifdef BINDINGS_FLAT
33
#include "whisper-flat.h"
4+
#include "../ggml/src/ggml-flat.h"
45
#endif
56

67
#include <cstdio>
@@ -65,8 +66,11 @@ static int whisper_bench_full(const whisper_params & params) {
6566
// whisper init
6667

6768
#ifdef BINDINGS_FLAT
68-
whisper_flat_backend_load_all();
69-
#endif
69+
// whisper_flat_backend_load_all();
70+
ggml_backend_try_load_best("rpc", nullptr);
71+
ggml_backend_try_load_best("blas", nullptr);
72+
ggml_backend_try_load_best("cpu", nullptr);
73+
#endif
7074

7175
struct whisper_context_params cparams = whisper_context_default_params();
7276

0 commit comments

Comments
 (0)