Fix compilation error found in tflite test (#3820)

ps. https://github.com/bytecodealliance/wasm-micro-runtime/pull/3817
This commit is contained in:
liang.he
2024-10-08 09:54:39 +08:00
committed by GitHub
parent 6b4d8aae2a
commit 30539bf50c
12 changed files with 139 additions and 51 deletions

View File

@ -4,13 +4,21 @@
include(FetchContent)
set(LLAMA_SOURCE_DIR "${WAMR_ROOT_DIR}/core/deps/llama.cpp")
FetchContent_Declare(
llamacpp
GIT_REPOSITORY https://github.com/ggerganov/llama.cpp.git
GIT_TAG b3573
SOURCE_DIR ${LLAMA_SOURCE_DIR}
)
if(EXISTS ${LLAMA_SOURCE_DIR})
message("Use existed source code under ${LLAMA_SOURCE_DIR}")
FetchContent_Declare(
llamacpp
SOURCE_DIR ${LLAMA_SOURCE_DIR}
)
else()
message("download source code and store it at ${LLAMA_SOURCE_DIR}")
FetchContent_Declare(
llamacpp
GIT_REPOSITORY https://github.com/ggerganov/llama.cpp.git
GIT_TAG b3573
SOURCE_DIR ${LLAMA_SOURCE_DIR}
)
endif()
set(LLAMA_BUILD_TESTS OFF)
set(LLAMA_BUILD_EXAMPLES OFF)