Merge branch 'sycl-2020' of github.com:uob-hpc/babelstream into sycl-2020
Conflicts: CHANGELOG.md
This commit is contained in:
commit
f7dc20b875
@ -27,6 +27,7 @@ All notable changes to this project will be documented in this file.
|
||||
- Ensure all OpenCL kernels are present in destructor.
|
||||
- Unified run function in driver code to reduce code duplication, output should be uneffected.
|
||||
- Normalise sum result by expected value to help false negative errors.
|
||||
- Update SYCL version to SYCL 2020.
|
||||
|
||||
### Removed
|
||||
- Pre-building of kernels in SYCL version to ensure compatibility with SYCL 1.2.1.
|
||||
|
||||
@ -7,6 +7,9 @@ Available compilers are:
|
||||
|
||||
For HIPSYCL and COMPUTECPP, SYCL_SDK_DIR must be specified, the directory should contain [/lib, /bin, ...]
|
||||
For DPCPP, the compiler must be on path
|
||||
|
||||
You may need to use the following if running old glibc:
|
||||
EXTRA_FLAGS="--gcc-toolchain=$(realpath "$(dirname "$(which gcc)")"/..)"
|
||||
endef
|
||||
$(info $(compiler_help))
|
||||
COMPILER=HIPSYCL
|
||||
|
||||
@ -156,7 +156,7 @@ T SYCLStream<T>::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<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)
|
||||
{
|
||||
sum += ka[idx] * kb[idx];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user