mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-06-23 08:55:27 +00:00
ggml : add abort_callback for cpu backend (ggml/725)
* a way to use abort_callback with the cpu backend * whisper update
This commit is contained in:
committed by
Georgi Gerganov
parent
aa8a75e287
commit
f75e1197f1
2
ggml.c
2
ggml.c
@ -16560,7 +16560,7 @@ struct ggml_compute_state_shared {
|
||||
atomic_int node_n; // active graph node
|
||||
atomic_int node_task; // active graph node task phase
|
||||
|
||||
bool (*abort_callback)(void * data); // abort ggml_graph_compute when true
|
||||
ggml_abort_callback abort_callback; // abort ggml_graph_compute when true
|
||||
void * abort_callback_data;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user