Skip to content
New issue

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

bark.cpp cmake compile errors #209

Open
ClaudeStabile opened this issue Dec 7, 2024 · 1 comment
Open

bark.cpp cmake compile errors #209

ClaudeStabile opened this issue Dec 7, 2024 · 1 comment

Comments

@ClaudeStabile
Copy link

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

screenshot10

@hakangs
Copy link

hakangs commented Dec 7, 2024

duplicate of #206

ClaudeStabile added a commit to ClaudeStabile/bark.cpp that referenced this issue Dec 15, 2024
Fix for issue : bark.cpp cmake compile errors PABannier#209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants