mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 06:10:29 +01:00
ggml : fix n_threads_cur initialization with one thread
This commit is contained in:
parent
6443ddd985
commit
f9196c9174
@ -20239,6 +20239,7 @@ enum ggml_status ggml_graph_compute(struct ggml_cgraph * cgraph, struct ggml_cpl
|
|||||||
ggml_graph_compute_thread(&threadpool->workers[omp_get_thread_num()]);
|
ggml_graph_compute_thread(&threadpool->workers[omp_get_thread_num()]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
threadpool->n_threads_cur = 1;
|
||||||
ggml_graph_compute_thread(&threadpool->workers[0]);
|
ggml_graph_compute_thread(&threadpool->workers[0]);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user