From 1e948708597df5b9dff63f748b5a23c9bb5aaffd Mon Sep 17 00:00:00 2001 From: James Price Date: Mon, 24 Oct 2016 12:47:01 +0100 Subject: [PATCH] Fix verification of dot kernel --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index fb689cf..871f06b 100644 --- a/main.cpp +++ b/main.cpp @@ -249,7 +249,7 @@ void check_solution(const unsigned int ntimes, std::vector& a, std::vector } // Do the reduction - goldSum = goldA * goldB * ntimes; + goldSum = goldA * goldB * ARRAY_SIZE; // Calculate the average error double errA = std::accumulate(a.begin(), a.end(), 0.0, [&](double sum, const T val){ return sum + fabs(val - goldA); });