Skip to content

Commit

Permalink
cmake : restore LLAMA_LLAMAFILE_DEFAULT
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Apr 25, 2024
1 parent fa0b4ad commit dba497e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit dba497e

Please sign in to comment.