From fdecc7a60ed0f804273befd08ccc2e3a0fdbdd98 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Mon, 24 Apr 2023 17:44:49 -0400 Subject: [PATCH] Force avx2 off if avx_only is checked. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41435e56..7fdf5394 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,10 +51,11 @@ message(STATUS "Qt 6 root directory: ${Qt6_ROOT_DIR}") set(LLAMA_BUILD_EXAMPLES ON CACHE BOOL "llama: build examples" FORCE) set(BUILD_SHARED_LIBS ON FORCE) +set(CMAKE_VERBOSE_MAKEFILE ON) option(GPT4ALL_AVX_ONLY OFF "Build for avx only") option(GPT4ALL_LOCALHOST OFF "Build for local install repo") if (GPT4ALL_AVX_ONLY) - set(LLAMA_AVX2 OFF "llama: enable AVX2" FORCE) + set(LLAMA_AVX2 OFF CACHE BOOL "llama: enable AVX2" FORCE) endif() add_subdirectory(llama.cpp)