We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
duplicate of #206
Sorry, something went wrong.
Update README.md
5c33256
Fix for issue : bark.cpp cmake compile errors PABannier#209
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: