From 5bb93d41b75f66ac46365447c47ad26776dd8861 Mon Sep 17 00:00:00 2001 From: luoyu-intel Date: Wed, 24 Jan 2024 21:56:47 +0800 Subject: [PATCH] fix batch error --- ggml-sycl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ggml-sycl.cpp b/ggml-sycl.cpp index 91feb5398..c83568098 100644 --- a/ggml-sycl.cpp +++ b/ggml-sycl.cpp @@ -12206,9 +12206,10 @@ inline void ggml_sycl_op_mul_mat_sycl( src0_as_f16.alloc(ne); to_fp16_sycl(src0_dd_i, src0_as_f16.get(), ne, stream); } - const sycl::half *src0_ptr = src0->type == GGML_TYPE_F16 - ? (const sycl::half *)src0_dd_i - : src0_as_f16.get(); + const sycl::half *src1_ptr = + src1->type == GGML_TYPE_F16 + ? (const sycl::half *)src1->data + src1_padded_row_size + : src1_as_f16.get(); sycl_pool_alloc src1_as_f16; if (src1->type != GGML_TYPE_F16) {