@@ -144,8 +144,10 @@ template <typename _DataType>
144
144
class custom_max_c_kernel ;
145
145
146
146
template <typename _DataType>
147
- void custom_max_c (void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis)
147
+ void custom_max_c (void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis)
148
148
{
149
+ __attribute__ ((unused)) void * tmp = (void *)(axis + naxis);
150
+
149
151
_DataType* array_1 = reinterpret_cast <_DataType*>(array1_in);
150
152
_DataType* result = reinterpret_cast <_DataType*>(result1);
151
153
@@ -167,16 +169,17 @@ void custom_max_c(void* array1_in, void* result1, size_t* shape, size_t ndim, si
167
169
#endif
168
170
}
169
171
170
- template void
171
- custom_max_c<double >(void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
172
- template void
173
- custom_max_c<float >(void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
174
- template void
175
- custom_max_c<long >(void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
176
- template void custom_max_c<int >(void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
172
+ template void custom_max_c<double >(
173
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
174
+ template void custom_max_c<float >(
175
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
176
+ template void custom_max_c<long >(
177
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
178
+ template void custom_max_c<int >(
179
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
177
180
178
181
template <typename _DataType, typename _ResultType>
179
- void custom_mean_c (void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis)
182
+ void custom_mean_c (void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis)
180
183
{
181
184
_ResultType* result = reinterpret_cast <_ResultType*>(result1);
182
185
@@ -200,16 +203,16 @@ void custom_mean_c(void* array1_in, void* result1, size_t* shape, size_t ndim, s
200
203
}
201
204
202
205
template void custom_mean_c<double , double >(
203
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
204
- template void
205
- custom_mean_c< float , float >( void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
206
- template void
207
- custom_mean_c< long , double >( void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
208
- template void
209
- custom_mean_c< int , double >( void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
206
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
207
+ template void custom_mean_c< float , float >(
208
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
209
+ template void custom_mean_c< long , double >(
210
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
211
+ template void custom_mean_c< int , double >(
212
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
210
213
211
214
template <typename _DataType, typename _ResultType>
212
- void custom_median_c (void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis)
215
+ void custom_median_c (void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis)
213
216
{
214
217
_ResultType* result = reinterpret_cast <_ResultType*>(result1);
215
218
@@ -240,19 +243,19 @@ void custom_median_c(void* array1_in, void* result1, size_t* shape, size_t ndim,
240
243
}
241
244
242
245
template void custom_median_c<double , double >(
243
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
246
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
244
247
template void custom_median_c<float , double >(
245
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
248
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
246
249
template void custom_median_c<long , double >(
247
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
250
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
248
251
template void custom_median_c<int , double >(
249
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
252
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
250
253
251
254
template <typename _DataType>
252
255
class custom_min_c_kernel ;
253
256
254
257
template <typename _DataType>
255
- void custom_min_c (void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis)
258
+ void custom_min_c (void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis)
256
259
{
257
260
_DataType* array_1 = reinterpret_cast <_DataType*>(array1_in);
258
261
_DataType* result = reinterpret_cast <_DataType*>(result1);
@@ -275,16 +278,18 @@ void custom_min_c(void* array1_in, void* result1, size_t* shape, size_t ndim, si
275
278
#endif
276
279
}
277
280
278
- template void
279
- custom_min_c<double >(void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
280
- template void
281
- custom_min_c<float >(void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
282
- template void
283
- custom_min_c<long >(void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
284
- template void custom_min_c<int >(void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis);
281
+ template void custom_min_c<double >(
282
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
283
+ template void custom_min_c<float >(
284
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
285
+ template void custom_min_c<long >(
286
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
287
+ template void custom_min_c<int >(
288
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis);
285
289
286
290
template <typename _DataType, typename _ResultType>
287
- void custom_std_c (void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis, size_t ddof)
291
+ void custom_std_c (
292
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis, size_t ddof)
288
293
{
289
294
_DataType* array1 = reinterpret_cast <_DataType*>(array1_in);
290
295
_ResultType* result = reinterpret_cast <_ResultType*>(result1);
@@ -302,19 +307,20 @@ void custom_std_c(void* array1_in, void* result1, size_t* shape, size_t ndim, si
302
307
}
303
308
304
309
template void custom_std_c<int , double >(
305
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis, size_t ddof);
310
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis, size_t ddof);
306
311
template void custom_std_c<long , double >(
307
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis, size_t ddof);
312
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis, size_t ddof);
308
313
template void custom_std_c<float , float >(
309
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis, size_t ddof);
314
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis, size_t ddof);
310
315
template void custom_std_c<double , double >(
311
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis, size_t ddof);
316
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis, size_t ddof);
312
317
313
318
template <typename _DataType, typename _ResultType>
314
319
class custom_var_c_kernel ;
315
320
316
321
template <typename _DataType, typename _ResultType>
317
- void custom_var_c (void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis, size_t ddof)
322
+ void custom_var_c (
323
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis, size_t ddof)
318
324
{
319
325
cl::sycl::event event;
320
326
_DataType* array1 = reinterpret_cast <_DataType*>(array1_in);
@@ -362,10 +368,10 @@ void custom_var_c(void* array1_in, void* result1, size_t* shape, size_t ndim, si
362
368
}
363
369
364
370
template void custom_var_c<int , double >(
365
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis, size_t ddof);
371
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis, size_t ddof);
366
372
template void custom_var_c<long , double >(
367
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis, size_t ddof);
373
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis, size_t ddof);
368
374
template void custom_var_c<float , float >(
369
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis, size_t ddof);
375
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis, size_t ddof);
370
376
template void custom_var_c<double , double >(
371
- void * array1_in, void * result1, size_t * shape, size_t ndim, size_t * axis, size_t naxis, size_t ddof);
377
+ void * array1_in, void * result1, const size_t * shape, size_t ndim, const size_t * axis, size_t naxis, size_t ddof);
0 commit comments