From 8b42b8718a55355672f126b6742e0f7d35e2aa62 Mon Sep 17 00:00:00 2001 From: Nexesenex <124105151+Nexesenex@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:02:38 +0200 Subject: [PATCH] NATIVE arch option editable --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2c758a1e750d..f30df0b1e7558 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(LLAMA_STANDALONE ON) set(BUILD_SHARED_LIBS_DEFAULT ON) set(LLAMA_STATIC OFF) -set(LLAMA_NATIVE OFF) set(LLAMA_LTO OFF) set(LLAMA_ALL_WARNINGS OFF) set(LLAMA_ALL_WARNINGS_3RD_PARTY OFF) @@ -64,6 +63,7 @@ set(LLAMA_SCHED_MAX_COPIES "2" CACHE STRING "llama: max input copies for pipeli option(LLAMA_OPENMP "llama: use OpenMP" ON) option(LLAMA_LLAMAFILE "llama: use llamafile SGEMM" ${LLAMA_LLAMAFILE_DEFAULT}) option(LLAMA_CCACHE "llama: use ccache if available" ON) +option(LLAMA_NATIVE "llama: enable -march=native flag" OFF) # # Compile flags