diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2024-05-31 14:17:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 14:17:10 +0300 |
commit | 0c27e6f62eea80140daf152d7b6c154466614e5c (patch) | |
tree | 331569973834b6747269ede5ecfc744db67a7e2f /tests | |
parent | 2e32f874e675f7bc5307cb7b4470ddbe090bab8f (diff) |
ggml : fix loongson compile warnings (#7537)
* ggml : fix loongson compile warnings
ggml-ci
* Fix loongarch quantize test fail.
Fix unexpected error introduced during rebase code.
* tests : disable json test due to lack of python on the CI node
ggml-ci
---------
Co-authored-by: junchao-loongson <zhaojunchao@loongson.cn>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 766a0175..cfa70731 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -129,8 +129,11 @@ llama_target_and_test(test-rope.cpp) llama_target_and_test(test-model-load-cancel.cpp LABEL "model") llama_target_and_test(test-autorelease.cpp LABEL "model") -llama_target_and_test(test-json-schema-to-grammar.cpp WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..) -target_include_directories(test-json-schema-to-grammar PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../examples/server) +# TODO: disabled on loongarch64 because the ggml-ci node lacks Python 3.8 +if (NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "loongarch64") + llama_target_and_test(test-json-schema-to-grammar.cpp WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..) + target_include_directories(test-json-schema-to-grammar PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../examples/server) +endif() # dummy executable - not installed get_filename_component(TEST_TARGET test-c.c NAME_WE) |