From 4d32b4088e10ad37733cda7979706a3b8ffa1cb2 Mon Sep 17 00:00:00 2001 From: mqy Date: Mon, 19 Jun 2023 14:05:30 +0800 Subject: [PATCH] threading test: decrease a threshold value to avoid timeout --- tests/test-ggml-threading.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-ggml-threading.c b/tests/test-ggml-threading.c index d34be3ac6..30dddbeab 100644 --- a/tests/test-ggml-threading.c +++ b/tests/test-ggml-threading.c @@ -253,7 +253,7 @@ static int test_lifecycle(bool wait_on_done) { features | GGML_THREADING_FEATURE_PERF, /*stages_time*/ NULL); int elapsed = (int)ggml_time_ms() - start_time; - if (elapsed > 5 * n_threads) { + if (elapsed > 1 * n_threads) { printf("[test-ggml-threading] %s: it took %d ms to start %d worker " "thread(s), skip\n", __func__, elapsed, n_threads - 1); @@ -396,7 +396,7 @@ int main(void) { ggml_threading_stop(ctx); int elapsed_ms = t1 - t0; - if (elapsed_ms > 5 * n_threads) { + if (elapsed_ms > 1 * n_threads) { printf("[test-ggml-threading] warning: it took took %7.3f " "ms to start %2d worker thread(s). Too slow, skip.\n", 1.0 * elapsed_ms, n_threads - 1);