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

cmake: add link dependencies to cmake find pkg #10433

Merged
merged 6 commits into from
Nov 20, 2024

Conversation

bandoti
Copy link
Contributor

@bandoti bandoti commented Nov 20, 2024

The CMake find package was missing various link libraries required for static builds. In addition, more GGML_* variables are set to reflect the llama build configuration.

@github-actions github-actions bot added the build Compilation issues label Nov 20, 2024
@slaren
Copy link
Collaborator

slaren commented Nov 20, 2024

Would it make sense to separate this into a file for ggml (that can be reused by other projects that depend on ggml) and another for llama.cpp?

@bandoti
Copy link
Contributor Author

bandoti commented Nov 20, 2024

Yes! Definitely. I can work on adding a separate find module in GGML library. The llama one will then mostly call the GGML find and add the llama target for linking.

On the GGML find module it'll add import targets for each backend.

@slaren
Copy link
Collaborator

slaren commented Nov 20, 2024

Sounds good, should I merge this for now?

@bandoti
Copy link
Contributor Author

bandoti commented Nov 20, 2024

Yes, please. 😊

The next PR I'll send will split them up.

Thanks.

@slaren slaren merged commit f95caa7 into ggerganov:master Nov 20, 2024
7 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Dec 20, 2024
* cmake pkg: find accelerate, openmp, memkind libs

* cmake pkg: find BLAS libs

* try BLAS_LIBRARIES instead

* Add BLAS link opts

* Add more link deps. and set GGML_ vars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Compilation issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants