| 5817 | |
| 5818 | #if defined(CL_HPP_USE_CL_SUB_GROUPS_KHR) || CL_HPP_TARGET_OPENCL_VERSION >= 210 |
| 5819 | cl_int getSubGroupInfo(const cl::Device &dev, cl_kernel_sub_group_info name, const cl::NDRange &range, size_type* param) const |
| 5820 | { |
| 5821 | #if CL_HPP_TARGET_OPENCL_VERSION >= 210 |
| 5822 | |
| 5823 | return detail::errHandler( |
| 5824 | clGetKernelSubGroupInfo(object_, dev(), name, range.size(), range.get(), sizeof(size_type), param, nullptr), |
| 5825 | __GET_KERNEL_SUB_GROUP_INFO_ERR); |
| 5826 | |
| 5827 | #else // #if CL_HPP_TARGET_OPENCL_VERSION >= 210 |
| 5828 | |
| 5829 | typedef clGetKernelSubGroupInfoKHR_fn PFN_clGetKernelSubGroupInfoKHR; |
| 5830 | static PFN_clGetKernelSubGroupInfoKHR pfn_clGetKernelSubGroupInfoKHR = nullptr; |
| 5831 | CL_HPP_INIT_CL_EXT_FCN_PTR_(clGetKernelSubGroupInfoKHR); |
| 5832 | |
| 5833 | return detail::errHandler( |
| 5834 | pfn_clGetKernelSubGroupInfoKHR(object_, dev(), name, range.size(), range.get(), sizeof(size_type), param, nullptr), |
| 5835 | __GET_KERNEL_SUB_GROUP_INFO_ERR); |
| 5836 | |
| 5837 | #endif // #if CL_HPP_TARGET_OPENCL_VERSION >= 210 |
| 5838 | } |
| 5839 | |
| 5840 | template <cl_kernel_sub_group_info name> |
| 5841 | size_type getSubGroupInfo(const cl::Device &dev, const cl::NDRange &range, cl_int* err = nullptr) const |
nothing calls this directly
no test coverage detected