From 01f772b652474d74ee325d972119179e6febae2a Mon Sep 17 00:00:00 2001 From: DandinPower Date: Fri, 8 Aug 2025 21:30:21 +0800 Subject: [PATCH] fix: fix the problem that zmq need pointer as input --- src/llama.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/llama.cpp b/src/llama.cpp index 83bff54c..bfface76 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -18229,7 +18229,8 @@ static void llama_send_tensors(zmq::socket_t & socket, struct llama_ubatch * uba send_msgs.emplace_back("int32", strlen("int32")); send_msgs.emplace_back(tensors->inp_pos->ne, sizeof(tensors->inp_pos->ne[0])); buf_size = tensors->inp_pos->ne[0] * sizeof(int32_t); - send_msgs.emplace_back(0, sizeof(int64_t)); // extra frame that recv does not account for + int64_t zero = 0; + send_msgs.emplace_back(&zero, sizeof(int64_t)); // extra frame that recv does not account for send_msgs.emplace_back(ubatch->pos, buf_size); }