Skip to content

Commit 6fbfa0f

Browse files
committed
Disable warning about deprecated CL extension
1 parent 38093e7 commit 6fbfa0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/boost/compute/kernel.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <boost/compute/program.hpp>
2525
#include <boost/compute/platform.hpp>
2626
#include <boost/compute/type_traits/is_fundamental.hpp>
27+
#include <boost/compute/detail/diagnostic.hpp>
2728
#include <boost/compute/detail/get_object_info.hpp>
2829
#include <boost/compute/detail/assert_cl_success.hpp>
2930

@@ -256,12 +257,14 @@ class kernel
256257
return boost::optional<T>();
257258
}
258259

260+
BOOST_COMPUTE_DISABLE_DEPRECATED_DECLARATIONS();
259261
clGetKernelSubGroupInfoKHR_fn clGetKernelSubGroupInfoKHR_fptr =
260262
reinterpret_cast<clGetKernelSubGroupInfoKHR_fn>(
261263
reinterpret_cast<size_t>(
262264
device.platform().get_extension_function_address("clGetKernelSubGroupInfoKHR")
263265
)
264266
);
267+
BOOST_COMPUTE_ENABLE_DEPRECATED_DECLARATIONS();
265268

266269
return detail::get_object_info<T>(
267270
clGetKernelSubGroupInfoKHR_fptr, m_kernel, info, device.id(), input_size, input
@@ -299,12 +302,14 @@ class kernel
299302
return boost::optional<T>();
300303
}
301304

305+
BOOST_COMPUTE_DISABLE_DEPRECATED_DECLARATIONS();
302306
clGetKernelSubGroupInfoKHR_fn clGetKernelSubGroupInfoKHR_fptr =
303307
reinterpret_cast<clGetKernelSubGroupInfoKHR_fn>(
304308
reinterpret_cast<size_t>(
305309
device.platform().get_extension_function_address("clGetKernelSubGroupInfoKHR")
306310
)
307311
);
312+
BOOST_COMPUTE_ENABLE_DEPRECATED_DECLARATIONS();
308313

309314
return detail::get_object_info<T>(
310315
clGetKernelSubGroupInfoKHR_fptr, m_kernel, info, device.id(), input_size, input

0 commit comments

Comments
 (0)