Skip to content

Commit 82074b5

Browse files
taronaeoAlekseiNikiforovIBM
authored andcommitted
devops: activate test-thread-safety for s390x
Signed-off-by: Aaron Teo <[email protected]>
1 parent d4e2650 commit 82074b5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/eval-callback/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
55
target_compile_features(${TARGET} PRIVATE cxx_std_17)
66

77
set(TEST_TARGET test-eval-callback)
8-
if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "s390x")
8+
if(NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "s390x")
99
add_test(NAME ${TEST_TARGET}
1010
COMMAND llama-eval-callback --hf-repo ggml-org/models --hf-file tinyllamas/stories260K.gguf --model stories260K.gguf --prompt hello --seed 42 -ngl 0)
1111
else()

tests/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,10 @@ llama_build_and_test(test-json-partial.cpp)
185185
llama_build_and_test(test-log.cpp)
186186
llama_build_and_test(test-regex-partial.cpp)
187187

188-
# disabled on s390x because this test mixes download and use steps, with no clean way to byteswap between them
189188
if (NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "s390x")
190189
llama_build_and_test(test-thread-safety.cpp ARGS -hf ggml-org/models -hff tinyllamas/stories15M-q4_0.gguf -ngl 99 -p "The meaning of life is" -n 128 -c 256 -ub 32 -np 4 -t 2)
190+
else()
191+
llama_build_and_test(test-thread-safety.cpp ARGS -hf taronaeo/tinyllamas -hff stories15M-be.Q4_0.gguf -ngl 99 -p "The meaning of life is" -n 128 -c 256 -ub 32 -np 4 -t 2)
191192
endif()
192193

193194
# this fails on windows (github hosted runner) due to curl DLL not found (exit code 0xc0000135)

0 commit comments

Comments
 (0)