@@ -120,55 +120,30 @@ get_kernel_work_group_info_host<info::kernel_work_group::private_mem_size>(
120
120
}
121
121
// The kernel sub-group methods
122
122
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;
128
127
// TODO catch an exception and put it to list of asynchronous exceptions
129
128
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 );
135
131
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 );
145
132
return Result;
146
133
}
147
134
};
148
135
149
136
template <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) {
166
140
size_t Input[3 ] = {In[0 ], In[1 ], In[2 ]};
167
- size_t Result;
141
+ uint32_t Result;
168
142
// TODO catch an exception and put it to list of asynchronous exceptions
169
143
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
+
172
147
return Result;
173
148
}
174
149
};
0 commit comments