From 707bc5d0bfcc4ee94b5600b1b4c36db8d0268d68 Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Tue, 9 Feb 2021 10:31:18 +0000 Subject: [PATCH 1/3] Update SYCL version to SYCL 2020 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1cfe5e..7d45f82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file. - Cray compiler OpenMP flags updated. - Clang compiler OpenMP flags corrected for NVIDIA target. - Reorder OpenCL objects in class so destructors are called in safe order. +- Update SYCL version to SYCL 2020. ### Removed - Pre-building of kernels in SYCL version to ensure compatibility with SYCL 1.2.1. From c9247cd27f489683151b351dfb9b5669ccd43fbf Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Wed, 17 Feb 2021 16:35:41 +0000 Subject: [PATCH 2/3] [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]; From 98d2140a88f1862b5ba3d93cf6a96a8b915b00b6 Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Wed, 17 Feb 2021 16:48:42 +0000 Subject: [PATCH 3/3] [SYCL 2020] Add note about glibc --- SYCL.make | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SYCL.make b/SYCL.make index 4326da5..b251f2e 100644 --- a/SYCL.make +++ b/SYCL.make @@ -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