threading test: decrease a threshold value to avoid timeout
This commit is contained in:
parent
44b831dc59
commit
4d32b4088e
1 changed files with 2 additions and 2 deletions
|
@ -253,7 +253,7 @@ static int test_lifecycle(bool wait_on_done) {
|
||||||
features | GGML_THREADING_FEATURE_PERF,
|
features | GGML_THREADING_FEATURE_PERF,
|
||||||
/*stages_time*/ NULL);
|
/*stages_time*/ NULL);
|
||||||
int elapsed = (int)ggml_time_ms() - start_time;
|
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 "
|
printf("[test-ggml-threading] %s: it took %d ms to start %d worker "
|
||||||
"thread(s), skip\n",
|
"thread(s), skip\n",
|
||||||
__func__, elapsed, n_threads - 1);
|
__func__, elapsed, n_threads - 1);
|
||||||
|
@ -396,7 +396,7 @@ int main(void) {
|
||||||
ggml_threading_stop(ctx);
|
ggml_threading_stop(ctx);
|
||||||
|
|
||||||
int elapsed_ms = t1 - t0;
|
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 "
|
printf("[test-ggml-threading] warning: it took took %7.3f "
|
||||||
"ms to start %2d worker thread(s). Too slow, skip.\n",
|
"ms to start %2d worker thread(s). Too slow, skip.\n",
|
||||||
1.0 * elapsed_ms, n_threads - 1);
|
1.0 * elapsed_ms, n_threads - 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue