Skip to content

Commit

Permalink
threadpool: remove abort_callback from threadpool state
Browse files Browse the repository at this point in the history
  • Loading branch information
max-krasnyansky committed Aug 24, 2024
1 parent 4adbc75 commit c083ca3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ggml/src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -1979,9 +1979,6 @@ struct ggml_compute_threadpool {
int32_t prio; // Scheduling priority
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;
};

Expand Down Expand Up @@ -19273,10 +19270,7 @@ static struct ggml_compute_threadpool * ggml_create_threadpool_impl(
threadpool->n_threads_cur = tpp->n_threads;
threadpool->poll = tpp->poll;
threadpool->prio = tpp->prio;

threadpool->abort_callback = NULL;
threadpool->abort_callback_data = NULL;
threadpool->ec = GGML_STATUS_SUCCESS;
threadpool->ec = GGML_STATUS_SUCCESS;
}

#ifndef GGML_USE_OPENMP
Expand Down

0 comments on commit c083ca3

Please sign in to comment.