Skip to content

Commit c083ca3

Browse files
threadpool: remove abort_callback from threadpool state
1 parent 4adbc75 commit c083ca3

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

@@ -19273,10 +19270,7 @@ static struct ggml_compute_threadpool * ggml_create_threadpool_impl(
1927319270
threadpool->n_threads_cur = tpp->n_threads;
1927419271
threadpool->poll = tpp->poll;
1927519272
threadpool->prio = tpp->prio;
19276-
19277-
threadpool->abort_callback = NULL;
19278-
threadpool->abort_callback_data = NULL;
19279-
threadpool->ec = GGML_STATUS_SUCCESS;
19273+
threadpool->ec = GGML_STATUS_SUCCESS;
1928019274
}
1928119275

1928219276
#ifndef GGML_USE_OPENMP

0 commit comments

Comments
 (0)