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); });