From 3e724071b75d8537a8931de213f59050e89daaeb Mon Sep 17 00:00:00 2001 From: rdeodhar Date: Sun, 16 Aug 2020 12:51:32 -0700 Subject: [PATCH 1/2] [SYC] Correction to handler::require API Signed-off-by: rdeodhar --- sycl/include/CL/sycl/handler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/include/CL/sycl/handler.hpp b/sycl/include/CL/sycl/handler.hpp index 47f5155e7399c..f90fdba97eb4e 100644 --- a/sycl/include/CL/sycl/handler.hpp +++ b/sycl/include/CL/sycl/handler.hpp @@ -758,7 +758,7 @@ class __SYCL_EXPORT handler { template void require(accessor &Acc) { + access::placeholder::true_t> Acc) { #ifndef __SYCL_DEVICE_ONLY__ associateWithHandler(&Acc, AccTarget); #else From 30aa93241b7d55704884fe86a8c6870f4d7ccaef Mon Sep 17 00:00:00 2001 From: rdeodhar Date: Sun, 16 Aug 2020 12:51:32 -0700 Subject: [PATCH 2/2] [SYCL] Correction to handler::require API Signed-off-by: rdeodhar --- sycl/include/CL/sycl/handler.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sycl/include/CL/sycl/handler.hpp b/sycl/include/CL/sycl/handler.hpp index 47f5155e7399c..83cc08f88cbbf 100644 --- a/sycl/include/CL/sycl/handler.hpp +++ b/sycl/include/CL/sycl/handler.hpp @@ -757,8 +757,9 @@ class __SYCL_EXPORT handler { /// \param Acc is a SYCL accessor describing required memory region. template - void require(accessor &Acc) { + void + require(accessor + Acc) { #ifndef __SYCL_DEVICE_ONLY__ associateWithHandler(&Acc, AccTarget); #else