From 7f0ebb21eda7349b3844115f51631ecafd9210f6 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Thu, 15 Jul 2021 09:47:13 +0200 Subject: [PATCH] Update gemv.c --- interface/gemv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interface/gemv.c b/interface/gemv.c index 8d8a798de..cbd9f2d5b 100644 --- a/interface/gemv.c +++ b/interface/gemv.c @@ -201,7 +201,9 @@ void CNAME(enum CBLAS_ORDER order, if (beta != ONE) SCAL_K(leny, 0, 0, beta, y, blasabs(incy), NULL, 0, NULL, 0); if (alpha == ZERO) return; -#if 1 + +#if 0 +/* this optimization causes stack corruption on x86_64 under OSX, Windows and FreeBSD */ if (trans == 0 && incx == 1 && incy == 1 && m*n < 2304 *GEMM_MULTITHREAD_THRESHOLD) { GEMV_N(m, n, 0, alpha, a, lda, x, incx, y, incy, NULL); return;