From 33cb76bfc3eb9e01c8e6da27cf2ec47969883239 Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Fri, 31 Jul 2015 11:20:39 +0100 Subject: [PATCH] Use binary power of two for default array size --- common.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common.cpp b/common.cpp index cbea994..cfaa1fb 100644 --- a/common.cpp +++ b/common.cpp @@ -36,7 +36,10 @@ #include "common.h" -int ARRAY_SIZE = 50000000; +// Default array size 50 * 2^20 (50*8 Mebibytes double precision) +// Use binary powers of two so divides 1024 +int ARRAY_SIZE = 52428800; + int NTIMES = 10; bool useFloat = false;