From 3126f99f4a3d192ae0d0d0df8d5645722be3eada Mon Sep 17 00:00:00 2001 From: Stuart Adams Date: Thu, 16 Apr 2020 12:52:42 +0100 Subject: [PATCH 1/2] Add __SYCL_EXPORT to declaration of contextSetExtendedDeleter Signed-off-by: Stuart Adams --- sycl/include/CL/sycl/detail/pi.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/include/CL/sycl/detail/pi.hpp b/sycl/include/CL/sycl/detail/pi.hpp index 7be744c635f59..ae5207fa7702c 100644 --- a/sycl/include/CL/sycl/detail/pi.hpp +++ b/sycl/include/CL/sycl/detail/pi.hpp @@ -99,7 +99,7 @@ using PiMemObjectType = ::pi_mem_type; using PiMemImageChannelOrder = ::pi_image_channel_order; using PiMemImageChannelType = ::pi_image_channel_type; -void contextSetExtendedDeleter(const cl::sycl::context &constext, +__SYCL_EXPORT void contextSetExtendedDeleter(const cl::sycl::context &constext, pi_context_extended_deleter func, void *user_data); From aa8df346b1e5ad920c2cbe940d79f83607e64912 Mon Sep 17 00:00:00 2001 From: Stuart Adams Date: Thu, 16 Apr 2020 12:59:26 +0100 Subject: [PATCH 2/2] Clang format Signed-off-by: Stuart Adams --- sycl/include/CL/sycl/detail/pi.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/include/CL/sycl/detail/pi.hpp b/sycl/include/CL/sycl/detail/pi.hpp index ae5207fa7702c..de77c7671f2b7 100644 --- a/sycl/include/CL/sycl/detail/pi.hpp +++ b/sycl/include/CL/sycl/detail/pi.hpp @@ -100,8 +100,8 @@ using PiMemImageChannelOrder = ::pi_image_channel_order; using PiMemImageChannelType = ::pi_image_channel_type; __SYCL_EXPORT void contextSetExtendedDeleter(const cl::sycl::context &constext, - pi_context_extended_deleter func, - void *user_data); + pi_context_extended_deleter func, + void *user_data); // Function to load the shared library // Implementation is OS dependent.