-
Notifications
You must be signed in to change notification settings - Fork 78
Description
Hello,
I am trying to make bark.cpp, i did follow steps and at compile i have this error
cmake -DGGML_CUBLAS=ON ..
.../...
[ 36%] Building CXX object encodec.cpp/CMakeFiles/encodec.dir/encodec.cpp.o
/data/DISTRIBS/BARK/bark.cpp/encodec.cpp/encodec.cpp:146:22: warning: multi-character character constant [-Wmultichar]
146 | if (magic != ENCODEC_FILE_MAGIC) {
| ^~~~~~~~~~~~~~~~~~
/data/DISTRIBS/BARK/bark.cpp/encodec.cpp/encodec.cpp: In function ‘bool encodec_load_model_weights(std::ifstream&, encodec_model&, int)’:
/data/DISTRIBS/BARK/bark.cpp/encodec.cpp/encodec.cpp:215:47: error: too few arguments to function ‘ggml_backend* ggml_backend_cuda_init(int)’
215 | model.backend = ggml_backend_cuda_init();
| ~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /data/DISTRIBS/BARK/bark.cpp/encodec.cpp/encodec.cpp:7:
/data/DISTRIBS/BARK/bark.cpp/encodec.cpp/ggml/src/../include/ggml-cuda.h:23:25: note: declared here
23 | GGML_API ggml_backend_t ggml_backend_cuda_init(int device);
| ^~~~~~~~~~~~~~~~~~~~~~
/data/DISTRIBS/BARK/bark.cpp/encodec.cpp/encodec.cpp:469:89: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
469 | fprintf(stderr, "%s: tensor '%s' has wrong shape in model file: got [%lld, %lld, %lld], expected [%d, %d, %d]\n",
| ~~~^
| |
| long long int
| %ld
470 | func, name.data(), tensor->ne[0], tensor->ne[1], tensor->ne[2], ne[0], ne[1], ne[2]);
| ~~~~~~~~~~~~~
| |
| int64_t {aka long int}
/data/DISTRIBS/BARK/bark.cpp/encodec.cpp/encodec.cpp:469:95: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
469 | fprintf(stderr, "%s: tensor '%s' has wrong shape in model file: got [%lld, %lld, %lld], expected [%d, %d, %d]\n",
| ~~~^
| |
| long long int
| %ld
470 | func, name.data(), tensor->ne[0], tensor->ne[1], tensor->ne[2], ne[0], ne[1], ne[2]);
| ~~~~~~~~~~~~~
| |
| int64_t {aka long int}
/data/DISTRIBS/BARK/bark.cpp/encodec.cpp/encodec.cpp:469:101: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 7 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
469 | fprintf(stderr, "%s: tensor '%s' has wrong shape in model file: got [%lld, %lld, %lld], expected [%d, %d, %d]\n",
| ~~~^
| |
| long long int
| %ld
470 | func, name.data(), tensor->ne[0], tensor->ne[1], tensor->ne[2], ne[0], ne[1], ne[2]);
| ~~~~~~~~~~~~~
| |
| int64_t {aka long int}
gmake[2]: *** [encodec.cpp/CMakeFiles/encodec.dir/build.make:76 : encodec.cpp/CMakeFiles/encodec.dir/encodec.cpp.o] Erreur 1
