From: Georgi Gerganov Date: Thu, 8 Dec 2022 21:48:04 +0000 (+0200) Subject: ggml : add alternative cblas_sgemm call X-Git-Tag: upstream/1.7.4~1742 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=50a061b313e8e00227f555a51c1475e68b4bc519;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp ggml : add alternative cblas_sgemm call --- diff --git a/ggml.c b/ggml.c index f379f552..6c38a032 100644 --- a/ggml.c +++ b/ggml.c @@ -4590,13 +4590,22 @@ void ggml_compute_forward_mul_mat_f16_f32( // } //} - // zT = y * xT { +#if 1 + // zT = y * xT cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans, ne11, ne01, ne10, - 1.0f, y, ne10, - x, ne10, + 1.0f, y, ne00, + x, ne00, 0.0f, d, ne01); +#else + // zT = (xT * y)T + cblas_sgemm(CblasColMajor, CblasTrans, CblasNoTrans, + ne01, ne11, ne10, + 1.0f, x, ne00, + y, ne00, + 0.0f, d, ne01); +#endif } } }