@@ -270,7 +270,9 @@ function gg_run_ctest_with_model_debug {
270270 local model; model=$( gg_get_model)
271271 cd build-ci-debug
272272 set -e
273+
273274 (LLAMACPP_TEST_MODELFILE=" $model " time ctest --output-on-failure -L model) 2>&1 | tee -a $OUT /${ci} -ctest.log
275+
274276 set +e
275277 cd ..
276278}
@@ -281,7 +283,15 @@ function gg_run_ctest_with_model_release {
281283 local model; model=$( gg_get_model)
282284 cd build-ci-release
283285 set -e
286+
284287 (LLAMACPP_TEST_MODELFILE=" $model " time ctest --output-on-failure -L model) 2>&1 | tee -a $OUT /${ci} -ctest.log
288+
289+ # test memory leaks
290+ # if [[ ! -z ${GG_BUILD_METAL} ]]; then
291+ # # TODO: this hangs for some reason ...
292+ # (time leaks -quiet -atExit -- ./bin/test-thread-safety -m $model --parallel 2 -t 2 -p "hello") 2>&1 | tee -a $OUT/${ci}-leaks.log
293+ # fi
294+
285295 set +e
286296 cd ..
287297}
@@ -860,20 +870,15 @@ if [ -z ${GG_BUILD_LOW_PERF} ]; then
860870fi
861871
862872ret=0
863- if [ -z ${GG_BUILD_SYCL} ]; then
864- # SYCL build breaks with debug build flags
865- test $ret -eq 0 && gg_run ctest_debug
866- fi
873+ test $ret -eq 0 && gg_run ctest_debug
867874test $ret -eq 0 && gg_run ctest_release
868875
869876if [ -z ${GG_BUILD_LOW_PERF} ]; then
870877 test $ret -eq 0 && gg_run embd_bge_small
871878 test $ret -eq 0 && gg_run rerank_tiny
872879
873880 if [ -z ${GG_BUILD_CLOUD} ] || [ ${GG_BUILD_EXTRA_TESTS_0} ]; then
874- if [ -z ${GG_BUILD_SYCL} ]; then
875- test $ret -eq 0 && gg_run test_scripts_debug
876- fi
881+ test $ret -eq 0 && gg_run test_scripts_debug
877882 test $ret -eq 0 && gg_run test_scripts_release
878883 fi
879884
@@ -884,9 +889,7 @@ if [ -z ${GG_BUILD_LOW_PERF} ]; then
884889 test $ret -eq 0 && gg_run pythia_2_8b
885890 # test $ret -eq 0 && gg_run open_llama_7b_v2
886891 fi
887- if [ -z ${GG_BUILD_SYCL} ]; then
888- test $ret -eq 0 && gg_run ctest_with_model_debug
889- fi
892+ test $ret -eq 0 && gg_run ctest_with_model_debug
890893 test $ret -eq 0 && gg_run ctest_with_model_release
891894 fi
892895fi
0 commit comments