Skip to content

Commit 63a0dad

Browse files
max-krasnyanskyfmz
authored andcommitted
threadpool: remove abort_callback from threadpool state
1 parent 307fece commit 63a0dad

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ggml/src/ggml.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,9 +1979,6 @@ struct ggml_compute_threadpool {
19791979
int32_t prio; // Scheduling priority
19801980
uint32_t poll; // Polling level (0 - no polling)
19811981

1982-
ggml_abort_callback abort_callback; // abort ggml_graph_compute when true
1983-
void * abort_callback_data;
1984-
19851982
enum ggml_status ec;
19861983
};
19871984

@@ -19286,10 +19283,7 @@ static struct ggml_compute_threadpool * ggml_create_threadpool_impl(
1928619283
threadpool->n_threads_cur = tpp->n_threads;
1928719284
threadpool->poll = tpp->poll;
1928819285
threadpool->prio = tpp->prio;
19289-
19290-
threadpool->abort_callback = NULL;
19291-
threadpool->abort_callback_data = NULL;
19292-
threadpool->ec = GGML_STATUS_SUCCESS;
19286+
threadpool->ec = GGML_STATUS_SUCCESS;
1929319287
}
1929419288

1929519289
#ifndef GGML_USE_OPENMP

0 commit comments

Comments
 (0)