From c9247cd27f489683151b351dfb9b5669ccd43fbf Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Wed, 17 Feb 2021 16:35:41 +0000 Subject: [PATCH] [SYCL-2020] fix semicolon typo --- SYCLStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SYCLStream.cpp b/SYCLStream.cpp index d766996..028a3df 100644 --- a/SYCLStream.cpp +++ b/SYCLStream.cpp @@ -138,7 +138,7 @@ T SYCLStream::dot() cgh.parallel_for(sycl::range<1>{array_size}, // Reduction object, to perform summation - initialises the result to zero - sycl::reduction(d_sum, cgh, std::plus(), sycl::property::reduction::initialize_to_identity); + sycl::reduction(d_sum, cgh, std::plus(), sycl::property::reduction::initialize_to_identity), [=](sycl::id<1> idx, auto& sum) { sum += ka[idx] * kb[idx];