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

Support nix build '.#opencl' #2337

Merged
merged 1 commit into from
Jul 23, 2023
Merged

Support nix build '.#opencl' #2337

merged 1 commit into from
Jul 23, 2023

Conversation

Freed-Wu
Copy link
Contributor

@Freed-Wu Freed-Wu commented Jul 23, 2023

Fix #2335.

Now:

  • nix build '.#opencl' will use clblast to build llama-cpp
  • nix build or nix build '.#default' is same as before
$ nix build '.#opencl'
$ ldd result/lib/libggml_shared.so|rg clblast
4:      libclblast.so.1 => /nix/store/kxx2lz78dznbdkfrwq0lnpzvpakjhs08-clblast-1.6.0/lib/libclblast.so.1 (0x00007f72ee400000)
$ nix build
$ ldd result/lib/libggml_shared.so|rg blas
2:      libopenblas.so.0 => /nix/store/0cz1gdz17hk9myawjpycscm4dnhy7b3l-openblas-0.3.21/lib/libopenblas.so.0 (0x00007f8aecd90000)

@ggerganov ggerganov merged commit bc3ec2c into ggerganov:master Jul 23, 2023
4 checks passed
@Freed-Wu Freed-Wu deleted the clblast branch July 23, 2023 12:03
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

Successfully merging this pull request may close these issues.

Use clblast for the flake.nix
2 participants