threading test: less loops to avoid timeout

This commit is contained in:
mqy 2023-06-19 01:04:32 +08:00
parent 286c5b3014
commit 98728632c6

View file

@ -280,7 +280,7 @@ static int test_lifecycle(bool wait_on_done) {
ggml_threading_resume(ctx); ggml_threading_resume(ctx);
const int m = 2; const int m = 2;
const int n = 50; const int n = 10;
printf("[test-ggml-threading] %s: computing %d tensors (half wait)...\n", printf("[test-ggml-threading] %s: computing %d tensors (half wait)...\n",
__func__, m * n); __func__, m * n);
@ -296,7 +296,7 @@ static int test_lifecycle(bool wait_on_done) {
printf("[test-ggml-threading] %s: compute done, resuming...\n", __func__); printf("[test-ggml-threading] %s: compute done, resuming...\n", __func__);
ggml_threading_resume(ctx); ggml_threading_resume(ctx);
const int loops = 100; const int loops = 10;
printf("[test-ggml-threading] %s: try %d loops of suspend-resume ...\n", printf("[test-ggml-threading] %s: try %d loops of suspend-resume ...\n",
__func__, loops); __func__, loops);