Skip to content

Commit dba497e

Browse files
committed
cmake : restore LLAMA_LLAMAFILE_DEFAULT
1 parent fa0b4ad commit dba497e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ else()
4343
set(LLAMA_METAL_DEFAULT OFF)
4444
endif()
4545

46+
set(LLAMA_LLAMAFILE_DEFAULT ON)
47+
4648
# general
4749
option(BUILD_SHARED_LIBS "build shared libraries" OFF)
4850
option(LLAMA_STATIC "llama: static link libraries" OFF)

llama.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17653,6 +17653,11 @@ const char * llama_print_system_info(void) {
1765317653
s += "SSSE3 = " + std::to_string(ggml_cpu_has_ssse3()) + " | ";
1765417654
s += "VSX = " + std::to_string(ggml_cpu_has_vsx()) + " | ";
1765517655
s += "MATMUL_INT8 = " + std::to_string(ggml_cpu_has_matmul_int8()) + " | ";
17656+
#ifdef GGML_USE_LLAMAFILE
17657+
s += "LAMMAFILE = 1 | ";
17658+
#else
17659+
s += "LAMMAFILE = 0 | ";
17660+
#endif
1765617661

1765717662
return s.c_str();
1765817663
}

0 commit comments

Comments
 (0)