-
Notifications
You must be signed in to change notification settings - Fork 966
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ggml : add callback to abort ggml_graph_compute() (#328)
* mechanism to abort ggml_graph_compute * use pthread_cancel * forgot to commit ggml.h * static always_false() Co-authored-by: Georgi Gerganov <[email protected]> * accept callback data * proper function prototype * return exit status * remove pthread_cancel and join every thread * put abort_callback onto cplan * cplan abort_callback in ggml.c * make sure all threads abort --------- Co-authored-by: Georgi Gerganov <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters