threadpool: remove abort_callback from threadpool state

This commit is contained in:
Max Krasnyansky 2024-08-24 10:09:51 -07:00 committed by fmz
parent 307fece5d7
commit 63a0dad83c

View file

@ -1979,9 +1979,6 @@ struct ggml_compute_threadpool {
int32_t prio; // Scheduling priority int32_t prio; // Scheduling priority
uint32_t poll; // Polling level (0 - no polling) uint32_t poll; // Polling level (0 - no polling)
ggml_abort_callback abort_callback; // abort ggml_graph_compute when true
void * abort_callback_data;
enum ggml_status ec; enum ggml_status ec;
}; };
@ -19286,9 +19283,6 @@ static struct ggml_compute_threadpool * ggml_create_threadpool_impl(
threadpool->n_threads_cur = tpp->n_threads; threadpool->n_threads_cur = tpp->n_threads;
threadpool->poll = tpp->poll; threadpool->poll = tpp->poll;
threadpool->prio = tpp->prio; threadpool->prio = tpp->prio;
threadpool->abort_callback = NULL;
threadpool->abort_callback_data = NULL;
threadpool->ec = GGML_STATUS_SUCCESS; threadpool->ec = GGML_STATUS_SUCCESS;
} }