From 942499440f988482b1ded9afbb9ace10ccd79d09 Mon Sep 17 00:00:00 2001 From: Alexander Batashev Date: Fri, 1 May 2020 15:22:15 +0300 Subject: [PATCH] [SYCL] Fix getDeviceFromHandler declarations Signed-off-by: Alexander Batashev --- sycl/include/CL/sycl/accessor.hpp | 3 ++- sycl/include/CL/sycl/handler.hpp | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sycl/include/CL/sycl/accessor.hpp b/sycl/include/CL/sycl/accessor.hpp index 1fe3a597d430f..b2c2ec7af60d0 100644 --- a/sycl/include/CL/sycl/accessor.hpp +++ b/sycl/include/CL/sycl/accessor.hpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -166,7 +167,7 @@ static T convertToArrayOfN(T OldObj) { return NewObj; } -device getDeviceFromHandler(handler &CommandGroupHandlerRef); +__SYCL_EXPORT device getDeviceFromHandler(handler &CommandGroupHandlerRef); template diff --git a/sycl/include/CL/sycl/handler.hpp b/sycl/include/CL/sycl/handler.hpp index 49767539bc683..a66bfa97d1802 100644 --- a/sycl/include/CL/sycl/handler.hpp +++ b/sycl/include/CL/sycl/handler.hpp @@ -107,8 +107,6 @@ template struct get_kernel_name_t { __SYCL_EXPORT device getDeviceFromHandler(handler &); -device getDeviceFromHandler(handler &); - } // namespace detail namespace intel {