@@ -120,55 +120,30 @@ get_kernel_work_group_info_host<info::kernel_work_group::private_mem_size>(
120120}
121121// The kernel sub-group methods
122122
123- template <typename TOut, info::kernel_sub_group Param>
124- struct get_kernel_sub_group_info {
125- static TOut get (RT::PiKernel Kernel, RT::PiDevice Device,
126- const plugin &Plugin) {
127- TOut Result;
123+ template <info::kernel_sub_group Param> struct get_kernel_sub_group_info {
124+ static uint32_t get (RT::PiKernel Kernel, RT::PiDevice Device,
125+ const plugin &Plugin) {
126+ uint32_t Result;
128127 // TODO catch an exception and put it to list of asynchronous exceptions
129128 Plugin.call <PiApiKind::piKernelGetSubGroupInfo>(
130- Kernel, Device, cl_kernel_sub_group_info (Param), 0 , nullptr ,
131- sizeof (TOut), &Result, nullptr );
132- return Result;
133- }
134- };
129+ Kernel, Device, pi_kernel_sub_group_info (Param), 0 , nullptr ,
130+ sizeof (uint32_t ), &Result, nullptr );
135131
136- template <typename TOut, info::kernel_sub_group Param, typename TIn>
137- struct get_kernel_sub_group_info_with_input {
138- static TOut get (RT::PiKernel Kernel, RT::PiDevice Device, TIn In,
139- const plugin &Plugin) {
140- TOut Result;
141- // TODO catch an exception and put it to list of asynchronous exceptions
142- Plugin.call <PiApiKind::piKernelGetSubGroupInfo>(
143- Kernel, Device, cl_kernel_sub_group_info (Param), sizeof (TIn), &In,
144- sizeof (TOut), &Result, nullptr );
145132 return Result;
146133 }
147134};
148135
149136template <info::kernel_sub_group Param>
150- struct get_kernel_sub_group_info_with_input <cl::sycl::range<3 >, Param, size_t > {
151- static cl::sycl::range<3 > get (RT::PiKernel Kernel, RT::PiDevice Device,
152- size_t In, const plugin &Plugin) {
153- size_t Result[3 ];
154- // TODO catch an exception and put it to list of asynchronous exceptions
155- Plugin.call <PiApiKind::piKernelGetSubGroupInfo>(
156- Kernel, Device, cl_kernel_sub_group_info (Param), sizeof (size_t ), &In,
157- sizeof (size_t ) * 3 , Result, nullptr );
158- return cl::sycl::range<3 >(Result[0 ], Result[1 ], Result[2 ]);
159- }
160- };
161-
162- template <info::kernel_sub_group Param>
163- struct get_kernel_sub_group_info_with_input <size_t , Param, cl::sycl::range<3 >> {
164- static size_t get (RT::PiKernel Kernel, RT::PiDevice Device,
165- cl::sycl::range<3 > In, const plugin &Plugin) {
137+ struct get_kernel_sub_group_info_with_input {
138+ static uint32_t get (RT::PiKernel Kernel, RT::PiDevice Device,
139+ cl::sycl::range<3 > In, const plugin &Plugin) {
166140 size_t Input[3 ] = {In[0 ], In[1 ], In[2 ]};
167- size_t Result;
141+ uint32_t Result;
168142 // TODO catch an exception and put it to list of asynchronous exceptions
169143 Plugin.call <PiApiKind::piKernelGetSubGroupInfo>(
170- Kernel, Device, cl_kernel_sub_group_info (Param), sizeof (size_t ) * 3 ,
171- Input, sizeof (size_t ), &Result, nullptr );
144+ Kernel, Device, pi_kernel_sub_group_info (Param), sizeof (size_t ) * 3 ,
145+ Input, sizeof (uint32_t ), &Result, nullptr );
146+
172147 return Result;
173148 }
174149};
0 commit comments