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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vvuksanovic
Copy link

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.

ggml backends link only to ggml-base and ggml links to all backends.
Set up GNUInstallDirs before setting the installation directory of ggml backends
@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label Feb 12, 2025
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.

1 participant