From e3387e4655b841936afa14e43d3d644e23d3215d Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Tue, 12 Sep 2023 18:41:00 -0400 Subject: [PATCH] Add explanatory comment --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 209e8b1..633431b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,8 @@ option(LLAMA_BUILD "Build llama.cpp shared library and install alongside python if (LLAMA_BUILD) set(BUILD_SHARED_LIBS "On") if (APPLE) + # Need to disable these llama.cpp flags on Apple + # otherwise users may encounter invalid instruction errors set(LLAMA_AVX "Off" CACHE BOOL "llama: enable AVX" FORCE) set(LLAMA_AVX2 "Off" CACHE BOOL "llama: enable AVX2" FORCE) set(LLAMA_FMA "Off" CACHE BOOL "llama: enable FMA" FORCE)