From b9e99cd1fdb89b596fe5e084b0f043e998df299c Mon Sep 17 00:00:00 2001 From: Slaren <2141330+slaren@users.noreply.github.com> Date: Tue, 18 Apr 2023 22:27:50 +0200 Subject: [PATCH] Also fix wdata offset in ggml_compute_forward_add_q_f32 --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index 77fc5ed12..f4b8fc282 100644 --- a/ggml.c +++ b/ggml.c @@ -6610,7 +6610,7 @@ static void ggml_compute_forward_add_q_f32( const int ir0 = dr*ith; const int ir1 = MIN(ir0 + dr, nr); - float * wdata = (float*) params->wdata + ne00 * ith; + float * wdata = (float *) params->wdata + (ne00 + CACHE_LINE_SIZE_F32) * ith; for (int ir = ir0; ir < ir1; ++ir) { // src0 indices