mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-01-26 17:20:01 +00:00
* Merging mainline - WIP * Merging mainline - WIP AVX2 and CUDA appear to work. CUDA performance seems slightly (~1-2%) lower as it is so often the case with llama.cpp/ggml after some "improvements" have been made. * Merging mainline - fix Metal * Remove check --------- Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
16 lines
618 B
CMake
16 lines
618 B
CMake
set(TARGET llama-gguf-hash)
|
|
add_executable(${TARGET} gguf-hash.cpp)
|
|
install(TARGETS ${TARGET} RUNTIME)
|
|
|
|
# clibs dependencies
|
|
include_directories(deps/)
|
|
add_library(xxhash OBJECT deps/xxhash/xxhash.c deps/xxhash/xxhash.h)
|
|
target_link_libraries(${TARGET} PRIVATE xxhash)
|
|
add_library(sha1 OBJECT deps/sha1/sha1.c deps/sha1/sha1.h)
|
|
target_link_libraries(${TARGET} PRIVATE sha1)
|
|
add_library(sha256 OBJECT deps/sha256/sha256.c deps/sha256/sha256.h)
|
|
target_link_libraries(${TARGET} PRIVATE sha256)
|
|
|
|
target_link_libraries(${TARGET} PRIVATE ggml ${CMAKE_THREAD_LIBS_INIT})
|
|
target_compile_features(${TARGET} PRIVATE cxx_std_11)
|