|
24 | 24 | #include <boost/compute/program.hpp> |
25 | 25 | #include <boost/compute/platform.hpp> |
26 | 26 | #include <boost/compute/type_traits/is_fundamental.hpp> |
| 27 | +#include <boost/compute/detail/diagnostic.hpp> |
27 | 28 | #include <boost/compute/detail/get_object_info.hpp> |
28 | 29 | #include <boost/compute/detail/assert_cl_success.hpp> |
29 | 30 |
|
@@ -256,12 +257,14 @@ class kernel |
256 | 257 | return boost::optional<T>(); |
257 | 258 | } |
258 | 259 |
|
| 260 | + BOOST_COMPUTE_DISABLE_DEPRECATED_DECLARATIONS(); |
259 | 261 | clGetKernelSubGroupInfoKHR_fn clGetKernelSubGroupInfoKHR_fptr = |
260 | 262 | reinterpret_cast<clGetKernelSubGroupInfoKHR_fn>( |
261 | 263 | reinterpret_cast<size_t>( |
262 | 264 | device.platform().get_extension_function_address("clGetKernelSubGroupInfoKHR") |
263 | 265 | ) |
264 | 266 | ); |
| 267 | + BOOST_COMPUTE_ENABLE_DEPRECATED_DECLARATIONS(); |
265 | 268 |
|
266 | 269 | return detail::get_object_info<T>( |
267 | 270 | clGetKernelSubGroupInfoKHR_fptr, m_kernel, info, device.id(), input_size, input |
@@ -299,12 +302,14 @@ class kernel |
299 | 302 | return boost::optional<T>(); |
300 | 303 | } |
301 | 304 |
|
| 305 | + BOOST_COMPUTE_DISABLE_DEPRECATED_DECLARATIONS(); |
302 | 306 | clGetKernelSubGroupInfoKHR_fn clGetKernelSubGroupInfoKHR_fptr = |
303 | 307 | reinterpret_cast<clGetKernelSubGroupInfoKHR_fn>( |
304 | 308 | reinterpret_cast<size_t>( |
305 | 309 | device.platform().get_extension_function_address("clGetKernelSubGroupInfoKHR") |
306 | 310 | ) |
307 | 311 | ); |
| 312 | + BOOST_COMPUTE_ENABLE_DEPRECATED_DECLARATIONS(); |
308 | 313 |
|
309 | 314 | return detail::get_object_info<T>( |
310 | 315 | clGetKernelSubGroupInfoKHR_fptr, m_kernel, info, device.id(), input_size, input |
|
0 commit comments