From 67874468a69b9e39b5359251b65c25dc66b21e1c Mon Sep 17 00:00:00 2001 From: Ashwin Sekhar T K Date: Fri, 6 Nov 2015 20:15:05 +0530 Subject: [PATCH] Fix bug in benchmark/gemm.c --- benchmark/gemm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/gemm.c b/benchmark/gemm.c index 9348018..9d661e6 100644 --- a/benchmark/gemm.c +++ b/benchmark/gemm.c @@ -172,7 +172,7 @@ int main(int argc, char *argv[]){ srandom(getpid()); #endif - for(j = 0; j < m; j++){ + for(j = 0; j < to; j++){ for(i = 0; i < to * COMPSIZE; i++){ a[i + j * to * COMPSIZE] = ((FLOAT) rand() / (FLOAT) RAND_MAX) - 0.5; b[i + j * to * COMPSIZE] = ((FLOAT) rand() / (FLOAT) RAND_MAX) - 0.5; -- 2.7.4