From 6f90c78a9f7652440161340510b843b027509502 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Tue, 24 Jun 2025 12:04:34 -0700 Subject: [PATCH] ggml : add pointer to attach user data --- ggml/include/ggml.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ggml/include/ggml.h b/ggml/include/ggml.h index 949eac9a5a0b5..6b91b9ad51e66 100644 --- a/ggml/include/ggml.h +++ b/ggml/include/ggml.h @@ -623,9 +623,10 @@ extern "C" { char name[GGML_MAX_NAME]; - void * extra; // extra things e.g. for ggml-cuda.cu + void * extra; // extra things for the backend e.g. for ggml-cuda.cu + void * user; // extra things for the user e.g. for python or node bindings - char padding[8]; + char padding[0]; }; static const size_t GGML_TENSOR_SIZE = sizeof(struct ggml_tensor);