From 633c502d56d2f65b68795a42d282d8da3b859c80 Mon Sep 17 00:00:00 2001 From: Britt Lewis Date: Thu, 18 Jan 2024 18:44:43 -0500 Subject: [PATCH] Resolve ggml_backend_sched_eval_callback visibility Fixes #5029 introduced in #4935 --- ggml-backend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml-backend.h b/ggml-backend.h index ab4ad773f..1bc25684f 100644 --- a/ggml-backend.h +++ b/ggml-backend.h @@ -154,7 +154,7 @@ extern "C" { // when ask == false, the scheduler is passing the node tensor to the user for observation // if the user returns false, the scheduler will cancel the graph compute // - typedef bool (*ggml_backend_sched_eval_callback)(struct ggml_tensor * t, bool ask, void * user_data); + GGML_API typedef bool (*ggml_backend_sched_eval_callback)(struct ggml_tensor * t, bool ask, void * user_data); // Initialize a backend scheduler GGML_API ggml_backend_sched_t ggml_backend_sched_new(ggml_backend_t * backends, ggml_backend_buffer_type_t * bufts, int n_backends, size_t graph_size);