summaryrefslogtreecommitdiff
path: root/ggml/include
diff options
context:
space:
mode:
Diffstat (limited to 'ggml/include')
-rw-r--r--ggml/include/ggml-backend.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ggml/include/ggml-backend.h b/ggml/include/ggml-backend.h
index 5f3f1e28..2975d43a 100644
--- a/ggml/include/ggml-backend.h
+++ b/ggml/include/ggml-backend.h
@@ -208,6 +208,9 @@ extern "C" {
// Set a callback to be called for each resulting node during graph compute
GGML_API void ggml_backend_sched_set_eval_callback(ggml_backend_sched_t sched, ggml_backend_sched_eval_callback callback, void * user_data);
+ // enable or disable op offload for a given op
+ GGML_API void ggml_backend_sched_set_op_offload(ggml_backend_sched_t sched, enum ggml_op op, bool on_or_off);
+
//
// Utils
//