From: Georgi Gerganov Date: Tue, 21 Feb 2023 20:16:56 +0000 (+0200) Subject: tests : fix cblas_sgemm call X-Git-Tag: upstream/0.0.1642~1580 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=efa2cc36a265a53140abaa472e04cb22a9470095;p=pkg%2Fggml%2Fsources%2Fggml tests : fix cblas_sgemm call --- diff --git a/tests/test-mul-mat1.c b/tests/test-mul-mat1.c index 305accf5..4172cfb6 100644 --- a/tests/test-mul-mat1.c +++ b/tests/test-mul-mat1.c @@ -13,7 +13,7 @@ #include const int M = 1280; -const int N = 1500; +const int N = 1536; const int K = 1280; uint64_t get_time_us() { @@ -284,7 +284,7 @@ int main(int argc, const char ** argv) { if (method == 4) { // Use BLAS sgemm from Accelerate framework - cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, M, K, N, 1.0f, src0, N, src1, N, 0.0f, dst, N); + cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans, M, N, K, 1.0f, src0, K, src1, K, 0.0f, dst, N); } }