From 8b981e41a165a2ec061227a01b8e6323488111ba Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Tue, 19 Jan 2016 12:32:26 -0500 Subject: [PATCH] benchmark/scripts/SCIPY/ssyrk.py: Allocate `C` using zeros instead of randomly generating it. --- benchmark/scripts/SCIPY/ssyrk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmark/scripts/SCIPY/ssyrk.py b/benchmark/scripts/SCIPY/ssyrk.py index 1dee9e21d..c7e1bdbe1 100755 --- a/benchmark/scripts/SCIPY/ssyrk.py +++ b/benchmark/scripts/SCIPY/ssyrk.py @@ -4,13 +4,14 @@ import os import sys import time import numpy +from numpy import zeros from numpy.random import randn from scipy.linalg import blas def run_ssyrk(N,l): A = randn(N,N).astype('float32') - C = randn(N,N).astype('float32') + C = zeros((N,N), dtype='float32') start = time.time();