Blob Blame Raw
From: Michel Normand <normand@linux.vnet.ibm.com>
Subject: initialize malloc memory.invtrsm.wms.oct23
Date: Mon, 14 Apr 2014 17:18:53 +0200
References: http://sourceforge.net/p/math-atlas/mailman/message/32471499/

initialize malloc memory invtrsm.c


Signed-off-by:  Will Schmidt <will_schmidt@vnet.ibm.com>
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
---
 ATLAS/tune/blas/level3/invtrsm.c |    1 +
 1 file changed, 1 insertion(+)

Index: ATLAS/tune/blas/level3/invtrsm.c
===================================================================
--- ATLAS.orig/tune/blas/level3/invtrsm.c
+++ ATLAS/tune/blas/level3/invtrsm.c
@@ -525,6 +525,7 @@ static double RunTiming
    a = A = malloc(i * ATL_MulBySize(incA));
    if (A)
    {
+     memset(A,0,i*ATL_MulBySize(incA)); /* wms  (!!) malloc call above returns non-initialized memory. */
       if (Uplo == TestGE)
          for (i=0; i < k; i++)
             Mjoin(PATL,gegen)(N, N, A+i*incA, lda, N+lda);