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: Fix ggml backend dependencies and installation #11818

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

vvuksanovic
Copy link
Contributor

This makes the following changes to ggml backends:

  1. Fix dependencies between ggml, ggml-base and backends. Linking a static build of libllama using cmake is currently broken because dependencies are listed in the wrong order in linker commands. Backends should only link to ggml-base, and ggml should link to ggml-base and the backends.
  2. Fix the installation directory of ggml backends. On Fedora (and probably some other linux distros) libllama, libggml and libggml-base are installed in the /lib64 directory, but ggml backends are installed in /lib. That is because ggml backends have their installation directory set before GNUInstallDirs is included.

@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label Feb 12, 2025
ggml backends link only to ggml-base and ggml links to all backends.
Set up GNUInstallDirs before setting the installation directory of ggml backends
@vvuksanovic vvuksanovic force-pushed the ggml-backend-cmake-fixes branch from 73f78ed to 9be945f Compare February 26, 2025 09:22
@ggerganov ggerganov merged commit b95c8af into ggml-org:master Feb 27, 2025
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ggml changes relating to the ggml tensor library for machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants