mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-07-23 11:10:55 -05:00
* app : introduce the llama unified executable
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
* Use serve for server
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
* Hide completion and bench, add help command
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
* Remove STATIC
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
* Use -impl targets instead of -lib
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
* Revert "Remove STATIC"
This reverts commit cc44caccb9.
---------
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
21 lines
560 B
CMake
21 lines
560 B
CMake
# llama-bench-impl: benchmark logic, reusable by app
|
|
|
|
set(TARGET llama-bench-impl)
|
|
|
|
add_library(${TARGET} STATIC llama-bench.cpp)
|
|
|
|
target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_link_libraries(${TARGET} PUBLIC llama-common llama ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
# llama-bench executable
|
|
|
|
set(TARGET llama-bench)
|
|
|
|
add_executable(${TARGET} main.cpp)
|
|
target_link_libraries(${TARGET} PRIVATE llama-bench-impl)
|
|
target_compile_features(${TARGET} PRIVATE cxx_std_17)
|
|
|
|
if(LLAMA_TOOLS_INSTALL)
|
|
install(TARGETS ${TARGET} RUNTIME)
|
|
endif()
|