From 9b41742d88ed9d00a370fbe6411d617120a253a8 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Fri, 7 Apr 2023 18:00:44 +0200 Subject: [PATCH] try to fix cblas_sgemm call in ggml_compute_forward_mul_mat_* --- ggml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ggml.c b/ggml.c index 59e84ab45..01f0ad84f 100644 --- a/ggml.c +++ b/ggml.c @@ -6265,7 +6265,7 @@ static void ggml_compute_forward_mul_mat_f32( cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans, ne11, ne01, ne10, 1.0f, y, ne10, - x, ne10, + x, ne00, 0.0f, d, ne01); } } @@ -6437,7 +6437,7 @@ static void ggml_compute_forward_mul_mat_f16_f32( cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans, ne11, ne01, ne10, 1.0f, y, ne10, - x, ne10, + x, ne00, 0.0f, d, ne01); } } @@ -6652,7 +6652,7 @@ static void ggml_compute_forward_mul_mat_q_f32( cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans, ne11, ne01, ne10, 1.0f, y, ne10, - x, ne10, + x, ne00, 0.0f, d, ne01); } }