llama.cpp/.devops/nix
Joseph Stahl e190f1fca6
nix: make xcrun visible in Nix sandbox for precompiling Metal shaders (#6118)
* Symlink to /usr/bin/xcrun so that `xcrun` binary
is usable during build (used for compiling Metal shaders)

Fixes https://github.com/ggerganov/llama.cpp/issues/6117

* cmake - copy default.metallib to install directory

When metal files are compiled to default.metallib, Cmake needs to add this to the install directory so that it's visible to llama-cpp

Also, update package.nix to use absolute path for default.metallib (it's not finding the bundle)

* add `precompileMetalShaders` flag (defaults to false) to disable precompilation of metal shader

Precompilation requires Xcode to be installed and requires disable sandbox on nix-darwin
2024-03-25 17:51:46 -07:00
..
apps.nix flake.nix : rewrite (#4605) 2023-12-29 16:42:26 +02:00
devshells.nix flake.nix : rewrite (#4605) 2023-12-29 16:42:26 +02:00
docker.nix nix: init singularity and docker images (#5056) 2024-02-22 11:44:10 -08:00
jetson-support.nix flake.nix: expose full scope in legacyPackages 2023-12-31 13:14:58 -08:00
nixpkgs-instances.nix nix: add a comment on the many nixpkgs-with-cuda instances 2024-01-22 12:19:30 +00:00
package.nix nix: make xcrun visible in Nix sandbox for precompiling Metal shaders (#6118) 2024-03-25 17:51:46 -07:00
scope.nix nix: init singularity and docker images (#5056) 2024-02-22 11:44:10 -08:00
sif.nix build(nix): Introduce flake.formatter for nix fmt (#5687) 2024-03-01 15:18:26 -08:00