Spaces:
Running
Running
examples : add null threadpool args where needed (ggml/0)
Browse files- ggml/src/ggml.c +2 -2
ggml/src/ggml.c
CHANGED
|
@@ -19710,8 +19710,8 @@ void ggml_threadpool_resume(struct ggml_threadpool * threadpool) {
|
|
| 19710 |
|
| 19711 |
struct ggml_cplan ggml_graph_plan(
|
| 19712 |
const struct ggml_cgraph * cgraph,
|
| 19713 |
-
|
| 19714 |
-
|
| 19715 |
|
| 19716 |
if (threadpool == NULL) {
|
| 19717 |
GGML_PRINT_DEBUG("Threadpool is not specified. Will create a disposable threadpool : n_threads %d\n", n_threads);
|
|
|
|
| 19710 |
|
| 19711 |
struct ggml_cplan ggml_graph_plan(
|
| 19712 |
const struct ggml_cgraph * cgraph,
|
| 19713 |
+
int n_threads,
|
| 19714 |
+
struct ggml_threadpool * threadpool) {
|
| 19715 |
|
| 19716 |
if (threadpool == NULL) {
|
| 19717 |
GGML_PRINT_DEBUG("Threadpool is not specified. Will create a disposable threadpool : n_threads %d\n", n_threads);
|