Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callback to abort ggml_graph_compute() #328

Merged
merged 13 commits into from
Jul 11, 2023
Prev Previous commit
Next Next commit
static always_false()
Co-authored-by: Georgi Gerganov <[email protected]>
  • Loading branch information
CCLDArjun and ggerganov committed Jul 3, 2023
commit 21bdeead09139bc0918ad5bed93b24cdb7a7e372
3 changes: 2 additions & 1 deletion src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -16868,7 +16868,8 @@ static thread_ret_t ggml_graph_compute_thread(void * data) {
return GGML_EXIT_SUCCESS;
}

bool always_false() { return false; }
static bool always_false() { return false; }

void ggml_graph_compute(struct ggml_context * ctx, struct ggml_cgraph * cgraph) {
ggml_graph_compute_with_abort(ctx, cgraph, always_false);
}
Expand Down