@@ -229,7 +229,7 @@ reduce_over_group(Group g, T x, BinaryOperation binary_op) {
229
229
std::is_same<decltype (binary_op (x[0 ], x[0 ])), float >::value),
230
230
" Result type of binary_op must match reduction accumulation type." );
231
231
T result;
232
- for (int s = 0 ; s < x.get_size (); ++s) {
232
+ for (int s = 0 ; s < x.size (); ++s) {
233
233
result[s] = reduce_over_group (g, x[s], binary_op);
234
234
}
235
235
return result;
@@ -280,7 +280,7 @@ reduce_over_group(Group g, V x, T init, BinaryOperation binary_op) {
280
280
" Result type of binary_op must match reduction accumulation type." );
281
281
#ifdef __SYCL_DEVICE_ONLY__
282
282
T result = init;
283
- for (int s = 0 ; s < x.get_size (); ++s) {
283
+ for (int s = 0 ; s < x.size (); ++s) {
284
284
result[s] = binary_op (init[s], reduce_over_group (g, x[s], binary_op));
285
285
}
286
286
return result;
@@ -656,7 +656,7 @@ exclusive_scan_over_group(Group g, T x, BinaryOperation binary_op) {
656
656
std::is_same<decltype (binary_op (x[0 ], x[0 ])), float >::value),
657
657
" Result type of binary_op must match scan accumulation type." );
658
658
T result;
659
- for (int s = 0 ; s < x.get_size (); ++s) {
659
+ for (int s = 0 ; s < x.size (); ++s) {
660
660
result[s] = exclusive_scan_over_group (g, x[s], binary_op);
661
661
}
662
662
return result;
@@ -680,7 +680,7 @@ exclusive_scan_over_group(Group g, V x, T init, BinaryOperation binary_op) {
680
680
std::is_same<decltype (binary_op (init[0 ], x[0 ])), float >::value),
681
681
" Result type of binary_op must match scan accumulation type." );
682
682
T result;
683
- for (int s = 0 ; s < x.get_size (); ++s) {
683
+ for (int s = 0 ; s < x.size (); ++s) {
684
684
result[s] = exclusive_scan_over_group (g, x[s], init[s], binary_op);
685
685
}
686
686
return result;
@@ -823,7 +823,7 @@ inclusive_scan_over_group(Group g, T x, BinaryOperation binary_op) {
823
823
std::is_same<decltype (binary_op (x[0 ], x[0 ])), float >::value),
824
824
" Result type of binary_op must match scan accumulation type." );
825
825
T result;
826
- for (int s = 0 ; s < x.get_size (); ++s) {
826
+ for (int s = 0 ; s < x.size (); ++s) {
827
827
result[s] = inclusive_scan_over_group (g, x[s], binary_op);
828
828
}
829
829
return result;
@@ -917,7 +917,7 @@ inclusive_scan_over_group(Group g, V x, BinaryOperation binary_op, T init) {
917
917
std::is_same<decltype (binary_op (init[0 ], x[0 ])), float >::value),
918
918
" Result type of binary_op must match scan accumulation type." );
919
919
T result;
920
- for (int s = 0 ; s < x.get_size (); ++s) {
920
+ for (int s = 0 ; s < x.size (); ++s) {
921
921
result[s] = inclusive_scan_over_group (g, x[s], binary_op, init[s]);
922
922
}
923
923
return result;
0 commit comments