Skip to content

Remove intel mkl from flake.nix due to missing files - #2277

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
Freed-Wu:flake
Jul 21, 2023
Merged

ggerganov merged 1 commit into
ggml-org:masterfrom
Freed-Wu:flake

Conversation

@Freed-Wu

Copy link
Copy Markdown
Contributor

NixOS's mkl misses some libraries like mkl-sdl.pc. See #2261
Currently NixOS doesn't have intel C compiler (icx, icpx). See https://discourse.nixos.org/t/packaging-intel-math-kernel-libraries-mkl/975
So remove it from flake.nix

Some minor changes:

Now build it for NixOS on x86_64-linux will use openBlas:

$ nix build --impure
$ tree result/
 result
├──  bin
│  ├──  baby-llama
│  ├──  benchmark
│  ├──  convert-lora-to-ggml.py
│  ├──  convert.py
│  ├──  embd-input-test
│  ├──  embedding
│  ├──  llama
│  ├──  llama-server
│  ├──  perplexity
│  ├──  quantize
│  ├──  quantize-stats
│  ├──  save-load-state
│  ├──  simple
│  ├──  test-grad0
│  ├──  test-quantize-fns
│  ├──  test-quantize-perf
│  ├──  test-sampling
│  ├──  test-tokenizer-0
│  └──  train-text-from-scratch
└──  lib
   ├──  libembdinput.so
   ├──  libggml_shared.so
   └──  libllama.so
$ ldd result/bin/llama | rg openblas
7:      libopenblas.so.0 => /nix/store/0cz1gdz17hk9myawjpycscm4dnhy7b3l-openblas-0.3.21/lib/libopenblas.so.0 (0x00007f2ea7860000)

I have tested it can work for NixOS on x86_64-linux.

NixOS's mkl misses some libraries like mkl-sdl.pc. See #2261
Currently NixOS doesn't have intel C compiler (icx, icpx). See https://discourse.nixos.org/t/packaging-intel-math-kernel-libraries-mkl/975
So remove it from flake.nix

Some minor changes:

- Change pkgs.python310 to pkgs.python3 to keep latest
- Add pkgconfig to devShells.default
- Remove installPhase because we have `cmake --install` from #2256
@ggerganov
ggerganov merged commit 78a3d13 into ggml-org:master Jul 21, 2023
@Freed-Wu
Freed-Wu deleted the flake branch July 22, 2023 04:40
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
…g#2277)

NixOS's mkl misses some libraries like mkl-sdl.pc. See ggml-org#2261
Currently NixOS doesn't have intel C compiler (icx, icpx). See https://discourse.nixos.org/t/packaging-intel-math-kernel-libraries-mkl/975
So remove it from flake.nix

Some minor changes:

- Change pkgs.python310 to pkgs.python3 to keep latest
- Add pkgconfig to devShells.default
- Remove installPhase because we have `cmake --install` from ggml-org#2256
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
…g#2277)

NixOS's mkl misses some libraries like mkl-sdl.pc. See ggml-org#2261
Currently NixOS doesn't have intel C compiler (icx, icpx). See https://discourse.nixos.org/t/packaging-intel-math-kernel-libraries-mkl/975
So remove it from flake.nix

Some minor changes:

- Change pkgs.python310 to pkgs.python3 to keep latest
- Add pkgconfig to devShells.default
- Remove installPhase because we have `cmake --install` from ggml-org#2256
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
…g#2277)

NixOS's mkl misses some libraries like mkl-sdl.pc. See ggml-org#2261
Currently NixOS doesn't have intel C compiler (icx, icpx). See https://discourse.nixos.org/t/packaging-intel-math-kernel-libraries-mkl/975
So remove it from flake.nix

Some minor changes:

- Change pkgs.python310 to pkgs.python3 to keep latest
- Add pkgconfig to devShells.default
- Remove installPhase because we have `cmake --install` from ggml-org#2256
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
…g#2277)

NixOS's mkl misses some libraries like mkl-sdl.pc. See ggml-org#2261
Currently NixOS doesn't have intel C compiler (icx, icpx). See https://discourse.nixos.org/t/packaging-intel-math-kernel-libraries-mkl/975
So remove it from flake.nix

Some minor changes:

- Change pkgs.python310 to pkgs.python3 to keep latest
- Add pkgconfig to devShells.default
- Remove installPhase because we have `cmake --install` from ggml-org#2256
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
…g#2277)

NixOS's mkl misses some libraries like mkl-sdl.pc. See ggml-org#2261
Currently NixOS doesn't have intel C compiler (icx, icpx). See https://discourse.nixos.org/t/packaging-intel-math-kernel-libraries-mkl/975
So remove it from flake.nix

Some minor changes:

- Change pkgs.python310 to pkgs.python3 to keep latest
- Add pkgconfig to devShells.default
- Remove installPhase because we have `cmake --install` from ggml-org#2256
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.

2 participants