summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorEve <139727413+netrunnereve@users.noreply.github.com>2023-10-03 16:53:15 +0000
committerGitHub <noreply@github.com>2023-10-03 19:53:15 +0300
commit017efe899d8fa76118aef88e963210d48da01172 (patch)
tree6418cb5ff0723e7b746f924f3bcb7bbb021f85fd /flake.nix
parentff5a3f0c09dfa0a8e0bf76d1748df5c6dee0e8ff (diff)
cmake : make LLAMA_NATIVE flag actually use the instructions supported by the processor (#3273)
* fix LLAMA_NATIVE * syntax * alternate implementation * my eyes must be getting bad... * set cmake LLAMA_NATIVE=ON by default * march=native doesn't work for ios/tvos, so disable for those targets. also see what happens if we use it on msvc * revert 8283237 and only allow LLAMA_NATIVE on x86 like the Makefile * remove -DLLAMA_MPI=ON --------- Co-authored-by: netrunnereve <netrunnereve@users.noreply.github.com>
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 433d3d94..cfc4776a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -62,7 +62,7 @@
mkdir -p $out/include
cp ${src}/llama.h $out/include/
'';
- cmakeFlags = [ "-DLLAMA_BUILD_SERVER=ON" "-DLLAMA_MPI=ON" "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_SKIP_BUILD_RPATH=ON" ];
+ cmakeFlags = [ "-DLLAMA_NATIVE=OFF" "-DLLAMA_BUILD_SERVER=ON" "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_SKIP_BUILD_RPATH=ON" ];
in
{
packages.default = pkgs.stdenv.mkDerivation {