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 {