summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--llama.cpp5
2 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 425100ff..477c5b57 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,6 +43,8 @@ else()
set(LLAMA_METAL_DEFAULT OFF)
endif()
+set(LLAMA_LLAMAFILE_DEFAULT ON)
+
# general
option(BUILD_SHARED_LIBS "build shared libraries" OFF)
option(LLAMA_STATIC "llama: static link libraries" OFF)
diff --git a/llama.cpp b/llama.cpp
index 0c01a353..d728bd49 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -17653,6 +17653,11 @@ const char * llama_print_system_info(void) {
s += "SSSE3 = " + std::to_string(ggml_cpu_has_ssse3()) + " | ";
s += "VSX = " + std::to_string(ggml_cpu_has_vsx()) + " | ";
s += "MATMUL_INT8 = " + std::to_string(ggml_cpu_has_matmul_int8()) + " | ";
+#ifdef GGML_USE_LLAMAFILE
+ s += "LAMMAFILE = 1 | ";
+#else
+ s += "LAMMAFILE = 0 | ";
+#endif
return s.c_str();
}