Fix SYCL 2020 header file name and reduction identity typos
This commit is contained in:
parent
9e9cefe859
commit
610c1734a9
@ -165,7 +165,7 @@ T SYCLStream<T>::dot()
|
|||||||
|
|
||||||
cgh.parallel_for(sycl::range<1>{array_size},
|
cgh.parallel_for(sycl::range<1>{array_size},
|
||||||
// Reduction object, to perform summation - initialises the result to zero
|
// Reduction object, to perform summation - initialises the result to zero
|
||||||
sycl::reduction(d_sum, cgh, std::plus<T>(), sycl::property::reduction::initialize_to_identity),
|
sycl::reduction(d_sum, cgh, std::plus<T>(), sycl::property::reduction::initialize_to_identity{}),
|
||||||
[=](sycl::id<1> idx, auto& sum)
|
[=](sycl::id<1> idx, auto& sum)
|
||||||
{
|
{
|
||||||
sum += ka[idx] * kb[idx];
|
sum += ka[idx] * kb[idx];
|
||||||
|
|||||||
@ -12,8 +12,7 @@
|
|||||||
|
|
||||||
#include "Stream.h"
|
#include "Stream.h"
|
||||||
|
|
||||||
//#include <sycl/sycl.hpp>
|
#include <sycl/sycl.hpp>
|
||||||
#include <CL/sycl.hpp>
|
|
||||||
|
|
||||||
#define IMPLEMENTATION_STRING "SYCL 2020"
|
#define IMPLEMENTATION_STRING "SYCL 2020"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user